/* Ultra-Luxury Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0078d4;
    --secondary-blue: #004e8c;
    --accent-cyan: #008b8b;
    --dark-cyan: #006666;
    --glass-bg: rgba(0, 30, 60, 0.15);
    --glass-border: rgba(0, 120, 212, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #a1e6ff;
    --text-tertiary: #c7f0ff;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #000814;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    font-weight: 400;
    letter-spacing: -0.02em;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Background image overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background-overlay.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.65;
    z-index: -4;
    mix-blend-mode: overlay;
    will-change: transform;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 600;
}

/* Ultra-Premium Animated Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 120, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 139, 139, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 78, 140, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #000814 0%, #001a2e 25%, #002a4a 50%, #001a2e 75%, #000814 100%);
    z-index: -3;
    animation: backgroundShift 20s ease-in-out infinite;
    will-change: filter, transform;
}

@keyframes backgroundShift {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(1);
        transform: scale(1);
    }
    25% { 
        filter: hue-rotate(5deg) brightness(1.1);
        transform: scale(1.02);
    }
    50% { 
        filter: hue-rotate(10deg) brightness(0.95);
        transform: scale(1.01);
    }
    75% { 
        filter: hue-rotate(15deg) brightness(1.05);
        transform: scale(1.03);
    }
}

/* Floating Particles Background */
.particles {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(0, 120, 212, 0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 139, 139, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(161, 230, 255, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(0, 120, 212, 0.3), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(0, 139, 139, 0.2), transparent);
    background-repeat: repeat;
    background-size: 200px 150px;
    z-index: -2;
    animation: particleFloat 25s linear infinite;
    opacity: 0.6;
    will-change: transform;
}

@keyframes particleFloat {
    0% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-100px) translateX(50px); }
    50% { transform: translateY(-200px) translateX(-30px); }
    75% { transform: translateY(-150px) translateX(80px); }
    100% { transform: translateY(0) translateX(0); }
}

/* Mesh Gradient Overlay */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        conic-gradient(from 0deg at 50% 50%, 
            rgba(0, 120, 212, 0.1) 0deg,
            rgba(0, 139, 139, 0.08) 60deg,
            rgba(0, 78, 140, 0.12) 120deg,
            rgba(0, 102, 102, 0.09) 180deg,
            rgba(0, 120, 212, 0.11) 240deg,
            rgba(0, 139, 139, 0.07) 300deg,
            rgba(0, 120, 212, 0.1) 360deg);
    z-index: -1;
    animation: meshRotate 30s linear infinite;
    mix-blend-mode: overlay;
    will-change: transform;
}

@keyframes meshRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Updated Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    height: 60px;
    position: fixed;
    width: 100%;
    top: 0;
    background: transparent;
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: none;
    will-change: transform, background, padding, height;
}

header.scrolled {
    background: rgba(0, 8, 20, 0.95);
    padding: 8px 30px;
    height: 50px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 120, 212, 0.15);
}

.header-logo {
    height: 25px;
    transition: transform 0.3s ease;
}

header.scrolled .header-logo {
    height: 25px;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #a1e6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoGlow 4s ease-in-out infinite alternate;
}

.logo-text {
    font-family: 'Lora', serif;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #a1e6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(0, 120, 212, 0.5);
    animation: logoGlow 4s ease-in-out infinite alternate;
    letter-spacing: -0.5px;
}

@keyframes logoGlow {
    0% { 
        filter: drop-shadow(0 0 10px rgba(0, 120, 212, 0.3));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 0 20px rgba(0, 120, 212, 0.6));
        transform: scale(1.02);
    }
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 25px;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: -0.01em;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 6px 12px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.1), rgba(0, 139, 139, 0.1));
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(0.8);
    border-radius: 25px;
}

nav ul li a:hover::before {
    opacity: 1;
    transform: scale(1);
}

nav ul li a:hover {
    color: var(--text-secondary);
    transform: translateY(-2px);
}

/* Premium CTA Button */
.cta-button {
    background: linear-gradient(135deg, #0078d4 0%, #00b4b4 100%);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 8px 25px rgba(0, 120, 212, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(0);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(0, 120, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #00b4b4 0%, #0078d4 100%);
}

/* Ultra-Luxury Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 60px 60px;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img, 
.portfolio-item img, 
.expertise-icon, 
.service-icon {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
}

.header-logo {
    max-height: 30px; /* Makes logo smaller */
    width: auto;
}

.portfolio-item img {
    height: 300px; /* Fixed height for portfolio images */
    object-fit: cover;
}

