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

:root {
    --primary: #29B6F6;
    --primary-dark: #0288D1;
    --primary-light: #81D4FA;
    --primary-bg: #E1F5FE;
    --accent: #03A9F4;
    --bg: #ffffff;
    --bg-alt: #f0f7fe;
    --bg-card: #ffffff;
    --text: #2d3436;
    --text-light: #636e72;
    --text-muted: #b2bec3;
    --text-bright: #1a1a2e;
    --border: #e8edf3;
    --shadow: 0 4px 20px rgba(41, 182, 246, 0.12);
    --shadow-hover: 0 12px 40px rgba(41, 182, 246, 0.25);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
    --shadow-3d: 0 30px 80px rgba(41, 182, 246, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --z-base: 1;
    --z-raised: 10;
    --z-floating: 100;
}

html {
    scroll-behavior: smooth;
    perspective: 1200px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle, var(--primary-light) 0.8px, transparent 0.8px),
        radial-gradient(circle, var(--primary-light) 0.5px, transparent 0.5px);
    background-size: 40px 40px, 20px 20px;
    background-position: 0 0, 10px 10px;
    background-attachment: fixed;
    transform-style: preserve-3d;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER / NAV ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid rgba(41, 182, 246, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(50px);
    box-shadow: 0 1px 30px rgba(41, 182, 246, 0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-dark);
    letter-spacing: -1px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    animation: logoBounce 2.5s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(41, 182, 246, 0.3);
    user-select: none;
}

.logo span {
    color: var(--primary);
    animation: logoGlow 2.5s ease-in-out infinite;
}

@keyframes logoBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    25% { transform: translateY(-3px) scale(1.05); }
    50% { transform: translateY(0) scale(1); }
    75% { transform: translateY(-2px) scale(1.02); }
}

@keyframes logoGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(41, 182, 246, 0.3); }
    50% { text-shadow: 0 0 35px rgba(41, 182, 246, 0.7), 0 0 60px rgba(41, 182, 246, 0.2); }
}

.nav { display: flex; gap: 32px; }

.nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-dark);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-bright);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 140px 0 70px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #ffffff 70%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(41, 182, 246, 0.08), transparent 70%);
    border-radius: 50%;
}

.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-bright);
    position: relative;
    z-index: 1;
    transform: translateZ(20px);
    text-shadow: 0 4px 20px rgba(41, 182, 246, 0.08);
}

.page-hero p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 10px;
    position: relative;
    z-index: 1;
    transform: translateZ(15px);
}

/* ===== HOME HERO ===== */
.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #ffffff 50%, var(--primary-bg) 100%);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    animation: heroShift 12s ease-in-out infinite alternate;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(41, 182, 246, 0.08), transparent 70%);
    border-radius: 50%;
    transform: translateZ(-50px);
    animation: blobMove 18s ease-in-out infinite alternate;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(129, 212, 250, 0.08), transparent 70%);
    border-radius: 50%;
    transform: translateZ(-30px);
    animation: blobMove 15s ease-in-out infinite alternate-reverse;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background: var(--primary-bg);
    color: var(--primary-dark);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    animation: hero3DTop 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.hero-grid h1 {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-bright);
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: -1px;
    transform: translateZ(30px);
    text-shadow: 0 5px 30px rgba(41, 182, 246, 0.1);
    animation: hero3DLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}

.hero-grid h1 span {
    color: var(--primary-dark);
    display: inline-block;
    transform: translateZ(40px);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 18px;
    transform: translateZ(20px);
    animation: hero3DBottom 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}

.hero-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.8;
    transform: translateZ(15px);
    animation: hero3DBottom 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.65s both;
}

@keyframes hero3DTop {
    from { opacity: 0; transform: translateZ(-100px) translateY(-60px) rotateX(30deg); }
    to { opacity: 1; transform: translateZ(0) translateY(0) rotateX(0); }
}

@keyframes hero3DLeft {
    from { opacity: 0; transform: translateZ(-80px) translateX(-80px) rotateY(-20deg); }
    to { opacity: 1; transform: translateZ(30px) translateX(0) rotateY(0); }
}

