:root {
    --primary-dark: #001b73;
    --primary: #0033cc;
    --primary-light: #4d74ff;
    --accent-gold: #f5c000;
    --accent-gold-light: #ffd95a;
    --accent-gold-dark: #d8a600;
    --white: #ffffff;
    --off-white: #f8fafc;
    --gray-light: #e2e8f0;
    --gray: #94a3b8;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 10px 40px rgba(245, 192, 0, 0.3);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
}

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 192, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 51, 204, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 192, 0, 0.05) 0%, transparent 40%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(1deg); }
    50% { transform: translate(0, 4%) rotate(0deg); }
    75% { transform: translate(-2%, 2%) rotate(-1deg); }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(0, 27, 115, 0.88) 0%, rgba(0, 51, 204, 0.78) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(245, 192, 0, 0.2);
    padding: 18px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 12px 0;
    background: linear-gradient(135deg, rgba(0, 27, 115, 0.96) 0%, rgba(0, 51, 204, 0.9) 100%);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(245, 192, 0, 0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 0;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 16px 8px 10px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    position: relative;
    isolation: isolate;
    transform-style: preserve-3d;
    transition: var(--transition);
}

.logo::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(245, 192, 0, 0.55) 0%, rgba(255, 255, 255, 0.08) 45%, rgba(245, 192, 0, 0.24) 100%);
    opacity: 0.55;
    z-index: -1;
}

.logo:hover {
    transform: translateY(-4px) rotateX(10deg) rotateY(-8deg);
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
    transform: translateZ(18px);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 18px rgba(245, 192, 0, 0.18));
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.45s ease;
}

.logo:hover img {
    transform: translateZ(30px) scale(1.03);
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 24px rgba(245, 192, 0, 0.26));
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    transition: var(--transition);
    transform-style: preserve-3d;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transform: translateX(-50%) scaleX(0);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--accent-gold);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
    transform: translateX(-50%) scaleX(1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    perspective: 500px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
    transform-style: preserve-3d;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    margin-top: 70px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 70% 50%, rgba(245, 192, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(245, 192, 0, 0.1) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    max-width: 650px;
    padding: 0 30px;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 192, 0, 0.2);
    color: var(--accent-gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(245, 192, 0, 0.3);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-content h1 span {
    color: var(--accent-gold);
    position: relative;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-image {
    position: relative;
    z-index: 2;
    display: none;
}

@media (min-width: 1024px) {
    .hero-section .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 60px;
    }
    
    .hero-content {
        flex: 1;
    }
    
    .hero-image {
        display: block;
        flex: 0 0 45%;
    }
    
    .hero-image img {
        border-radius: 30px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
        animation: float 6s ease-in-out infinite;
    }
}

.page-hero {
    position: relative;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    margin-top: 70px;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1556761175-b413da4baf72?w=1920&h=600&fit=crop') center/cover;
    opacity: 0.15;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--off-white);
    transform: skewY(-3deg);
}

.page-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 51, 204, 0.7) 0%, rgba(0, 51, 204, 0.8) 100%);
}

.page-hero .hero-content {
    position: relative;
    text-align: center;
    padding: 0 20px;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease forwards;
}

.page-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--primary-dark);
    box-shadow: 0 8px 30px rgba(245, 192, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-6px) scale(1.02) rotateX(10deg);
    box-shadow: 0 18px 44px rgba(245, 192, 0, 0.5), 0 14px 28px rgba(0, 27, 115, 0.16);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
    transform: translateY(-4px) rotateX(8deg);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #00b894 0%, #00a884 100%);
    color: var(--white);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    transform: translateY(-6px) scale(1.02) rotateX(10deg);
    box-shadow: 0 18px 44px rgba(37, 211, 102, 0.5), 0 14px 28px rgba(0, 27, 115, 0.16);
}

.btn-full { width: 100%; }

.page-content {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 35px; }

.home-content { padding: 100px 0; }

.intro-section {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 80px;
}

.intro-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 25px;
    line-height: 1.3;
}

.intro-section p {
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.9;
}

.services-preview { margin-bottom: 80px; }

.services-preview h3 {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 50px;
    position: relative;
}

.services-preview h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.preview-card {
    background: var(--white);
    padding: 50px 35px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.preview-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(245, 192, 0, 0.3) 50%,
        rgba(245, 192, 0, 0.5) 55%,
        rgba(245, 192, 0, 0.3) 60%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 1s ease;
    pointer-events: none;
    z-index: 1;
}

.preview-card:hover::after {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
    transform: scaleX(0);
    transition: var(--transition);
}

