/* Base Design System */
:root {
    --primary-color: #FFC107;
    --bg-dark: #0F0F0F;
    --bg-secondary: #001F3F;
    /* Navy Blue for buttons */
    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --text-dark: #111111;
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1280px;
}

/* Ensure no overflow on html/body */
html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}


body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    gap: 4rem;
}

.accent-text {
    color: var(--primary-color);
}

.highlight {
    color: var(--primary-color);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0px;
    color: var(--text-white);
}

.logo span {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    margin-left: auto;
    margin-right: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--text-white);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a.active::after {
    width: 100%;
}

/* Hide active underline when hovering over the nav area */
.nav-links:hover a.active::after {
    width: 0;
}

/* Ensure the hovered item (including the active one) shows the line */
.nav-links a:hover::after {
    width: 100% !important;
}

.menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.2);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: #002d5c;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 31, 63, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-grid {
    grid-template-columns: 0.8fr 1.2fr;
    /* Give more space to the image side */
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    white-space: nowrap;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.hero-content h1 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    white-space: nowrap;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-content p {
    color: var(--text-gray);
    font-size: 1.2rem;
    max-width: 650px;
    margin-bottom: 2.5rem;
}

.hero-image-container {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.profile-img {
    width: 100%;
    max-width: 800px;
    /* Increased from 650px */
    z-index: 2;
    transform: scale(1.25);
    /* Increased from 1.1 */
    transform-origin: bottom center;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    margin-bottom: -100px;
    /* Pull down slightly to fill space if needed */
}

/* About Section */
.about {
    padding: 10rem 0;
    background-color: var(--text-white);
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.about-map-bg {
    position: absolute;
    top: 5%;
    right: 0;
    width: 60%;
    height: 80%;
    background: url('../assets/images/world-map.png') center/contain no-repeat;
    opacity: 0.08;
    z-index: 0;
    background-position: top center;
}

.relative-container {
    position: relative;
    z-index: 2;
}

.section-title {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.section-title .line {
    width: 45px;
    height: 2px;
    background-color: var(--bg-secondary);
    margin-right: 20px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bg-secondary);
}

.about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 4rem;
}

.about-image {
    position: relative;
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.image-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    bottom: 0;
    /* Stretches to the very bottom */
    border: 15px solid #4a5c6a;
    z-index: 1;
}

.yellow-box {
    position: relative;
    width: 75%;
    background-color: var(--primary-color);
    z-index: 2;
    margin-left: auto;
    /* Push to right */
    margin-top: 12%;
    margin-bottom: 12%;
    padding-top: 15%;
    /* Extra height to allow image pull-up */
}

.yellow-box img {
    display: block;
    width: 100%;
    margin-top: -20%;
    /* Pull up to break outside box */
}

.about-content h3 {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
}

.about-content p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-btns {
    margin-top: 3.5rem;
    display: flex;
    gap: 1.5rem;
}

.about-btns .btn {
    border-radius: 0;
    font-weight: 600;
}

.about-btns .btn-primary {
    background-color: var(--primary-color);
    color: #111;
}

.about-btns .btn-secondary {
    background-color: #001C47;
    color: #fff;
}

/* Divider */
.section-divider {
    max-width: var(--container-width);
    margin: 4rem auto;
    height: 1px;
    background-color: #eee;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background-color: var(--text-white);
    color: var(--text-dark);
}

.section-title.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title.center h2 {
    color: #002D5C;
    /* Dark Blue */
    font-size: 2.2rem;
    font-weight: 800;
}

.title-underline {
    margin: 10px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.title-underline .line-1 {
    width: 65px;
    height: 3px;
    background-color: var(--primary-color);
}

.title-underline .line-2 {
    width: 35px;
    height: 3px;
    background-color: var(--primary-color);
}

.subtitle {
    font-size: 1rem;
    color: #444;
    font-weight: 400;
    margin-bottom: 5rem;
}

.skills-new-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.skill-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--bg-secondary);
    transition: var(--transition);
    padding: 10px;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-card:hover .skill-icon {
    background: var(--primary-color);
    color: #fff;
}

.skill-main h3 {
    font-size: 1.25rem;
    color: var(--bg-secondary);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.skill-level {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
}

.dot.active {
    background: var(--primary-color);
}

.level-text {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #888;
    margin-left: 10px;
    letter-spacing: 1px;
}

.skill-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .skills-new-grid {
        grid-template-columns: 1fr;
    }
}

/* Services Grid */
.services-grid,
.reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card,
.review-card,
.project-card {
    background: #fff;
    padding: 3rem 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    text-align: center;
    transition: var(--transition);
}

.service-card:hover,
.review-card:hover,
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    font-weight: 800;
    color: #002D5C;
    opacity: 1;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3,
.review-card h3,
.project-card h3 {
    color: #111;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p,
.review-card p,
.project-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Reviews Stars */
.stars {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Showcase Section */
.showcase-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.project-card {
    text-align: left;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
}

.project-status {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--bg-secondary);
}

.project-image-gallery {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.project-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 0;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.project-card:hover .project-img {
    transform: scale(1.02);
}

.project-desc {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tech-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 193, 7, 0.1);
    color: #b88a00;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tech-platforms {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0.5rem 0;
}

.platform-icon {
    width: 35px;
    height: 35px;
    background: #f0f4f8;
    color: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    padding: 6px;
}

.platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.platform-icon:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}


.app-links {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-links p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.store-links-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.store-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.store-btn img {
    height: 45px;
    width: auto;
}

.qr-code img {
    height: 80px;
    width: 80px;
    border: 1px solid #eee;
    padding: 5px;
}

@media (max-width: 992px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.3s;
}

.delay-2 {
    transition-delay: 0.6s;
}

.delay-3 {
    transition-delay: 0.9s;
}

/* Scroll to Top */
#scrollToTop {
    position: fixed;
    bottom: 50px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#scrollToTop:hover {
    transform: translateY(-8px);
    background-color: #fff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 4rem;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 2rem;
    }

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        text-align: center;
        padding: 120px 0 60px;
    }

    .hero-content {
        order: 2;
        margin-top: 0;
    }

    .hero-image-container {
        order: 1;
        justify-content: center;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .profile-img {
        max-width: 500px;
        transform: scale(1.1);
        margin-bottom: 0;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    .image-frame {
        width: 100%;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
    }
}


/* Contact Styles */
.contact {
    background-color: #fff;
    color: #111;
}

.contact-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: flex-start;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-item i {
    font-size: 1.8rem;
    color: #002D5C;
}

.info-item h4 {
    font-size: 1.1rem;
    color: #002D5C;
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
    font-size: 1rem;
}

.contact-form-container h3 {
    font-size: 1.8rem;
    color: #002D5C;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.contact-form-container p {
    color: #666;
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

.square-btn {
    border-radius: 0;
    padding: 1rem 3rem;
    font-weight: 700;
}

/* Footer Styles */
footer {
    background-color: #0c0c0c;
    padding: 8rem 0 3rem;
    color: #fff;
}

.footer-grid {
    grid-template-columns: 1.25fr 2.5fr 1.25fr;
    gap: 4rem;
    padding-bottom: 5rem;
    border-bottom: 1px solid #222;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 15px;
    font-weight: 700;
}

.footer-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #B0B0B0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col p {
    color: #B0B0B0;
    line-height: 1.8;
    font-size: 0.9rem;
}

.contact-detail {
    margin-bottom: 1.5rem;
}

.contact-detail strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-detail p {
    color: #B0B0B0;
}

.footer-bottom {
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-right: 5rem;
}

.social-links a {
    color: #fff;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Mobile Media Queries (Moving to the end to ensure proper overrides) */
@media (max-width: 992px) {
    .container {
        padding: 0 2rem;
    }

    .grid {
        gap: 3rem;
    }

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .hero {
        text-align: center;
        padding: 120px 0 60px;
    }

    .hero-content {
        order: 2;
        margin-top: 0;
    }

    .hero-image-container {
        order: 1;
        justify-content: center;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .profile-img {
        max-width: 450px;
        transform: scale(1.1);
        margin-bottom: 0;
    }

    .about-image {
        margin-bottom: 2rem;
    }

    .image-frame {
        width: 100%;
    }

    .showcase-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-grid {
        display: block;
        text-align: center;
    }


    .hero-image-container {
        display: none;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: clamp(1.8rem, 10vw, 2.6rem);
        white-space: normal;
        line-height: 1.2;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 15, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-top: 1px solid #333;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .about-content {
        text-align: center;
    }

    .section-title {
        justify-content: center !important;
    }

    .section-title .line {
        display: none;
    }

    .about-btns {
        flex-direction: column;
    }

    .skills-new-grid,
    .services-grid,
    .reviews-grid {
        grid-template-columns: 1fr !important;
    }

    .project-card {
        padding: 1.5rem !important;
    }

    .project-image-gallery {
        flex-direction: column !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
    }

    .grid-2 {
        grid-template-columns: 1fr !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }


    .footer-title {
        padding-left: 0;
        margin-bottom: 1.5rem;
    }

    .footer-title::before {
        left: 50%;
        transform: translateX(-50%);
        top: -10px;
        width: 40px;
        height: 3px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
}