@keyframes hero3DBottom {
    from { opacity: 0; transform: translateZ(-60px) translateY(50px) rotateX(-15deg); }
    to { opacity: 1; transform: translateZ(0) translateY(0) rotateX(0); }
}

@keyframes hero3DRight {
    from { opacity: 0; transform: translateZ(-100px) translateX(80px) rotateY(25deg) scale(0.8); }
    to { opacity: 1; transform: translateZ(40px) translateX(0) rotateY(-3deg) scale(1); }
}

@keyframes hero3DScale {
    from { opacity: 0; transform: translateZ(-120px) scale(0.6) rotateX(15deg); }
    to { opacity: 1; transform: translateZ(0) scale(1) rotateX(0); }
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: hero3DBottom 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s both;
}

.hero-actions .btn:nth-child(2) {
    animation: hero3DScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.95s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 30px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    font-family: var(--font);
    position: relative;
    transform: translateZ(10px);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(41, 182, 246, 0.3), 0 2px 0 #0277BD, 0 4px 0 #01579B;
    transform: translateZ(10px) translateY(-2px);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateZ(20px) translateY(-6px);
    box-shadow: 0 8px 30px rgba(41, 182, 246, 0.4), 0 4px 0 #0277BD, 0 8px 0 #01579B;
}

.btn-primary:active {
    transform: translateZ(5px) translateY(2px);
    box-shadow: 0 2px 10px rgba(41, 182, 246, 0.3), 0 1px 0 #0277BD;
}

.btn-outline {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgba(41, 182, 246, 0.08);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateZ(20px) translateY(-4px);
    box-shadow: 0 8px 30px rgba(41, 182, 246, 0.3);
}

/* Photo - frameless */
.hero-photo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    perspective: 800px;
    animation: hero3DRight 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.hero-photo-wrap::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border: 2px dashed rgba(41, 182, 246, 0.08);
    border-radius: 50%;
    animation: spin 30s linear infinite;
    transform: translateZ(-20px);
}

@keyframes spin {
    to { transform: translateZ(-20px) rotate(360deg); }
}

.hero-photo {
    width: 340px;
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        -20px 20px 60px rgba(41, 182, 246, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(41, 182, 246, 0.05);
    background: var(--primary-bg);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s ease;
    position: relative;
    transform: translateZ(40px) rotateY(-3deg);
    transform-style: preserve-3d;
}

.hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(41, 182, 246, 0.1), transparent 50%);
    pointer-events: none;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-photo:hover {
    transform: translateZ(60px) translateY(-12px) rotateY(-5deg) scale(1.02);
    box-shadow:
        -30px 30px 80px rgba(41, 182, 246, 0.2),
        0 30px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(41, 182, 246, 0.1);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary-bg), #ffffff);
}

.photo-placeholder i {
    font-size: 5rem;
    opacity: 0.5;
    margin-bottom: 12px;
}

.photo-placeholder p {
    font-size: 0.95rem;
    opacity: 0.4;
    font-weight: 500;
}

/* Floating badges */
.floating-badges {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 10px 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-bright);
    animation: floatBadge 6s ease-in-out infinite;
    border: 1px solid rgba(41, 182, 246, 0.12);
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge:hover {
    transform: translateZ(20px) scale(1.05);
    box-shadow: 0 12px 40px rgba(41, 182, 246, 0.15);
    border-color: rgba(41, 182, 246, 0.3);
}

.badge i { color: var(--primary); font-size: 1.1rem; }

.badge-1 { top: 5%; right: -10px; animation: hero3DScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s both, floatBadge 6s ease-in-out 1.9s infinite; transform: translateZ(50px); }
.badge-2 { bottom: 15%; left: -15px; animation: hero3DScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s both, floatBadge 6s ease-in-out 2.1s infinite; transform: translateZ(35px); }
.badge-3 { top: 45%; right: -25px; animation: hero3DScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both, floatBadge 6s ease-in-out 2.3s infinite; transform: translateZ(45px); }

