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

:root {
    --primary-color: #00B4D8;
    --primary-dark: #006699;
    --secondary-color: #0088CC;
    --accent-color: #0088CC;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    --bg-primary: #00081A;
    --bg-secondary: #001025;
    --bg-tertiary: #001830;
    --bg-dark: #000000;
    --border-color: #0a2540;
    --border-light: #1a3550;
    --gradient-primary: linear-gradient(135deg, #00B4D8 0%, #0088CC 50%, #00CFE8 100%);
    --gradient-secondary: linear-gradient(135deg, #0088CC 0%, #006699 100%);
    --gradient-ai: linear-gradient(135deg, #0088CC 0%, #00081A 50%, #000000 100%);
    --gradient-dark: linear-gradient(135deg, #00081A 0%, #001025 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.6), 0 8px 10px -6px rgb(0 0 0 / 0.5);
    --shadow-purple: 0 5px 15px rgba(0, 136, 204, 0.2);
    --shadow-glow: 0 0 10px rgba(0, 136, 204, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Better touch targets */
    .btn-primary, .btn-secondary {
        min-height: 44px;
        min-width: 44px;
    }
    
    .social-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Disable animations on reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
        .shape, .orb, .brand-frame, .loader-title {
            animation: none;
        }
    }
}

/* Loading Screen */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.loader-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000000 0%, #00081A 50%, #001025 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    transform: translateX(0);
    transition: all 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
}

.loader-screen:hover {
    background: linear-gradient(135deg, #000000 0%, #00081A 100%);
}

.loader-screen:hover .scroll-text {
    color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.loader-screen:hover .scroll-arrow {
    color: var(--primary-color);
    transform: translateX(5px);
}

.loader-screen.slide-out {
    transform: translateX(100%);
}

.loader-screen.slide-in {
    transform: translateX(0);
}

/* Completely disable loader once content is shown */
.main-content.show ~ .loader-wrapper {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

/* Loader Content */
.loader-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.loader-logo {
    margin-bottom: 40px;
}

.logo-circle {
    width: 80px;
    height: 80px;
    border: 3px solid #0088CC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
    background: linear-gradient(135deg, #0088CC 0%, #006699 100%);
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.loader-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.loader-subtitle {
    font-size: 1.2rem;
    color: #9ca3af;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0;
}

/* Enhanced Pulse Animation */
.loader-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 3px solid transparent;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.6), rgba(0, 8, 26, 0.6));
    background-clip: padding-box;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: modernPulse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: blur(0.5px);
}

.pulse-ring::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.8), rgba(0, 8, 26, 0.8));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
}

.pulse-ring-delay-1 {
    animation-delay: 1s;
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.4), rgba(0, 8, 26, 0.4));
}

.pulse-ring-delay-1::before {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.6), rgba(0, 8, 26, 0.6));
}

.pulse-ring-delay-2 {
    animation-delay: 2s;
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), rgba(0, 8, 26, 0.2));
}

.pulse-ring-delay-2::before {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.4), rgba(0, 8, 26, 0.4));
}

/* Modern fade-in animations for sections */
.hero, .services, .about, .portfolio, .contact {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero {
    animation-delay: 0.2s;
}

.services {
    animation-delay: 0.4s;
}

.about {
    animation-delay: 0.6s;
}

.portfolio {
    animation-delay: 0.8s;
}

.contact {
    animation-delay: 1s;
}

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

@keyframes modernPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
        opacity: 1;
        filter: blur(0px);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
        opacity: 0.8;
        filter: blur(1px);
    }
    100% {
        transform: translate(-50%, -50%) scale(2.8) rotate(360deg);
        opacity: 0;
        filter: blur(2px);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    animation: fadeInOut 2s ease-in-out infinite;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: swipeRight 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

@keyframes swipeRight {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(15px);
    }
    60% {
        transform: translateX(8px);
    }
}