.hero h1, .hero h2 {
    font-size: clamp(2.5rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0.05em 0;
    letter-spacing: -0.05em;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    margin: 1em 0 2em;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.5px;
    opacity: 0.9;
    max-width: 700px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 3em;
    margin-bottom: 2em;
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 20px rgba(0, 120, 212, 0.3));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 30px rgba(0, 120, 212, 0.5));
    }
}

.hero h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, #0078d4, #00b4b4, #0078d4);
    margin: 1em 0;
    border-radius: 3px;
    animation: lineGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(0, 120, 212, 0.5);
}

@keyframes lineGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 120, 212, 0.5);
        transform: scaleX(1);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 120, 212, 0.8);
        transform: scaleX(1.1);
    }
}

/* New Work With Us Button */
.work-with-us-button {
    display: inline-block;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 120, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 120, 212, 0.4);
    font-family: 'Poppins', sans-serif;
    transform: translateZ(0);
}

.work-with-us-button:hover {
    background: rgba(0, 120, 212, 0.2);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 120, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 120, 212, 0.6);
}

/* Premium View Work Button */
.view-work {
    display: inline-block;
    padding: 16px 40px;
    border: 2px solid rgba(0, 120, 212, 0.4);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 50px;
    background: rgba(0, 120, 212, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 120, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    font-family: 'Poppins', sans-serif;
    transform: translateZ(0);
}

.view-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.view-work:hover::before {
    left: 100%;
}

.view-work:hover {
    background: rgba(0, 120, 212, 0.2);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 120, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 120, 212, 0.6);
}

/* Ultra-Premium Glass Sections */
.glass-section {
    background: rgba(0, 8, 20, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 120, 212, 0.15);
    border-radius: 32px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

.glass-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 120, 212, 0.5), transparent);
}

/* Expertise Section */
.expertise {
    padding: 120px 60px;
    margin: 60px;
    animation: sectionSlideUp 1s ease-out;
}

@keyframes sectionSlideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Updated Expertise Grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    perspective: 1000px;
}

.expertise-item {
    margin-bottom: 80px;
    padding: 50px 40px;
    background: rgba(0, 30, 60, 0.2);
    border-radius: 24px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border-left: 4px solid transparent;
    border-image: linear-gradient(135deg, #0078d4, #00b4b4) 1;
    position: relative;
    overflow: hidden;
    text-align: center;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.expertise-item * {
    position: relative;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 10px rgba(0, 120, 212, 0.3));
    transition: all 0.6s ease;
}

.expertise-item:hover .expertise-icon {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 120, 212, 0.5));
}

.expertise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.05), rgba(0, 139, 139, 0.05));
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(0.9);
    border-radius: 24px;
    z-index: 1;
}

.expertise-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 120, 212, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}

.expertise-item, 
.service, 
.portfolio-item {
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 120, 212, 0.1);
}

/* Glow shadow on hover */
.expertise-item:hover::after, 
.service:hover::after, 
.portfolio-item:hover::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 5%;
    width: 90%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,120,212,0.15) 0%, transparent 70%);
    filter: blur(10px);
    z-index: -1;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Hidden by default */
.expertise-item::after, 
.service::after, 
.portfolio-item::after {
    opacity: 0;
}

.expertise-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.expertise-item:hover::after {
    opacity: 0.8;
    bottom: -20px;
}

.expertise-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(0, 30, 60, 0.4);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 120, 212, 0.2);
    border-left: 4px solid #0078d4;
}

.expertise-item:hover * {
    transform: translateY(-3px);
}

.expertise-item h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.expertise-item p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-tertiary);
    line-height: 1.7;
    font-weight: 400;
}

/* Pricing Plans */
.pricing-plans {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.plan {
    flex: 1;
    padding: 20px;
    background: rgba(0, 30, 60, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 120, 212, 0.2);
}

.plan.premium {
    border: 1px solid var(--accent-cyan);
    background: rgba(0, 139, 139, 0.1);
}

.plan h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.plan .price {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.plan ul {
    text-align: left;
    padding-left: 20px;
}

.plan li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Elevate Section with Advanced Grid */
.elevate {
    padding: 100px 60px;
    margin: 60px;
    text-align: center;
}

.elevate h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.elevate h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    margin: 20px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service {
    padding: 40px 30px;
    background: rgba(0, 30, 60, 0.25);
    border-radius: 16px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0, 120, 212, 0.1);
    position: relative;
    overflow: hidden;
    text-align: center;
    backdrop-filter: blur(10px);
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.05), rgba(0, 139, 139, 0.05));
    opacity: 0;
    transition: all 0.5s ease;
    z-index: -1;
}