@keyframes floatBadge {
    0%, 100% { transform: var(--tw, translateY(0)) translateZ(0); }
    50% { transform: var(--tw, translateY(-12px)) translateZ(10px); }
}

.badge-1 { --tw: translateY(0); }
.badge-2 { --tw: translateY(0); }
.badge-3 { --tw: translateY(0); }

/* ===== ABOUT PAGE ===== */
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    padding: 60px 0;
}

.about-photo {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: -15px 15px 50px rgba(41, 182, 246, 0.12), 0 15px 40px rgba(0, 0, 0, 0.05);
    background: var(--primary-bg);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
    transform-style: preserve-3d;
    transform: translateZ(10px) rotateY(-2deg);
}

.about-photo:hover {
    transform: translateZ(30px) translateY(-8px) rotateY(-4deg) scale(1.02);
    box-shadow: -25px 25px 70px rgba(41, 182, 246, 0.2), 0 25px 50px rgba(0, 0, 0, 0.06);
}

.about-photo .photo-placeholder {
    height: 420px;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 16px;
}

.about-text h2 span { color: var(--primary-dark); }

.about-text p {
    color: var(--text-light);
    font-size: 1.02rem;
    margin-bottom: 14px;
    line-height: 1.8;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}

.stat-item {
    background: var(--primary-bg);
    padding: 22px 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-item:hover .stat-num,
.stat-item:hover .stat-label {
    color: #fff;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-dark);
    transition: color 0.3s ease;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 4px;
    transition: color 0.3s ease;
}

/* ===== SERVICES PAGE ===== */
.services-wrap {
    padding: 60px 0;
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    animation: shimmer 3s linear infinite;
}

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

.service-card:hover {
    transform: translateZ(30px) translateY(-10px) rotateX(2deg);
    box-shadow:
        0 20px 60px rgba(41, 182, 246, 0.15),
        0 0 0 1px rgba(41, 182, 246, 0.1);
    border-color: rgba(41, 182, 246, 0.2);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 18px;
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: #fff;
    transform: translateZ(40px) scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(41, 182, 246, 0.3);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 10px;
}

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

/* ===== CONTACT PAGE ===== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    padding: 60px 0;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    perspective: 600px;
}

.contact-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 12px 40px rgba(41, 182, 246, 0.12);
    transform: translateZ(20px) translateX(-6px) rotateY(-2deg);
}

.contact-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.contact-card .info h4 {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.contact-card .info a,
.contact-card .info span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-bright);
    direction: ltr;
    display: inline-block;
}

.contact-card .info a:hover {
    color: var(--primary-dark);
}

/* Form */
.form-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
}

.form-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    border-radius: var(--radius) var(--radius) 0 0;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.form-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 6px;
}

.form-box > p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.92rem;
    font-family: var(--font);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23636e72' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

.form-group select option {
    background: #fff;
    color: var(--text);
}

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

.submit-btn {
    width: 100%;
    justify-content: center;
    padding: 15px 30px;
    font-size: 1rem;
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(-5px);
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.active {
    display: block;
    animation: fadeUp 0.5s ease;
}

.form-success i {
    font-size: 3.5rem;
    color: #00b894;
    margin-bottom: 12px;
}

.form-success h3 {
    font-size: 1.4rem;
    color: var(--text-bright);
    margin-bottom: 6px;
}

.form-success p {
    color: var(--text-light);
}

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

/* ===== SECTION HEAD ===== */
.section-head {
    text-align: center;
    margin-bottom: 40px;
    transform-style: preserve-3d;
}

.section-head h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 8px;
    transform: translateZ(15px);
}

.section-head p {
    color: var(--text-light);
    font-size: 1rem;
    transform: translateZ(10px);
}

/* ===== CONSULTATION SECTION ===== */
.consult-section {
    padding: 60px 0 80px;
    background: var(--bg-alt);
}