/* Dynamic Background Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glowPulse {
    0% { opacity: 0.4; filter: blur(12px); }
    50% { opacity: 0.8; filter: blur(18px); }
    100% { opacity: 0.4; filter: blur(12px); }
}

.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, rgba(0, 136, 204, 0.1), rgba(0, 8, 26, 0.1));
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 30%;
    animation-delay: 6s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    bottom: 20%;
    right: 40%;
    animation-delay: 8s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(15px) rotate(90deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-60px) translateX(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) translateX(-20px) rotate(270deg);
        opacity: 0.6;
    }
}

/* Gradient Orbs */
.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbMove 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.4) 0%, transparent 70%);
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.3) 0%, transparent 70%);
    bottom: 10%;
    right: -15%;
    animation-delay: 7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 8, 26, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

.orb-4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.3) 0%, transparent 70%);
    top: 20%;
    right: 10%;
    animation-delay: 5s;
}

.orb-5 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.25) 0%, transparent 70%);
    bottom: 30%;
    left: 15%;
    animation-delay: 10s;
}

@keyframes orbMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 40px) scale(0.9);
    }
    75% {
        transform: translate(30px, 20px) scale(1.05);
    }
}

/* Aura Particles */
.aura-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
    animation: particleFloat 8s linear infinite;
}

.particle-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle-2 {
    top: 70%;
    left: 80%;
    animation-delay: 2s;
    animation-duration: 15s;
}

.particle-3 {
    top: 30%;
    left: 60%;
    animation-delay: 4s;
    animation-duration: 10s;
}

.particle-4 {
    top: 80%;
    left: 30%;
    animation-delay: 6s;
    animation-duration: 14s;
}

.particle-5 {
    top: 40%;
    left: 10%;
    animation-delay: 8s;
    animation-duration: 11s;
}

.particle-6 {
    top: 60%;
    left: 90%;
    animation-delay: 10s;
    animation-duration: 13s;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        transform: translateY(-10px) translateX(5px) scale(1);
        opacity: 1;
    }
    90% {
        transform: translateY(-100px) translateX(-20px) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-120px) translateX(-30px) scale(0);
        opacity: 0;
    }
}

/* Enhanced Brand Frame */
.brand-frame {
    position: relative;
    padding: 40px 60px;
    margin: 20px 0;
}

.frame-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    background: var(--gradient-ai);
    background-size: 400% 400%;
    animation: borderGlow 6s ease-in-out infinite;
    z-index: 1;
    box-shadow: var(--shadow-purple);
}

.frame-border::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 8, 26, 0.95));
    border-radius: 18px;
    z-index: 2;
}

.brand-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.loader-title {
    background: linear-gradient(45deg, #ffffff, #e5e7eb, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    text-shadow: none;
    margin-bottom: 10px;
}

.glow-text {
    color: #9ca3af;
}

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

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

@keyframes textGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Landing Page Mobile */
    .loader-title {
        font-size: 2.5rem;
    }
    
    .logo-circle {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .loader-subtitle {
        font-size: 1rem;
    }
    
    .pulse-ring {
        width: 80px;
        height: 80px;
    }
    
    /* Brand Frame Mobile */
    .brand-frame {
        padding: 30px 40px;
        margin: 15px 0;
    }
    
    /* Background Animations Mobile - Reduce for performance */
    .shape {
        display: none;
    }
    
    .orb {
        filter: blur(20px);
    }
    
    .orb-1, .orb-2 {
        width: 200px;
        height: 200px;
    }
    
    .orb-3 {
        width: 150px;
        height: 150px;
    }
    
    /* Touch-friendly scroll indicator */
    .scroll-indicator {
        bottom: 30px;
    }
    
    .scroll-text {
        font-size: 0.8rem;
    }
}

/* Content initially hidden behind black screen */
.main-content {
    opacity: 0;
    transition: opacity 0.8s ease 0.5s;
}

.main-content.show {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: 1em;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--gradient-primary);
    color: white !important;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.4), 0 4px 10px rgba(0, 207, 232, 0.3);
    color: white !important;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: var(--shadow-lg);
    }
    50% {
        box-shadow: var(--shadow-xl);
    }
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 14px 28px;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 180, 216, 0.35), 0 4px 10px rgba(0, 207, 232, 0.25);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 136, 204, 0.2);
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(0, 8, 26, 0.1);
    border-bottom: 1px solid rgba(0, 136, 204, 0.4);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

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

