/*=============== GOOGLE FONT ===============*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/*=============== CSS VARIABLES (B&W THEME) ===============*/
:root {
    /* Colors */
    --bg-light: #ffffff;
    --bg-dark: #000000;
    --card-light-bg: #fdfdfd;
    --card-dark-bg: #111111;
    
    --text-light: #f5f5f5;
    --text-dark: #0a0a0a;
    --text-secondary-light: #a0a0a0;
    --text-secondary-dark: #555555;

    --border-light: #eeeeee;
    --border-dark: #222222;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

    /* Font */
    --font-primary: 'Poppins', sans-serif;

    /* Sizing */
    --header-height: 70px;
}

/*=============== BASE & RESET ===============*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.smooth-scroll-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.main-content {
    width: 100%;
}

h1, h2, h3, h4 {
    font-weight: 600;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/*=============== REUSABLE CLASSES ===============*/
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 6rem 0 4rem;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
}

/* Alternating Theme */
.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}
.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
    border-color: var(--bg-light);
}
.btn-light:hover {
    background-color: transparent;
    color: var(--bg-light);
}
.btn-dark-outline {
    background-color: transparent;
    color: var(--bg-light);
    border-color: var(--bg-light);
}
.btn-dark-outline:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}
.btn-light-outline {
    background-color: transparent;
    color: var(--bg-light);
    border: 1px solid var(--bg-light);
}
.btn-light-outline:hover {
    background-color: var(--bg-light);
    color: var(--bg-dark);
}

/*=============== HEADER & NAV ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.85); /* Dark frosted glass */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff; /* Always white on hero */
    z-index: 1001;
}

/* Desktop Menu */
.nav-list-desktop {
    display: flex;
    gap: 2.5rem;
}
.nav-link-desktop {
    font-weight: 500;
    color: var(--text-secondary-light);
    position: relative;
    transition: color 0.3s;
}
.nav-link-desktop:hover {
    color: var(--text-light);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none; /* Hidden by default */
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff; /* Always white */
    z-index: 1001;
}

/* Full-Screen Mobile Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.nav-menu.show-menu {
    right: 0;
}
.nav-close {
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}
.nav-list-mobile {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
}
.nav-link-mobile {
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-light);
}
.nav-link-mobile:hover {
    color: var(--text-secondary-light);
}
.nav-menu-socials {
    position: absolute;
    bottom: 3rem;
    display: flex;
    gap: 2rem;
    color: var(--text-secondary-light);
}
.nav-menu-socials a { color: var(--text-secondary-light); }
.nav-menu-socials a:hover { color: var(--text-light); }


/*=============== HERO SECTION ===============*/
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1523961131990-5ea7c61b2107?w=500&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8ZGlnaXRhbCUyMHNvbHV0aW9uc3xlbnwwfHwwfHx8MA%3D%3D');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* Darker overlay */
    z-index: 1;
}
.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}
.hero-left {
    text-align: left;
}
.hero-right {
    text-align: left;
}
.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    color: #fff;
}
.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    color: var(--text-secondary-light);
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.hero-about {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary-light);
    max-width: 400px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-dark);
    padding: 1.5rem;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

/*=============== STATS SECTION ===============*/
.stats {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-dark);
}
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}
.stat-number {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--text-light);
}
.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary-light);
}

/*=============== SERVICES SECTION (NEW) ===============*/
.services .section-title {
    text-align: left;
}
.service-item {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Text | Image */
    gap: 3rem;
    align-items: center;
    margin-bottom: 6rem;
}
.service-item:nth-child(even) {
    grid-template-columns: 1.2fr 1fr; /* Image | Text */
}
.service-item:nth-child(even) .service-text {
    order: 2;
}
.service-text h3 {
    font-size: 1.5rem;
    color: var(--text-secondary-dark);
    font-weight: 400;
}
.service-text h4 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.service-text p {
    font-size: 1.05rem;
    color: var(--text-secondary-dark);
    max-width: 500px;
}
.service-image {
    background-color: #f0f0f0; /* Placeholder */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.service-image img:hover {
    transform: scale(1.05);
}

/*=============== WORK SECTION (NEW) ===============*/
.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    gap: 2rem;
    margin-bottom: 4rem;
}
.project-card {
    background-color: var(--card-dark-bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    transition: transform 0.3s ease, border-color 0.3s;
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--text-light);
}
.project-image {
    height: 300px;
    overflow: hidden;
    background-color: #333;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.05);
}
.project-info {
    padding: 1.5rem;
}
.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.project-link {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
}
.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.project-link:hover::after {
    transform: scaleX(1);
}

