/* =========================================
   DESIGN TOKENS & VARIABLES
   ========================================= */
:root {
    /* Colors */
    --color-bg-primary: #002129; /* Midnight green */
    --color-bg-secondary: #00151a; /* Darker midnight green for contrast */
    --color-text-main: #ffffff; /* White text */
    --color-text-light: #dcdcdc; /* Light grey text */
    --color-accent: #cda274; /* Muted gold / brushed bronze */
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 5%;
    
    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23cda274' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'%3E%3C/path%3E%3Ccircle cx='12' cy='13' r='4'%3E%3C/circle%3E%3C/svg%3E") 14 14, auto;
}

/* Custom interactive camera cursor */
a, button, .gallery-item, .music-float, .whatsapp-float, input[type="submit"] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='%23cda274' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'%3E%3C/path%3E%3Ccircle cx='12' cy='13' r='4'%3E%3C/circle%3E%3C/svg%3E") 14 14, pointer !important;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6, .logo, .footer-logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

.italic-title {
    font-style: italic;
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all var(--transition-fast);
    color: white;
}

.navbar .logo img {
    filter: brightness(0) invert(1);
    transition: filter var(--transition-fast);
}

.navbar.scrolled {
    background-color: rgba(0, 33, 41, 0.95);
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    color: var(--color-text-main);
}