.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.loader-logo-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(0, 136, 204, 0.5);
    border: 3px solid rgba(0, 136, 204, 0.5);
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 10px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Override for primary button in navigation */
.navbar .nav-links a.btn-primary {
    color: white !important;
    background: var(--gradient-primary) !important;
}

.navbar .nav-links a.btn-primary:hover {
    color: white !important;
    background: var(--gradient-primary) !important;
}

.navbar .nav-links a.btn-primary:visited {
    color: white !important;
}

.navbar .nav-links a.btn-primary:active {
    color: white !important;
}

.navbar .nav-links a.btn-primary:link {
    color: white !important;
}

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(0, 136, 204, 0.03) 0%, transparent 50%),
        linear-gradient(225deg, rgba(0, 136, 204, 0.05) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%230088CC" stroke-width="0.3" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 136, 204, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Animated circuit lines */
.hero .hero-bg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero .hero-bg-lines::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 136, 204, 0.4), transparent);
    animation: scanLine 8s linear infinite;
}

.hero .hero-bg-lines::after {
    content: '';
    position: absolute;
    top: 70%;
    left: -10%;
    width: 120%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 136, 204, 0.3), transparent);
    animation: scanLine 12s linear infinite reverse;
}

@keyframes scanLine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Floating particles in hero */
.hero .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero .hero-particles::before,
.hero .hero-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 136, 204, 0.6);
    border-radius: 50%;
    animation: floatParticle 15s linear infinite;
}

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

.hero .hero-particles::after {
    top: 60%;
    right: 25%;
    animation-delay: 5s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0;
    }
}

/* Hexagon grid overlay */
.hero .hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="52"><polygon points="30,1 57,15 57,37 30,51 3,37 3,15" fill="none" stroke="%230088CC" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 60px 52px;
    opacity: 0.5;
    pointer-events: none;
}

/* Corner tech decorations */
.hero .hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -100px;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(0, 136, 204, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

.hero .hero-content::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -120px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(0, 136, 204, 0.15);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.hero-title {
    margin-bottom: 30px;
    color: var(--text-primary);
}

@keyframes titleAura {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.95;
    }
}

.highlight {
    background: linear-gradient(135deg, #0088CC 0%, #00AAEE 25%, #0066AA 50%, #0088CC 75%, #00AAEE 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
    position: relative;
}

.highlight::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #0088CC 0%, #00AAEE 25%, #0066AA 50%, #0088CC 75%, #00AAEE 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(12px);
    opacity: 0.5;
    animation: gradientShift 6s ease-in-out infinite, glowPulse 4s ease-in-out infinite;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Vision & Mission Section */
.vision-mission {
    padding: 100px 0;
    background: var(--bg-primary);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.vision h2, .mission h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mission ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.mission li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-secondary);
}

.mission li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