.consult-box {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
    box-shadow: var(--shadow-lg);
    transform-style: preserve-3d;
    perspective: 800px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

.consult-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light), var(--primary));
    background-size: 300% 100%;
    animation: shimmer 4s linear infinite;
    border-radius: var(--radius) var(--radius) 0 0;
}

.consult-box:hover {
    transform: translateZ(20px) translateY(-6px) rotateX(1deg);
    box-shadow: 0 30px 80px rgba(41, 182, 246, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ===== CONTACT CTA ===== */
.contact-cta {
    background: var(--primary-bg);
    border-radius: var(--radius);
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.contact-cta h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-bright);
}

.contact-cta h3 span {
    color: var(--primary-dark);
}

/* ===== FOOTER ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: var(--bg);
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copy {
    color: var(--text-light);
    font-size: 0.88rem;
}

.footer-copy strong {
    font-size: 1.1rem;
    color: var(--primary-dark);
    animation: logoBounce 2.5s ease-in-out infinite;
    display: inline-block;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 1001;
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary-glow, rgba(41, 182, 246, 0.5));
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== GLASS CARD ===== */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== HERO ANIMATED BG ===== */
.home-hero {
    animation: heroShift 12s ease-in-out infinite alternate;
}

@keyframes heroShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* ===== TECH BACKGROUND ===== */
.bg-tech {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.15;
}

.bg-tech span {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary);
    animation: bgFloat 25s linear infinite;
    user-select: none;
}

@keyframes bgFloat {
    0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
    5% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ===== FLOATING BLOBS ===== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    pointer-events: none;
    animation: blobMove 15s ease-in-out infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    left: -80px;
    animation-delay: -5s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: var(--primary-light);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes blobMove {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(20px, 30px) scale(1.05); }
}

/* ===== BACK TO TOP ===== */
.back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(41, 182, 246, 0.3);
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(41, 182, 246, 0.5);
}

/* ===== SERVICE CARD 3D ===== */
.service-card {
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* ===== SHIMMER OVERLAY ===== */
.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 70%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.8s ease;
    pointer-events: none;
}

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

/* ===== PAGE HERO BLOBS ===== */
.page-hero .blob-1 {
    width: 300px;
    height: 300px;
    top: -80px;
    left: -80px;
}

.page-hero .blob-2 {
    width: 200px;
    height: 200px;
    bottom: -60px;
    right: -60px;
    left: auto;
}

/* ===== BADGE GLOW ===== */
.badge {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(41, 182, 246, 0.15);
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    margin: 0;
    border: none;
    opacity: 0.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-desc {
        margin: 0 auto 30px;
        max-width: 100%;
    }

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

    .hero-photo {
        width: 260px;
        height: 320px;
    }

    .hero-photo-wrap::before {
        width: 300px;
        height: 300px;
    }

    .about-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-photo {
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .badge-1 { right: 0; }
    .badge-2 { left: 0; }
    .badge-3 { right: -10px; }

    .badge-1 { --tw: translateY(0); right: -5px; }
    .badge-2 { --tw: translateY(0); left: -5px; }
    .badge-3 { --tw: translateY(0); right: -10px; }

    .page-hero h1 { font-size: 2.4rem; }

    .service-card { padding: 28px 20px; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 270px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        border-left: 1px solid var(--border);
        z-index: 999;
        box-shadow: -10px 0 50px rgba(0,0,0,0.06);
    }

    .nav.open { right: 0; }

    .nav a {
        font-size: 1.1rem;
        padding: 8px 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .home-hero { padding: 90px 0 50px; }

    .hero-grid h1 { font-size: 2rem; }

    .hero-sub { font-size: 1rem; }

    .hero-desc { font-size: 0.95rem; }

    .hero-photo { width: 220px; height: 280px; }

    .hero-photo-wrap::before { width: 260px; height: 260px; }

    .page-hero { padding: 110px 0 50px; }

    .page-hero h1 { font-size: 1.8rem; }

    .page-hero p { font-size: 0.95rem; }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
        gap: 16px;
    }

    .service-card { padding: 24px 18px; }

    .service-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 14px;
    }

    .service-card h3 { font-size: 1rem; }

    .service-card p { font-size: 0.88rem; }

    .about-wrap { padding: 40px 0; gap: 30px; }

    .about-text h2 { font-size: 1.5rem; }

    .about-text p { font-size: 0.92rem; }

    .contact-wrap { padding: 40px 0; gap: 24px; }

    .contact-card { padding: 16px 18px; }

    .form-row { grid-template-columns: 1fr; }

    .stats-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-item { padding: 14px 10px; }

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

    .stat-label { font-size: 0.78rem; }

    .consult-section { padding: 40px 0 60px; }

    .section-head h2 { font-size: 1.6rem; }

    .back-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }

    .footer { padding: 28px 0; margin-top: 20px; }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .bg-tech span { display: none; }
    .bg-tech span:nth-child(-n+10) { display: block; }

    .badge { font-size: 0.7rem; padding: 6px 12px; }
    .badge i { font-size: 0.85rem; }
    .badge-1 { top: 2%; right: -5px; }
    .badge-2 { bottom: 10%; left: -5px; }
    .badge-3 { top: 40%; right: -15px; }
}