.service:hover::before {
    opacity: 1;
    z-index: -1; /* Keep consistent */
}

.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(0, 120, 212, 0.3));
    transition: all 0.5s ease;
}

.service:hover .service-icon {
    transform: translateY(-5px) scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 120, 212, 0.5));
}

.service h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.5px;
}

.service p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-tertiary);
    font-weight: 300;
}

/* Glow effect on hover */
.service:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* More Work Section */
.more-work {
    padding: 120px 60px;
    text-align: center;
    margin: 60px;
    position: relative;
}

.more-work::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulseGlow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.more-work p {
    font-size: 1.5rem;
    color: var(--text-tertiary);
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Elevate Story Section */
.elevate-story {
    padding: 120px 60px;
    text-align: center;
    margin: 60px;
    position: relative;
}

.elevate-story p {
    font-size: 1.4rem;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-tertiary);
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: -0.01em;
}

/* Ultra-Premium Discover Button */
.discover-button {
    display: inline-block;
    margin-top: 60px;
    padding: 22px 55px;
    background: linear-gradient(135deg, #0078d4 0%, #00b4b4 100%);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 2px;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 50px;
    box-shadow: 
        0 15px 40px rgba(0, 120, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    font-family: 'Poppins', sans-serif;
    transform: translateZ(0);
}

.discover-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.discover-button:hover::before {
    left: 100%;
}

.discover-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00b4b4 0%, #0078d4 100%);
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
    border-radius: 50px;
}

.discover-button:hover::after {
    opacity: 1;
}

.discover-button:hover {
    transform: translateY(-8px) scale(1.08) rotateX(10deg);
    box-shadow: 
        0 25px 60px rgba(0, 120, 212, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.explore-services-btn {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.2), rgba(0, 139, 139, 0.2));
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 120, 212, 0.4);
    transform: translateZ(0);
}

.explore-services-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 120, 212, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.3), rgba(0, 139, 139, 0.3));
}

/* Ultra-Premium Footer */
footer {
    padding: 80px 60px;
    background: rgba(0, 8, 20, 0.8);
    backdrop-filter: blur(20px);
    text-align: center;
    border-top: 1px solid rgba(0, 120, 212, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-logo {
    width: 120px;
    margin-bottom: 30px;
    opacity: 0.9;
    transition: all 0.5s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0078d4, #00b4b4, #0078d4, transparent);
    animation: footerGlow 3s ease-in-out infinite;
}

@keyframes footerGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(1);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.1);
    }
}

footer h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 700;
    background: linear-gradient(135deg, #a1e6ff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

footer p {
    margin-bottom: 15px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-tertiary);
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 300;
}

.copyright {
    margin-top: 50px;
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.8;
    font-weight: 400;
}

/* Advanced Ripple Effect */
.ripple {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

@keyframes rippleEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(6);
        opacity: 0;
    }
}

/* Advanced Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }
.stagger-delay-5 { transition-delay: 0.5s; }
.stagger-delay-6 { transition-delay: 0.6s; }

/* Luxury Loading Animation */
.luxury-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000814;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.luxury-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #a1e6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoLoad 2s ease-in-out infinite;
}

.loader-bar {
    width: 300px;
    height: 4px;
    background: rgba(0, 120, 212, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, #0078d4, #00b4b4, #0078d4);
    border-radius: 2px;
    animation: loadProgress 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(0, 120, 212, 0.5);
}

@keyframes logoLoad {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(0, 120, 212, 0.3)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(0, 120, 212, 0.6)); }
}

@keyframes loadProgress {
    0% { width: 0%; transform: translateX(-100%); }
    50% { width: 100%; transform: translateX(0%); }
    100% { width: 100%; transform: translateX(100%); }
              }
}

/* Remove custom cursor */
.custom-cursor {
    display: none !important;
}

/* Magnetic Effect for Interactive Elements */
.magnetic { /* Line ~1200 */
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.32, 1);
    will-change: transform;
}

.magnetic:hover { /* Line ~1205 */
    transform: scale(1.02);
}

/* Advanced Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "pnum" 1, "tnum" 0, "onum" 1, "lnum" 0, "dlig" 1;
}

/* Selection Styling */
::selection {
    background: rgba(0, 120, 212, 0.3);
    color: #ffffff;
}