.preview-card:hover::before { transform: scaleX(1); }

.preview-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--shadow-lg);
}

.preview-card i {
    font-size: 3.5rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(245, 192, 0, 0.4));
    transition: var(--transition);
}

.preview-card:hover i {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 10px 25px rgba(245, 192, 0, 0.6));
}

.preview-card h4 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.preview-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.link-btn {
    color: var(--accent-gold-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.link-btn:hover { color: var(--accent-gold); gap: 12px; }

.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 80px 50px;
    border-radius: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 192, 0, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.cta-section h3 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 18px;
    position: relative;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    font-size: 1.1rem;
    position: relative;
}

.testimonials-section {
    padding: 100px 0;
    text-align: center;
}

.testimonials-section h3 {
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: left;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 5rem;
    color: var(--accent-gold);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card .stars {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-card .stars i {
    margin-right: 3px;
}

.testimonial-text {
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
}

.author-info h4 {
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
    padding-bottom: 100px;
    border-bottom: 1px solid var(--gray-light);
}

.service-detail:last-child { border-bottom: none; margin-bottom: 0; }

.service-detail.reverse .service-image { order: 2; }
.service-detail.reverse .service-info { order: 1; }

.service-image { position: relative; }

.service-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: var(--accent-gold);
    border-radius: 25px;
    opacity: 0.3;
    z-index: -1;
    transition: var(--transition);
}

.service-image:hover::before {
    top: -10px;
    left: -10px;
    opacity: 0.5;
}

.service-image img {
    border-radius: 25px;
    box-shadow: 0 26px 54px rgba(0, 27, 115, 0.2), 0 12px 24px rgba(245, 192, 0, 0.16);
    transition: var(--transition);
}

.service-image:hover img {
    transform: translateY(-10px) rotateY(-6deg) rotateX(4deg) scale(1.03);
    box-shadow: 0 34px 76px rgba(0, 27, 115, 0.28), 0 18px 36px rgba(245, 192, 0, 0.2);
}

.service-info .service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-gold);
    transform: rotate(-5deg);
    transition: var(--transition);
}

.service-info:hover .service-icon {
    transform: rotate(0deg) scale(1.1);
}

.service-info .service-icon i {
    font-size: 2.2rem;
    color: var(--white);
}

.service-info h2 {
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.service-info p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.service-list { margin-bottom: 35px; }

.service-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.service-list li i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.about-text h2 {
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.05rem;
    line-height: 1.9;
}

.about-image { position: relative; }

.about-image::before {
    content: '';
    position: absolute;
    top: -25px;
    right: -25px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
    border-radius: 25px;
    opacity: 0.4;
    z-index: -1;
}

.about-image img {
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-image:hover img { transform: scale(1.03); }

.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 100px;
}

.stat-card {
    background: var(--white);
    padding: 50px 25px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background: var(--accent-gold);
    transform: translateX(-50%);
    transition: var(--transition);
}

.stat-card:hover::before { width: 100%; }

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-size: 1rem;
}

.why-choose-section { text-align: center; }

.why-choose-section h2 {
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 45px 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, var(--accent-gold), transparent);
    opacity: 0.1;
    transition: var(--transition);
}

.feature-card:hover::after { height: 100%; }

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 25px;
    display: block;
    transition: var(--transition);
}

.feature-card:hover i { transform: scale(1.15); }

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    position: relative;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid var(--accent-gold);
    background: transparent;
    color: var(--accent-gold-dark);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--white);
    box-shadow: var(--shadow-gold);
    transform: translateY(-3px);
}

.gallery-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(0, 27, 115, 0.14), 0 12px 24px rgba(245, 192, 0, 0.1);
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.gallery-item .gallery-inner {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.gallery-item:hover .gallery-inner {
    transform: rotateY(5deg) rotateX(-5deg) scale(1.05);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 51, 204, 0.9) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 192, 0, 0.45) 0%, rgba(0, 27, 115, 0.9) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    transform: translateZ(-30px) scale(1.1);
    backface-visibility: hidden;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateZ(0) scale(1);
}