/* Design Gallery */
.design-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}
.design-item {
    height: 200px;
    background-color: var(--card-dark-bg);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    overflow: hidden;
}
.design-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.design-item:hover img {
    transform: scale(1.1);
}

/*=============== PERSONAL SECTION ===============*/
.personal {
    padding: 6rem 0;
}
.personal-container {
    max-width: 700px;
    text-align: center;
}
.personal-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary-dark);
}

/*=============== TESTIMONIALS ===============*/
.testimonials {
    overflow: hidden;
    padding: 6rem 0;
}
.testimonial-scroller {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.testimonial-track {
    display: flex;
    width: calc(350px * 8); /* 4 cards + 4 duplicates */
    animation: scroll 30s linear infinite;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-350px * 4)); }
}
.testimonial-card {
    width: 350px;
    flex-shrink: 0;
    background-color: var(--card-light-bg);
    padding: 2rem;
    margin: 0 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
}
.testimonial-text {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-secondary-dark);
    margin-bottom: 1.5rem;
}
.testimonial-author {
    font-weight: 600;
    color: var(--text-dark);
}
.testimonial-scroller:hover .testimonial-track {
    animation-play-state: paused;
}


/*=============== CV SECTION ===============*/
.cv-section {
    padding: 6rem 0;
}
.cv-container {
    text-align: center;
}
.cv-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.cv-subtitle {
    color: var(--text-secondary-light);
    margin-bottom: 2rem;
}

/*=============== FAQ ===============*/
.faq-accordion {
    max-width: 750px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border-light);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: left;
}
.faq-question i {
    font-size: 1rem;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.faq-answer p {
    padding: 0 0.5rem 1.5rem;
    color: var(--text-secondary-dark);
}
.faq-item.active .faq-answer {
    max-height: 200px;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/*=============== CONTACT (UPDATED) ===============*/
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}
.contact-subtitle {
    text-align: center;
    color: var(--text-secondary-light);
    margin-bottom: 3rem;
}
.contact-item {
    background-color: var(--card-dark-bg);
    padding: 2.5rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-dark);
    transition: all 0.3s ease;
}
.contact-item:hover {
    border-color: var(--text-light);
    transform: translateY(-5px);
}
.contact-item i {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.contact-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.contact-item p {
    color: var(--text-secondary-light);
    word-break: break-word;
}

/*=============== FOOTER ===============*/
.footer-new {
    background-color: var(--bg-dark);
    color: var(--text-secondary-light);
    padding: 6rem 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding-bottom: 4rem;
}
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.footer-tagline {
    margin-top: 1rem;
    max-width: 250px;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: var(--text-secondary-light);
    transition: color 0.3s;
}
.footer-links a:hover {
    color: var(--text-light);
}
.footer-col p {
    margin-bottom: 1.5rem;
}
.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/*=============== GLOBAL FLOATING BUTTONS (FIXED) ===============*/
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 1500; /* High z-index */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

.back-to-top {
    position: fixed;
    bottom: 85px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--text-dark);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1500; /* High z-index */
    border: 1px solid var(--text-light);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-color: var(--text-dark);
    transform: translateY(-3px);
}

/*=============== SCROLL-IN ANIMATIONS ===============*/
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.hero .animate-fade-in { transition-delay: 0.2s; }
.hero .hero-buttons { transition-delay: 0.4s; }
.hero .hero-right { transition-delay: 0.3s; }
.stats .animate-fade-in:nth-child(2) { transition-delay: 0.2s; }
.work-grid .animate-fade-in:nth-child(even) { transition-delay: 0.2s; }

/*=============== RESPONSIVE MEDIA QUERIES ===============*/
@media screen and (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-left, .hero-right {
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-about {
        margin: 0 auto;
    }
    
    .service-item,
    .service-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .service-item:nth-child(even) .service-text {
        order: 0;
    }
    .service-text {
        text-align: center;
    }
    .service-text h4, .service-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col-main {
        grid-column: 1 / -1;
        text-align: center;
    }
    .footer-col-main .nav-logo,
    .footer-col-main .footer-tagline {
        margin: 0 auto;
    }
}

@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .nav-list-desktop {
        display: none;
    }
    
    .service-image img {
        height: 300px;
    }

    .design-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .design-item {
        height: 150px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}