@keyframes underlineGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Values Section */
.values {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.value-item {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.value-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Why Choose Section */
.why-choose {
    padding: 100px 0;
    background: var(--bg-primary);
}

.features-list {
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.feature-item:hover {
    background: var(--bg-secondary);
}

.feature-icon {
    background: var(--gradient-primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-item p {
    margin: 0;
    font-size: 1.1rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 136, 204, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 136, 204, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 8, 26, 0.03) 0%, transparent 50%);
    animation: atmosphericMove 20s linear infinite;
    z-index: 1;
}

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

@keyframes atmosphericMove {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Pricing Sections */
.pricing, .seo-pricing {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.pricing::before, .seo-pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at top left, rgba(0, 136, 204, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 136, 204, 0.06) 0%, transparent 50%);
    z-index: 1;
}

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

.seo-pricing {
    background: var(--bg-secondary);
}

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

.pricing-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 22px;
    right: -52px;
    width: 180px;
    text-align: center;
    background: var(--gradient-primary);
    color: white;
    padding: 6px 0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transform: rotate(45deg);
    transform-origin: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    z-index: 3;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-badge {
    display: inline-block;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Basic tier - Green */
.pricing-card.basic .pricing-badge {
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Professional tier - Blue */
.pricing-card.professional .pricing-badge {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

/* Premium/Enterprise tier - Red */
.pricing-card.premium .pricing-badge {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.pricing-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.timeline {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    position: relative;
    padding-left: 25px;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.pricing-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* SEO Pricing Card Colors */
.seo-pricing .pricing-card {
    background: var(--bg-secondary);
}

.seo-starter .pricing-badge {
    background: linear-gradient(135deg, #10b981, #059669);
}

.seo-growth .pricing-badge {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.seo-advanced .pricing-badge {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-item h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* Blog Section */
.blog {
    padding: 100px 0;
    background: var(--bg-primary);
}

.blog-intro {
    text-align: center;
    max-width: 700px;
    margin: -20px auto 50px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.blog-card-image {
    position: relative;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-ai);
}

.blog-emoji {
    font-size: 3.5rem;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-emoji {
    transform: scale(1.1);
}

.blog-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 180, 216, 0.4);
}

.blog-card-content {
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.blog-card-content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-content p {
    color: var(--text-secondary);
    margin: 0 0 20px;
    flex: 1;
}

.blog-readmore {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: gap 0.3s ease, opacity 0.3s ease;
}

.blog-readmore:hover {
    opacity: 0.8;
}

/* Make the entire card a clickable link via the Read More anchor */
.blog-readmore::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Single Blog Post / Article */
.article {
    padding: 70px 0 90px;
    background: var(--bg-primary);
}

.article .container {
    max-width: 780px;
}

.article-back {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.article-back:hover {
    color: var(--primary-color);
}

.article-body {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin: 40px 0 16px;
}

.article-body h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 30px 0 12px;
}

.article-body p {
    margin-bottom: 22px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 22px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body strong {
    color: var(--text-primary);
}

.article-body a {
    color: var(--primary-color);
}

.article-body blockquote {
    margin: 30px 0;
    padding: 18px 26px;
    border-left: 4px solid var(--primary-color);
    background: var(--bg-secondary);
    border-radius: 0 12px 12px 0;
    color: var(--text-primary);
    font-style: italic;
}

.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: var(--bg-primary);
}

.portfolio-placeholder {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 2px dashed var(--border-color);
}

.portfolio-placeholder p {
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Portfolio / Project showcase */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    max-width: 1040px;
    margin: 0 auto;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

/* Browser mockup */
.browser-mock {
    background: var(--bg-tertiary);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 7px;
    flex-shrink: 0;
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.browser-dots .dot-red { background: #ff5f57; }
.browser-dots .dot-amber { background: #febc2e; }
.browser-dots .dot-green { background: #28c840; }

.browser-url {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 0.85rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-shot {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top center;
    background: #0a1426;
    border: 0;
}

.project-body {
    padding: 36px 38px 40px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.project-tag {
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.3);
}

.project-body h3 {
    color: var(--text-primary);
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.project-body > p {
    color: var(--text-secondary);
    margin-bottom: 26px;
    max-width: 760px;
}

.project-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.project-split h4 {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.project-split ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-split li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 9px;
    color: var(--text-secondary);
}

.project-split li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.project-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .project-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .project-body {
        padding: 28px 22px 32px;
    }
    .browser-shot {
        height: 240px;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

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

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-item a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    margin-bottom: 6px;
}

.contact-item a:hover {
    color: var(--primary-color);
}

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

.social-link {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.social-link:hover svg {
    color: white;
    fill: white;
}

/* Contact Form */
.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 70px 0 28px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer-brand p {
    color: #9ca3af;
    margin-top: 14px;
    max-width: 320px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: #cbd5e1;
    transition: all 0.3s ease;
}

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

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-nav,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li,
.footer-contact li {
    margin-bottom: 11px;
}

.footer-nav a,
.footer-contact a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

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

.footer-contact a {
    line-height: 1.5;
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

/* Main Content Responsive Design */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .navbar {
        padding: 12px 0;
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .nav-links {
        display: none;
    }
    
    /* Add mobile menu button */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--text-primary);
        cursor: pointer;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 120px 0 80px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    /* Grid Layouts Mobile */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .values-grid,
    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Service Items Mobile */
    .service-item {
        padding: 30px 20px;
    }
    
    .value-item {
        padding: 30px 20px;
    }
    
    /* Contact Form Mobile */
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Social Links Mobile */
    .social-links {
        justify-content: center;
        gap: 15px;
    }
    
    .social-link {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 36px 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    /* Typography Mobile */
    .section-title {
        font-size: 2rem;
        padding: 0 20px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Landing Page Small Mobile */
    .loader-title {
        font-size: 2rem;
    }
    
    .brand-frame {
        padding: 20px 30px;
        margin: 10px 0;
    }
    
    .loader-subtitle {
        font-size: 0.9rem;
    }
    
    /* Main Content Small Mobile */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
        padding: 0 10px;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .service-item,
    .value-item {
        padding: 25px 15px;
    }
    
    .feature-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    /* Section Spacing Small Mobile */
    .values,
    .services,
    .vision-mission,
    .why-choose,
    .portfolio,
    .contact {
        padding: 50px 0;
    }
    
    .values-grid,
    .services-grid {
        gap: 15px;
    }
    
    /* Social Links Small Mobile */
    .social-link {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    /* Background animations - Further reduce for performance */
    .orb-1, .orb-2, .orb-3 {
        display: none;
    }
    
    .bg-animation {
        display: none;
    }
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 8, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-xl);
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-links.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
        color: var(--text-secondary);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
        margin-top: 10px;
    }
    
    .nav-links a.btn-primary {
        margin: 10px 0 0 0;
        padding: 14px 28px;
        border-radius: 50px;
        border-bottom: none;
    }
}

/* FINAL OVERRIDE - Force white text on navigation button */
nav .nav-links a.btn-primary,
.navbar .nav-links a.btn-primary,
header .nav-links a.btn-primary,
a.btn-primary {
    color: #ffffff !important;
    background: var(--gradient-primary) !important;
    -webkit-text-fill-color: #ffffff !important;
}

nav .nav-links a.btn-primary:hover,
.navbar .nav-links a.btn-primary:hover,
header .nav-links a.btn-primary:hover,
a.btn-primary:hover {
    color: #ffffff !important;
    background: var(--gradient-primary) !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Ultra specific override for all states */
body nav .nav-links a.btn-primary,
body .navbar .nav-links a.btn-primary,
body header .nav-links a.btn-primary {
    color: #ffffff !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #ffffff !important;
    background: var(--gradient-primary) !important;
}

body nav .nav-links a.btn-primary:hover,
body .navbar .nav-links a.btn-primary:hover,
body header .nav-links a.btn-primary:hover {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Force transparent navbar - highest specificity */
html body .navbar,
html body .navbar.scrolled,
html body nav.navbar,
html body header.navbar {
    background: transparent !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0, 136, 204, 0.2) !important;
}

/* ============================================================
   ✦ NEXT-LEVEL UI ENHANCEMENTS
   Modern polish layer — glassmorphism, glow, gradient text,
   and micro-interactions. Appended last so it refines the
   base styles above without altering existing structure.
   ============================================================ */

/* --- Extended design tokens (also fills previously-undefined vars
       referenced by the custom cursor) --- */
:root {
    --bg-glass: rgba(0, 180, 216, 0.06);
    --bg-glass-hover: rgba(0, 180, 216, 0.12);
    --border-glass: rgba(0, 180, 216, 0.25);
    --timing-fast: 0.25s;
    --timing-base: 0.4s;
    --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --easing-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --glow-cyan: 0 0 24px rgba(0, 180, 216, 0.35);
}

/* --- Text selection + custom scrollbar --- */
::selection {
    background: rgba(0, 180, 216, 0.35);
    color: #fff;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* --- Subtle depth glows layered onto plainer sections --- */
.values {
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(0, 180, 216, 0.06), transparent 70%),
        var(--bg-secondary);
}
.why-choose {
    background:
        radial-gradient(70% 50% at 80% 20%, rgba(0, 180, 216, 0.05), transparent 70%),
        var(--bg-primary);
}
.contact {
    background:
        radial-gradient(80% 60% at 20% 100%, rgba(0, 136, 204, 0.06), transparent 70%),
        var(--bg-secondary);
}

/* --- Hero eyebrow badge --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    margin-bottom: 28px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-cyan);
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.65); }
}
/* Keep the badge in the hero's staggered reveal */
.main-content.show .hero-badge {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* --- Buttons: shine sweep + deeper glow --- */
.btn-primary, .btn-secondary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--easing-smooth);
    z-index: 1;
    pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(0, 180, 216, 0.45), var(--glow-cyan);
}

/* --- Section titles: gradient text --- */
.section-title {
    background: linear-gradient(135deg, #ffffff 0%, #9fe6ff 55%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Card system: glassmorphism, gradient edge, hover lift --- */
.service-item,
.value-item,
.pricing-card,
.contact-form {
    background: linear-gradient(160deg, rgba(0, 16, 37, 0.9), rgba(0, 8, 26, 0.7));
    backdrop-filter: blur(12px);
    position: relative;
}

.service-item,
.value-item {
    overflow: hidden;
}

/* animated top accent line on hover */
.service-item::before,
.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--timing-base) var(--easing-smooth);
}
.service-item:hover::before,
.value-item:hover::before { transform: scaleX(1); }

.service-item:hover,
.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 180, 216, 0.15);
}

/* --- Service icons become glowing glass tiles --- */
.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    box-shadow: inset 0 0 20px rgba(0, 180, 216, 0.1);
    transition: all var(--timing-base) var(--easing-spring);
}
.service-item:hover .service-icon {
    transform: translateY(-4px) scale(1.08) rotate(-4deg);
    box-shadow: var(--glow-cyan), inset 0 0 20px rgba(0, 180, 216, 0.2);
}

/* --- Feature icons: larger, softer tiles + row hover --- */
.feature-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}
.feature-item {
    border: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.feature-item:hover {
    border-color: var(--border-glass);
    transform: translateX(6px);
}

/* --- Pricing: gradient edge, gradient price, featured glow --- */
.pricing-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(160deg, var(--border-glass), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.pricing-card.featured {
    box-shadow: var(--shadow-xl), 0 0 45px rgba(0, 180, 216, 0.22);
}
.price {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- About columns become cards --- */
.vision,
.mission {
    background: linear-gradient(160deg, rgba(0, 16, 37, 0.6), rgba(0, 8, 26, 0.4));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: border-color var(--timing-base) ease, box-shadow var(--timing-base) ease, transform var(--timing-base) ease;
}
.vision:hover,
.mission:hover {
    border-color: var(--border-glass);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

/* --- Form focus glow --- */
.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
    background: rgba(0, 16, 37, 0.95);
}

/* --- Animated nav-link underline + logo flourish --- */
.nav-links a:not(.btn-primary) {
    position: relative;
}
.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--easing-smooth);
}
.nav-links a:not(.btn-primary):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
.logo {
    box-shadow: 0 0 14px rgba(0, 180, 216, 0.3);
    transition: transform 0.3s var(--easing-spring);
}
.nav-brand:hover .logo {
    transform: rotate(-6deg) scale(1.05);
}

/* --- Footer top gradient hairline --- */
.footer {
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* --- Respect reduced-motion preferences --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- Multi-page support --- */

/* Brand acts as a home link */
.nav-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

/* Active nav link */
.nav-links a:not(.btn-primary).active {
    color: var(--primary-color);
}
.nav-links a:not(.btn-primary).active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Inner-page hero header */
.page-hero {
    position: relative;
    padding: 180px 0 80px;
    text-align: center;
    background: var(--gradient-dark);
    overflow: hidden;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 180, 216, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(0, 136, 204, 0.08) 0%, transparent 45%);
    z-index: 1;
}

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

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.page-hero p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.15rem;
}

/* Breadcrumb-style small CTA band reused on inner pages */
.cta-band {
    padding: 80px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.cta-band h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.cta-band p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 28px;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 140px 0 60px;
    }
}

/* ============================================================
   MOTION PACK — animated backgrounds, hero FX, hover motion
   ============================================================ */

/* ---------- 1. Animated hero aurora + particles ---------- */
.hero .hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(38% 48% at 20% 30%, rgba(0, 180, 216, 0.20), transparent 60%),
        radial-gradient(34% 44% at 80% 25%, rgba(0, 136, 204, 0.18), transparent 60%),
        radial-gradient(44% 54% at 62% 82%, rgba(0, 90, 170, 0.18), transparent 62%);
    filter: blur(34px);
    animation: auroraDrift 18s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(3%, -2.5%, 0) scale(1.14); }
    100% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}

/* JS-generated floating particles */
.hero .hero-particles span {
    position: absolute;
    bottom: -12px;
    border-radius: 50%;
    background: rgba(0, 180, 216, 0.8);
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.8);
    animation-name: particleRise;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes particleRise {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    8%   { opacity: 1; }
    88%  { opacity: 0.7; }
    100% { transform: translateY(-92vh) scale(0.35); opacity: 0; }
}

/* keep the hero grid drifting subtly */
.hero .hero-grid-overlay {
    animation: gridDrift 36s linear infinite;
}
@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 240px 208px; }
}

/* ---------- 2. Drifting gradient blobs behind sections ---------- */
.vision-mission,
.values,
.why-choose,
.blog,
.portfolio,
.cta-band,
.contact {
    position: relative;
    overflow: hidden;
}

.vision-mission::before,
.values::before,
.why-choose::before,
.blog::before,
.portfolio::before,
.cta-band::before,
.contact::before,
.vision-mission::after,
.values::after,
.why-choose::after,
.blog::after,
.portfolio::after,
.cta-band::after,
.contact::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 680px;
    max-height: 680px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(20px);
}

.vision-mission::before,
.values::before,
.why-choose::before,
.blog::before,
.portfolio::before,
.cta-band::before,
.contact::before {
    top: -18%;
    left: -14%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.10), transparent 62%);
    animation: blobFloat 24s ease-in-out infinite alternate;
}

.vision-mission::after,
.values::after,
.why-choose::after,
.blog::after,
.portfolio::after,
.cta-band::after,
.contact::after {
    bottom: -22%;
    right: -16%;
    background: radial-gradient(circle, rgba(0, 110, 190, 0.10), transparent 62%);
    animation: blobFloat 30s ease-in-out infinite alternate-reverse;
}

@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(7%, 5%) scale(1.18); }
    100% { transform: translate(-6%, -4%) scale(1.05); }
}

/* keep section content above the animated blobs */
.vision-mission > .container,
.values > .container,
.why-choose > .container,
.blog > .container,
.portfolio > .container,
.cta-band > .container,
.contact > .container {
    position: relative;
    z-index: 1;
}

/* ---------- 3. Hover micro-interactions ---------- */
.service-item,
.pricing-card,
.project-card,
.value-item {
    transform-style: preserve-3d;
    will-change: transform;
}

/* animated icons on hover */
.service-item .service-icon {
    transition: transform 0.4s var(--easing-spring);
}
.service-item:hover .service-icon {
    transform: scale(1.18) rotate(-8deg);
}
.value-item h3 {
    transition: color 0.3s ease;
}
.value-item:hover h3 {
    color: var(--primary-color);
}

/* ---------- Mobile: trim decorative blobs for performance ---------- */
@media (max-width: 768px) {
    .vision-mission::after,
    .values::after,
    .why-choose::after,
    .blog::after,
    .portfolio::after,
    .cta-band::after,
    .contact::after {
        display: none;
    }
    .vision-mission::before,
    .values::before,
    .why-choose::before,
    .blog::before,
    .portfolio::before,
    .cta-band::before,
    .contact::before {
        filter: blur(12px);
        opacity: 0.7;
    }
    .hero .hero-aurora { filter: blur(26px); }
}

/* ---------- Reduced motion: freeze decorative animation ---------- */
@media (prefers-reduced-motion: reduce) {
    .hero .hero-aurora,
    .hero .hero-grid-overlay,
    .hero .hero-particles span,
    .vision-mission::before, .vision-mission::after,
    .values::before, .values::after,
    .why-choose::before, .why-choose::after,
    .blog::before, .blog::after,
    .portfolio::before, .portfolio::after,
    .cta-band::before, .cta-band::after,
    .contact::before, .contact::after {
        animation: none !important;
    }
}