@media (max-width: 480px) {
    .header-inner { height: 60px; }

    .logo { font-size: 1.6rem; }

    .home-hero { padding: 75px 0 40px; }

    .hero-grid { gap: 20px; }

    .hero-grid h1 { font-size: 1.6rem; }

    .hero-sub { font-size: 0.9rem; margin-bottom: 12px; }

    .hero-desc { font-size: 0.88rem; margin-bottom: 20px; }

    .hero-tag { font-size: 0.75rem; padding: 4px 14px; }

    .hero-photo { width: 180px; height: 230px; border-radius: 16px; }

    .hero-photo-wrap::before { width: 220px; height: 220px; }

    .btn { padding: 10px 20px; font-size: 0.85rem; gap: 6px; }

    .hero-actions { gap: 10px; }

    .badge { font-size: 0.6rem; padding: 4px 8px; border-radius: 8px; gap: 4px; }
    .badge i { font-size: 0.7rem; }
    .badge-1 { right: -2px; }
    .badge-2 { left: -2px; }
    .badge-3 { right: -8px; }

    .page-hero { padding: 90px 0 35px; }
    .page-hero h1 { font-size: 1.5rem; }
    .page-hero p { font-size: 0.85rem; }

    .service-card { padding: 20px 16px; }
    .service-icon { width: 42px; height: 42px; font-size: 1.1rem; margin-bottom: 12px; }
    .service-card h3 { font-size: 0.95rem; }
    .service-card p { font-size: 0.82rem; }

    .about-text h2 { font-size: 1.3rem; }
    .about-text p { font-size: 0.85rem; margin-bottom: 10px; }
    .about-photo { max-width: 250px; }
    .about-photo .photo-placeholder { height: 280px; }

    .stats-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .stat-item { padding: 10px 6px; }
    .stat-num { font-size: 1.2rem; }
    .stat-label { font-size: 0.7rem; }

    .consult-box { padding: 20px 14px; }
    .form-group { margin-bottom: 12px; }
    .form-group input,
    .form-group select,
    .form-group textarea { padding: 10px 12px; font-size: 0.85rem; }
    .form-group textarea { height: 90px; }
    .submit-btn { padding: 12px 20px; font-size: 0.9rem; }

    .contact-card { padding: 12px 14px; gap: 12px; }
    .contact-card .icon { width: 40px; height: 40px; font-size: 1.1rem; }

    .back-top { width: 38px; height: 38px; bottom: 16px; right: 16px; font-size: 0.9rem; }

    .section-head h2 { font-size: 1.4rem; }
    .section-head p { font-size: 0.85rem; }
    .section-head { margin-bottom: 24px; }

    .footer { padding: 20px 0; }
    .footer-copy { font-size: 0.78rem; }

    .services-wrap { padding: 35px 0; }
    .contact-wrap { padding: 30px 0; }
}