.navbar.scrolled .logo img {
    filter: brightness(0) invert(1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 1001;
}

@media screen and (max-width: 600px) {
    .navbar .logo img {
        height: 40px !important;
    }
    .navbar {
        padding: 20px 5%;
    }
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: white;
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger .bar {
    background-color: var(--color-text-main);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #00151a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transform: translateY(-100%);
    transition: transform var(--transition-slow);
    z-index: 999;
    color: var(--color-text-main);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh; /* Reduced fade height */
    background: linear-gradient(to bottom, transparent, var(--color-bg-secondary));
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.85);
}

.hero-content {
    color: white;
    z-index: 1;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 8rem);
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 40px;
    font-family: var(--font-heading);
    font-style: italic;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.cta-button:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.mouse {
    width: 20px;
    height: 30px;
    border: 1px solid white;
    border-radius: 10px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 2px;
    height: 6px;
    background-color: white;
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about {
    padding: var(--section-padding);
    background-color: var(--color-bg-secondary);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding-right: 20px;
    padding-bottom: 20px;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 80%;
    border: 1px solid var(--color-accent);
    z-index: 0;
}

.about-image {
    position: relative;
    z-index: 1;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.1);
    transition: filter 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

/* Vintage Light Switch Feature */
.about-image.darkened {
    filter: brightness(0.08) contrast(1.2) sepia(0.3) saturate(0) blur(1px); 
    /* Extremely dark, slightly moody and un-illuminated */
    opacity: 0.9;
}

.light-flash-overlay {
    position: absolute;
    top: 0; left: 0; 
    width: calc(100% - 20px); /* Account for padding */
    height: calc(100% - 20px);
    background: radial-gradient(circle at center, rgba(255, 255, 230, 0.4) 0%, transparent 70%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: overlay;
}

.light-flash-overlay.flicker {
    animation: lightFlicker 0.4s forwards;
}

@keyframes lightFlicker {
    0% { opacity: 0; }
    20% { opacity: 1; background: rgba(255, 255, 230, 0.6); }
    40% { opacity: 0.1; }
    60% { opacity: 0.5; }
    80% { opacity: 0; }
    100% { opacity: 0; }
}

.vintage-light-switch {
    position: absolute;
    top: -30px; /* hang from top right over image */
    right: 50px; 
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.switch-cord-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: grab;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.switch-cord-wrapper:active {
    cursor: grabbing;
    transform: translateY(20px); /* pulling action */
}

.cord {
    width: 2px;
    height: 100px;
    background: linear-gradient(to right, #cfb776, #e8d5b5, #cfb776); /* Luxury brass */
    box-shadow: 1px 0 3px rgba(0,0,0,0.5);
}

.knob {
    width: 16px;
    height: 30px;
    background: linear-gradient(135deg, #fce27c, #dca532, #8a5a0d); /* Golden knob */
    border-radius: 50% 50% 20% 20% / 70% 70% 30% 30%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.6), inset -2px -2px 5px rgba(0,0,0,0.4);
}

.pull-hint {
    font-family: var(--font-heading);
    color: #cfb776; /* Golden text */
    font-size: 0.85rem;
    font-style: italic;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    position: absolute;
    left: -180px; 
    bottom: -15px;
    width: max-content;
    opacity: 0.9;
    animation: hintPulse 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes hintPulse {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-5px) scale(1.05); opacity: 1; text-shadow: 0 0 10px rgba(207,183,118,0.8); }
}

.about-socials {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    padding-right: 20px; /* Aligns with the image optically, considering it has a right margin */
}

.about-socials a {
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.about-socials a svg {
    width: 28px;
    height: 28px;
}

.about-socials a:hover {
    color: var(--color-accent);
    transform: translateY(-5px);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

.section-subtitle {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.divider {
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
    margin-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

.about .divider {
    margin-left: 0;
    margin-right: 0;
}

.body-text {
    color: var(--color-text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.feature {
    display: flex;
    flex-direction: column;
}

.feature-number {
    font-family: var(--font-heading);
    color: var(--color-accent);
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 5px;
}

.feature-text {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-light);
}

/* =========================================
   PORTFOLIO SECTION
   ========================================= */
.portfolio, .mbs {
    padding: var(--section-padding);
    background-color: var(--color-bg-primary);
    text-align: center;
}

.portfolio-header, .mbs-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--color-text-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Swiper Coverflow Gallery */
.portfolio-swiper {
    width: 100%;
    padding: 60px 0;
    margin: 0 auto;
    overflow: hidden;
}

.portfolio-swiper .swiper-slide {
    width: 320px;
    height: 480px;
    transition: filter var(--transition-slow), opacity var(--transition-slow);
    filter: blur(4px); /* Blur un-focused photos */
    opacity: 0.6;
}

@media (max-width: 768px) {
    .portfolio-swiper .swiper-slide {
        width: 260px;
        height: 380px;
    }
}

.portfolio-swiper .swiper-slide-active {
    filter: blur(0);
    opacity: 1;
}

.portfolio-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.portfolio-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-swiper .swiper-slide-active:hover img {
    transform: scale(1.05); /* very subtle zoom when hovered while active */
}

/* Pagination Dots Customization */
.portfolio-swiper .swiper-pagination-bullet {
    background-color: var(--color-text-main);
    opacity: 0.5;
}

.portfolio-swiper .swiper-pagination-bullet-active {
    background-color: var(--color-accent);
    opacity: 1;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/4; /* Consistent portrait ratio for elegance */
}

#mbs-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 900px;
}

#mbs-grid .gallery-item {
    aspect-ratio: 16/9; /* Make website screenshots horizontal, effectively making them ~2.5x smaller vertically */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.gallery-caption {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    transform: translateY(20px);
    transition: transform var(--transition-fast);
}

.gallery-item:hover img {
    transform: scale(1.05); /* very subtle zoom inside bounding box */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.portfolio-cta {
    margin-top: 60px;
}

.secondary-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.secondary-button:hover {
    background-color: var(--color-accent);
    color: var(--color-bg-primary);
}

/* =========================================
   SERVICES SECTION
   ========================================= */
.services {
    padding: var(--section-padding);
    background-color: var(--color-bg-primary);
    text-align: center;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background-color: var(--color-bg-secondary);
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.service-card.main-service {
    border-color: var(--color-accent);
}

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

.service-icon {
    margin-bottom: 30px;
    color: var(--color-accent);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.link-card {
    text-decoration: none;
    color: inherit;
}

.click-hint {
    margin-top: 25px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    opacity: 0.6;
    font-weight: 600;
}

.service-card:hover .click-hint {
    opacity: 1;
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact {
    padding: var(--section-padding);
    background-color: var(--color-bg-secondary);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto 60px auto;
    color: var(--color-text-light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    text-align: left;
}

.contact-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

.info-icon {
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-main);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--color-accent);
}

.form-submit {
    width: 100%;
    border-color: var(--color-accent);
}

.form-status {
    margin-top: 20px;
    color: var(--color-accent);
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

/* =========================================
   TESTIMONIALS SECTION (Liquid Glass iOS16)
   ========================================= */
.testimonials {
    padding: var(--section-padding);
    background-color: var(--color-bg-primary);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Background blob for the liquid feel */
.testimonials::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(205, 162, 116, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    filter: blur(80px);
    animation: liquidMove 10s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes liquidMove {
    0% { transform: translate(-40%, -40%) scale(1); }
    100% { transform: translate(-60%, -60%) scale(1.2); }
}

.testimonials-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-swiper {
    padding-bottom: 60px;
}

.testimonial-slide {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.testimonial-card {
    background: linear-gradient(110deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.25) 20%, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.8), inset 0 20px 40px rgba(255, 255, 255, 0.1), 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.client-photo-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, rgba(205, 162, 116, 0.8), rgba(255, 255, 255, 0.2));
    margin-bottom: 15px;
    transform: translateZ(50px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.client-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-bg-primary);
}

.client-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-accent);
    transform: translateZ(30px);
}

.client-comment {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-light);
    font-style: italic;
    transform: translateZ(20px);
}

.quote-icon {
    font-size: 1.8rem;
    color: rgba(205, 162, 116, 0.15);
    position: absolute;
    top: 20px;
    left: 20px;
    transform: translateZ(10px);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    padding: 80px 5%;
    background-color: var(--color-bg-secondary);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    margin-bottom: 30px;
}

.footer-text {
    color: var(--color-text-light);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* =========================================
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-down {
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active,
.reveal-down.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Initial Load Animations (Hero) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media screen and (max-width: 900px) {
    :root {
        --section-padding: 60px 5%;
    }

    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        padding: 0;
        margin-bottom: 30px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .contact-wrapper {
        gap: 25px;
    }
    
    .about-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-title img {
        height: 60vw !important;
    }
}

@media screen and (max-width: 600px) {
    :root {
        --section-padding: 50px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .body-text {
        font-size: 0.95rem;
    }

    .service-card {
        padding: 40px 25px;
    }

    .portfolio-swiper .swiper-slide {
        width: 240px;
        height: 360px;
    }

    .video-info h3 {
        font-size: 0.9rem;
    }

    .video-info p {
        font-size: 0.8rem;
    }

    .testimonial-card {
        padding: 20px 15px;
        max-width: 280px;
        border-radius: 15px;
    }

    .client-photo-wrapper {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .client-name {
        font-size: 0.95rem;
        margin-bottom: 5px;
    }

    .client-comment {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .quote-icon {
        font-size: 1.5rem;
        top: 15px;
        left: 15px;
    }
}

/* =========================================
   FLOATING WIDGETS
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #1ebe57;
    color: white;
}

.music-float {
    position: fixed;
    bottom: 40px;
    left: 40px;
    background-color: var(--color-accent);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.music-float:hover {
    transform: scale(1.1);
    background-color: var(--color-text-main);
}

@media screen and (max-width: 900px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
    .music-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
    }
    .music-float svg {
        width: 25px;
        height: 25px;
    }
}

/* =========================================
   MINIMALIST INTRO LOADER
   ========================================= */
#intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s cubic-bezier(0.85, 0, 0.15, 1);
}

.loader-content {
    perspective: 1000px;
}

.loader-logo {
    height: clamp(100px, 40vw, 400px);
    width: auto;
    filter: brightness(0);
    animation: loaderFlip 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes loaderFlip {
    0% {
        transform: rotateY(90deg) scale(0.7);
        opacity: 0;
    }
    30% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
    70% {
        transform: rotateY(0deg) scale(1);
        opacity: 1;
    }
    90% {
        transform: rotateY(-10deg) scale(1.05); /* Slight anticipatory tilt */
        opacity: 1;
    }
    100% {
        transform: rotateY(90deg) scale(1.2); /* Final flip out */
        opacity: 0;
    }
}

#intro-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Hero Content Reset */
/* Hero Section 3D Styles for Gyroscope/Tilt */
.hero-image-container {
    perspective: 1200px;
    overflow: hidden;
}

.hero-bg {
    transition: transform 0.1s ease-out; /* Smooth movement */
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-content {
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
    transform: translateY(30px);
}

.hero-content.fade-in-final {
    opacity: 1;
    transform: translateY(0);
}