/* Responsive Design - Ultra Premium Mobile */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1, .hero h2 {
        font-size: clamp(2.5rem, 10vw, 8rem);
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 40px;
        text-align: center;
    }
    
    .pricing-plans {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 25px;
    }
    
    nav ul li {
        margin-left: 15px;
    }
    
    .hero {
        padding: 0 30px 40px;
        min-height: 500px;
    }
    
    .hero h1, .hero h2 {
        font-size: clamp(2rem, 8vw, 5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.3rem);
    }
    
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .expertise, .elevate, .more-work, .elevate-story {
        margin: 30px;
        padding: 80px 30px;
    }
    
    .expertise h2, .elevate h2, .more-work h2, .elevate-story h2 {
        font-size: clamp(1.8rem, 6vw, 3rem);
        margin-bottom: 60px;
    }
    
    .expertise-item, .service {
        padding: 30px;
        margin-bottom: 50px;
    }
    
    .expertise-item h3, .service h3 {
        font-size: 1.5rem;
    }
    
    .expertise-item p, .service p {
        font-size: 1.1rem;
    }
    
    .discover-button {
        padding: 18px 40px;
        font-size: 14px;
        letter-spacing: 1.5px;
    }
    
    footer {
        padding: 60px 30px;
    }
    
    .expertise-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    nav ul li {
        margin-left: 10px;
    }
    
    nav ul li a {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .cta-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .hero {
        padding: 0 20px 30px;
    }
    
    .expertise, .elevate, .more-work, .elevate-story {
        margin: 20px;
        padding: 60px 20px;
        border-radius: 24px;
    }
    
    .expertise-item, .service {
        padding: 25px;
        border-radius: 20px;
    }
    
    .view-work, .work-with-us-button {
        padding: 14px 30px;
        width: 100%;
    }
    
    .discover-button {
        padding: 16px 35px;
    }
}

/* High-end Performance Optimizations */
.hero, .expertise, .elevate, .more-work, .elevate-story {
    will-change: transform, opacity;
}

/* Hardware Acceleration */
.cta-button, .view-work, .discover-button, .expertise-item, .service, .work-with-us-button {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .luxury-loader {
        transition: none !important;
    }
    
    .fade-in-up {
        transition: none !important;
        opacity: 1;
        transform: none;
    }
    
    .ripple {
        animation: none !important;
    }
}

/* Pause animations when tab is not visible */
.inactive-tab * {
    animation: none !important;
    transition: none !important;
}

/* Optimize compositing layers for smoother rendering */
.hero, 
.expertise, 
.elevate, 
.more-work, 
.elevate-story {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* Reduce heavy effects on mobile devices */
@media (max-width: 768px) {
    .mesh-gradient {
        animation: none;
        opacity: 0.5;
    }
    
    body::before {
        animation: none;
    }
    
    /* Reduce blur effects on mobile */
    .glass-section,
    header {
        backdrop-filter: blur(10px);
    }
}

/* New Explore Services Button */
.explore-services-btn {
    display: inline-block;
    margin-top: 40px;
    padding: 18px 45px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 120, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(0, 120, 212, 0.4);
    font-family: 'Poppins', sans-serif;
    transform: translateZ(0);
}

.explore-services-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.explore-services-btn:hover::before {
    left: 100%;
}

.explore-services-btn:hover {
    background: rgba(0, 120, 212, 0.2);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(0, 120, 212, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 120, 212, 0.6);
}

/* Services and Portfolio Page Back Button */
.back-button {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    background: rgba(0, 8, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 120, 212, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(0, 120, 212, 0.2);
    transform: translateY(-2px);
}

/* Portfolio Page Styles */
.portfolio-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.portfolio-category-btn {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 120, 212, 0.2);
    border-radius: 50px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-category-btn.active {
    background: rgba(0, 120, 212, 0.2);
    border-color: rgba(0, 120, 212, 0.5);
}

.portfolio-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.portfolio-item {
    background: rgba(0, 30, 60, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-item-info {
    padding: 20px;
}

/* Testimonials */
.testimonials {
    margin-top: 80px;
}

.testimonial {
    background: rgba(0, 30, 60, 0.2);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* CTA Page Styles */
.cta-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(0, 30, 60, 0.3);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 30, 60, 0.2);
    border: 1px solid rgba(0, 120, 212, 0.3);
    border-radius: 10px;
    color: white;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0078d4, #00b4b4);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    transform: translateY(-3px);
}
.hero-image img {
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 120, 212, 0.3);
    border: 1px solid rgba(0, 120, 212, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 120, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    background: rgba(0, 120, 212, 0.4);
    box-shadow: 0 5px 15px rgba(0, 120, 212, 0.3);
}

.social-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}
.fade-in-up {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}