.gallery-overlay i {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 12px;
    transform: scale(0) translateZ(-20px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-item:hover .gallery-overlay i { transform: scale(1); }

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item:hover img { transform: scale(1.15) rotate(2deg); }
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 50px rgba(0, 27, 115, 0.2), 0 16px 30px rgba(245, 192, 0, 0.14);
}
.gallery-item.hidden { display: none; }

.contact-grid-full {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 70px;
}

.contact-info-full h2 {
    font-size: 2.4rem;
    color: var(--primary-dark);
    margin-bottom: 18px;
}

.contact-info-full > p {
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.05rem;
}

.contact-item {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    padding: 25px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(8px) translateY(-8px) rotateX(6deg);
    box-shadow: 0 24px 44px rgba(0, 27, 115, 0.16), 0 14px 28px rgba(245, 192, 0, 0.12);
}

.contact-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-gold);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: rotate(-10deg) scale(1.1);
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-details h4 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.contact-details p {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-details span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact-form-section {
    background: var(--white);
    padding: 60px;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
}

.contact-form-section h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.contact-form-section > p {
    color: var(--text-light);
    margin-bottom: 35px;
}

.contact-form { margin-bottom: 40px; }

.form-group { margin-bottom: 25px; }

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 22px;
    border: 2px solid var(--gray-light);
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--off-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(245, 192, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.whatsapp-direct {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid var(--gray-light);
}

.whatsapp-direct p {
    color: var(--text-light);
    margin-bottom: 22px;
    font-size: 1.05rem;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.map-wrapper iframe {
    display: block;
}

.map-address {
    text-align: center;
    margin-top: 25px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.map-address i {
    color: var(--accent-gold);
    margin-right: 10px;
}

.map-directions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 32px;
    text-align: center;
}

.footer {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 100px 0 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 25px;
    max-width: max-content;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    line-height: 1.8;
}

.social-links { display: flex; gap: 15px; }

.social-links a {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(245, 192, 0, 0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transform-style: preserve-3d;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-dark);
    transform: translateY(-6px) rotateX(16deg) rotateY(-14deg) scale(1.04);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2), 0 12px 24px rgba(245, 192, 0, 0.35);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 30px;
    position: relative;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.footer-links ul li { margin-bottom: 14px; }

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links ul li a::before {
    content: '\2192';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.footer-links ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links ul li a:hover {
    color: var(--accent-gold);
    padding-left: 15px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-contact i { color: var(--accent-gold); width: 20px; }

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.2rem;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: var(--transition);
    animation: floatAlive 3s ease-in-out infinite;
    cursor: pointer;
}

@keyframes floatAlive {
    0%, 100% { 
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }
    25% { 
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    50% { 
        transform: translateY(-15px) scale(1.05);
        box-shadow: 0 20px 50px rgba(37, 211, 102, 0.7), 0 0 0 15px rgba(37, 211, 102, 0);
    }
    75% { 
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 15px 50px rgba(37, 211, 102, 0.8), 0 0 30px rgba(37, 211, 102, 0.5);
    animation: none;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    right: 80px;
    background: var(--primary-dark);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: var(--primary-dark);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 15px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

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

    .preview-grid,
    .features-grid,
    .gallery-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail,
    .about-section {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .service-detail.reverse .service-image,
    .service-detail.reverse .service-info {
        order: unset;
    }

    .service-image { order: 2 !important; }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid-full {
        grid-template-columns: 1fr;
    }

    .intro-section h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: linear-gradient(180deg, var(--primary-dark) 0%, #1a1a3e 100%);
        flex-direction: column;
        padding: 120px 50px;
        gap: 35px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active { right: 0; }

    .mobile-menu-btn { display: flex; z-index: 1001; }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .page-hero { height: 300px; }

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

    .hero-badge {
        font-size: 0.8rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 30px;
    }

    .stat-num {
        font-size: 1.8rem;
    }

    .testimonials-section h3 {
        font-size: 1.8rem;
    }

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

    .preview-grid,
    .features-grid,
    .gallery-grid-full {
        grid-template-columns: 1fr;
    }

    .stats-section {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-card { padding: 35px 20px; }
    .stat-number { font-size: 2.2rem; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-section { padding: 40px 30px; }

    .cta-section { padding: 60px 35px; }
    .cta-section h3 { font-size: 1.8rem; }

    .whatsapp-float {
        bottom: 25px;
        right: 25px;
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .whatsapp-tooltip { display: none; }

    .gallery-filters { gap: 12px; }

    .filter-btn {
        padding: 10px 22px;
        font-size: 0.9rem;
    }

    .service-detail {
        margin-bottom: 70px;
        padding-bottom: 70px;
    }

    .about-section { margin-bottom: 70px; }
}

/* ============================================
   3D MOTION EFFECTS
   ============================================ */

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2f4e 50%, var(--accent-gold) 100%);
    z-index: 10000;
    transform: translateZ(0) scaleY(0);
    transform-origin: top;
    pointer-events: none;
}

.page-transition-overlay.active {
    animation: pageSlideOut 0.6s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

.page-transition-overlay.exit {
    transform-origin: bottom;
    animation: pageSlideIn 0.6s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}

@keyframes pageSlideOut {
    0% { transform: translateZ(0) scaleY(0); }
    40% { transform: translateZ(0) scaleY(1); }
    100% { transform: translateZ(0) scaleY(1); }
}

@keyframes pageSlideIn {
    0% { transform: translateZ(0) scaleY(1); }
    60% { transform: translateZ(0) scaleY(1); }
    100% { transform: translateZ(0) scaleY(0); }
}

/* Hero Section 3D Parallax */
.hero-section {
    perspective: 1000px;
    overflow: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 70% 50%, rgba(245, 192, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(245, 192, 0, 0.1) 0%, transparent 40%);
}

.hero-content {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.hero-content > * {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease;
}

.hero-image {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

.hero-image img {
    will-change: transform;
    border-radius: 32px;
    box-shadow: 0 28px 62px rgba(0, 27, 115, 0.26), 0 14px 28px rgba(245, 192, 0, 0.16);
    filter: saturate(1.05);
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-image:hover img {
    transform: translateY(-12px) rotateY(-10deg) rotateX(6deg) scale(1.03);
    box-shadow: 0 38px 82px rgba(0, 27, 115, 0.32), 0 18px 36px rgba(245, 192, 0, 0.24);
}

/* Hero Particles */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 
        0 0 30px var(--accent-gold),
        0 0 60px var(--accent-gold),
        0 0 90px rgba(245, 192, 0, 0.6),
        0 0 120px rgba(245, 192, 0, 0.3);
    animation: floatParticle 6s ease-in-out infinite;
}

.hero-particles::before {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.hero-particles::after {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
    width: 6px;
    height: 6px;
}

@keyframes floatParticle {
    0%, 100% { 
        transform: translateY(0) translateX(0) scale(1) rotate(0deg);
        opacity: 0.9;
    }
    25% { 
        transform: translateY(-40px) translateX(20px) scale(1.3) rotate(90deg);
        opacity: 1;
    }
    50% { 
        transform: translateY(-20px) translateX(-15px) scale(0.8) rotate(180deg);
        opacity: 0.6;
    }
    75% { 
        transform: translateY(-50px) translateX(10px) scale(1.2) rotate(270deg);
        opacity: 0.9;
    }
}

/* 3D Tilt Cards */
.tilt-card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
}

.tilt-card-3d .tilt-glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(245, 192, 0, 0) 0%,
        rgba(245, 192, 0, 0) 30%,
        rgba(245, 192, 0, 0.6) 45%,
        rgba(255, 255, 255, 0.8) 50%,
        rgba(245, 192, 0, 0.6) 55%,
        rgba(245, 192, 0, 0) 70%,
        rgba(245, 192, 0, 0) 100%
    );
    opacity: 0;
    pointer-events: none;
    transform: translateX(-150%) rotate(45deg);
    transition: opacity 0.5s ease;
    z-index: 10;
    border-radius: inherit;
}

.tilt-card-3d:hover .tilt-glare {
    opacity: 1;
    animation: goldGlareSlide 0.8s ease-out forwards;
}

@keyframes goldGlareSlide {
    0% { transform: translateX(-150%) rotate(45deg); }
    100% { transform: translateX(150%) rotate(45deg); }
}

/* Stats Section 3D Flip */
.stat-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
}

.stat-card .stat-front,
.stat-card .stat-back {
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card .stat-front {
    transform: rotateY(0deg);
}

.stat-card .stat-back {
    position: absolute;
    inset: 0;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-card.flip-reveal .stat-front {
    transform: rotateY(-180deg);
}

.stat-card.flip-reveal .stat-back {
    transform: rotateY(0deg);
}

.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    border-radius: inherit;
    opacity: 0;
    transform: translateZ(-1px);
    transition: opacity 0.3s ease;
}

.stat-card.flip-reveal::after {
    opacity: 0.15;
}

/* 3D Navbar Shadow */
.navbar {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
}

.navbar.scrolled {
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 8px 15px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(245, 192, 0, 0.1);
    transform: translateY(-2px);
}

.navbar.scrolled::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(to bottom, rgba(10, 22, 40, 0.3), transparent);
    pointer-events: none;
}

/* Feature Cards Gold Shimmer */
.feature-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(245, 192, 0, 0.4) 45%,
        rgba(245, 192, 0, 0.6) 50%,
        rgba(245, 192, 0, 0.4) 55%,
        transparent 70%
    );
    transform: translateX(-150%) translateY(-100%) rotate(45deg);
    transition: transform 1.2s ease;
    pointer-events: none;
    z-index: 1;
}

.feature-card:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.feature-card > * {
    position: relative;
    z-index: 2;
}

/* 3D Card Glow Effect */
.tilt-card-3d {
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.tilt-card-3d:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 0 30px rgba(245, 192, 0, 0.2),
        0 0 0 1px rgba(245, 192, 0, 0.1) inset;
}

/* Hero Title Depth Effect */
.depth-title {
    text-shadow: 
        0 0 20px rgba(245, 192, 0, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateZ(20px);
}

.depth-text {
    transform: translateZ(10px);
}

/* 3D Hover Lift */
.hover-lift-3d {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
}

.hover-lift-3d:hover {
    transform: translateY(-10px) translateZ(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(245, 192, 0, 0.15);
}

/* Scroll Reveal Animation */
.reveal-3d {
    opacity: 0;
    transform: translateY(50px) translateZ(-50px) rotateX(10deg);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-3d.revealed {
    opacity: 1;
    transform: translateY(0) translateZ(0) rotateX(0);
}

/* Smooth scroll parallax for all parallax elements */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .hero-particles::before,
    .hero-particles::after {
        animation: none;
    }
    
    .page-transition-overlay {
        animation: none !important;
    }
    
    .tilt-card-3d {
        transform: none !important;
    }
    
    .stat-card.flip-reveal {
        transform: none !important;
    }
}

/* ============================================
   MOBILE & TOUCH OPTIMIZATIONS (iOS/Android)
   ============================================ */

/* Improve touch response on mobile */
@media (hover: none) and (pointer: coarse) {
    .tilt-card-3d,
    .preview-card,
    .feature-card {
        transform: none !important;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .tilt-card-3d:active,
    .preview-card:active,
    .feature-card:active {
        transform: scale(0.98) !important;
    }
    
    .hero-particles {
        display: none;
    }
    
    .whatsapp-float {
        animation: floatMobile 2s ease-in-out infinite;
    }
    
    @keyframes floatMobile {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero-section {
        min-height: -webkit-fill-available;
    }
    
    .btn {
        -webkit-tap-highlight-color: transparent;
    }
    
    .tilt-card-3d,
    .preview-card,
    .feature-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

/* Android-optimized touch handling */
@media screen and (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(212, 168, 83, 0.3);
    }
    
    .btn {
        touch-action: manipulation;
    }
    
    .nav-links a,
    .footer-links a,
    .social-links a {
        touch-action: manipulation;
    }
    
    .preview-card,
    .feature-card {
        touch-action: manipulation;
    }
    
    .3d-tilt-card {
        touch-action: none;
    }
}

/* Optimize animations for 60fps on mobile */
@media screen and (max-width: 768px) {
    .hero-content,
    .hero-bg {
        transition: none;
    }
    
    .preview-card,
    .feature-card,
    .gallery-item,
    .testimonial-card {
        transition-duration: 0.3s !important;
    }
    
    .whatsapp-float {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
}

/* Reduce motion on mobile for better performance */
@media screen and (max-width: 768px) {
    .bg-animation::before {
        animation: none;
    }
    
    .page-transition-overlay {
        animation-duration: 0.3s !important;
    }
}

/* Lazy load images */
.gallery-item img,
.service-image img,
.about-image img {
    loading: lazy;
}

/* Optimize GPU rendering */
.preview-card,
.feature-card,
.gallery-item,
.testimonial-card,
.stat-card,
.contact-item {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

/* ============================================
   PWA INSTALL PROMPT
   ============================================ */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 51, 204, 0.1);
    z-index: 9999;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.pwa-install-prompt.show {
    transform: translateY(0);
    opacity: 1;
}

.pwa-install-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    position: relative;
}

.pwa-install-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0033cc, #001a33);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 51, 204, 0.3);
}

.pwa-install-icon img {
    border-radius: 8px;
}

.pwa-install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.pwa-install-text strong {
    font-size: 0.95rem;
    color: var(--primary-dark);
    line-height: 1.3;
}

.pwa-install-text span {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.2;
}

.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--primary-dark);
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.pwa-install-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-gold);
}

.pwa-install-btn i {
    font-size: 0.9rem;
}

.pwa-close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--gray-light);
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.pwa-close-btn:hover {
    background: var(--gray);
    color: var(--white);
}

@media (min-width: 768px) {
    .pwa-install-prompt {
        bottom: 100px;
        right: 100px;
        left: auto;
        min-width: 420px;
    }
}

@media (max-width: 480px) {
    .pwa-install-content {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .pwa-install-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}
