:root {
    --dark-bg: #05020c;
    --light-bg: #ffe7e7;
    --accent: #008CFF;
    --dark-text: #000000;
    --light-text: #ffffff;
    --gold: #FFD700;
    --silver: #C0C0C0;
    --vh: 1vh;
    --cursor-dot-size: 8px;
    --cursor-ring-size: 40px;
    --cursor-ring-expand: 60px;
}

body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.5s, color 0.5s;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    cursor: none;
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.dark {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

.dark * {
    color: var(--light-text);
}

.dark .opacity-70 {
    color: rgba(255, 255, 255, 0.7);
}

.dark .opacity-80 {
    color: rgba(255, 255, 255, 0.8);
}

.light {
    background-color: var(--light-bg);
    color: var(--dark-text);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
}

.cursor-expanded {
    width: 50px;
    height: 50px;
    opacity: 0.5;
}

.cursor-click {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Service Cards, Testimonial Cards, and Contact Card */
.service-card, .testimonial-card, .contact-card {
    transition: transform 0.5s, box-shadow 0.5s;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .service-card,
.dark .testimonial-card,
.dark .contact-card {
    background: rgba(0, 0, 0, 0.6);
    color: var(--light-text);
}

.light .service-card,
.light .testimonial-card,
.light .contact-card {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-text);
}

.service-card:hover,
.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 140, 255, 0.1), 0 10px 10px -5px rgba(0, 140, 255, 0.04);
}

/* Ensure text visibility in dark theme */
.dark .service-card .opacity-70,
.dark .testimonial-card .opacity-70,
.dark .contact-card .opacity-70 {
    color: rgba(255, 255, 255, 0.7);
}

.light .service-card .opacity-70,
.light .testimonial-card .opacity-70,
.light .contact-card .opacity-70 {
    color: rgba(0, 0, 0, 0.7);
}

.service-icon {
    transition: transform 0.8s ease;
}

/* Timeline */
.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--accent);
}

.timeline-dot {
    position: absolute;
    left: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent);
}

/* Portfolio Items */
.portfolio-item {
    transition: transform 0.4s;
}

.portfolio-item:hover {
    transform: scale(1.05);
}

.portfolio-overlay {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: calc(var(--vh, 1vh) * 100);
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 80px;
    height: 80px;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--accent) }
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Navigation Links */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Glass Effect */
.glass-effect {
    background: rgba(111, 111, 111, 0.201);
    backdrop-filter: blur(10px);
    border: 1px solid rgb(0, 0, 0);
}

/* Gold & Silver Gradients */
.gold-gradient {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-text) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.silver-gradient {
    background: linear-gradient(135deg, var(--silver) 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Styles */
input[type="text"], input[type="email"], textarea {
    border: none;
    outline: none;
    background-color: transparent;
    border-bottom: 2px solid rgba(0, 140, 255, 0.3);
    transition: border-color 0.3s;
}

input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    border-bottom-color: var(--accent);
}

.form-input-container {
    position: relative;
    margin-bottom: 20px;
}

.form-input-container label {
    position: absolute;
    left: 0;
    top: 10px;
    transition: transform 0.3s, color 0.3s;
    pointer-events: none;
}

.form-input-container input:focus + label,
.form-input-container input:not(:placeholder-shown) + label,
.form-input-container textarea:focus + label,
.form-input-container textarea:not(:placeholder-shown) + label {
    transform: translateY(-20px) scale(0.8);
    color: var(--accent);
}

/* Hero Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(212, 175, 55, 0.1), rgba(192, 192, 192, 0.1));
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, 
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.05) 1%,
        transparent 1%,
        transparent 4%);
}

/* Light Beam Effect */
.light-beam {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.beam {
    position: absolute;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1),
        transparent);
    transform-origin: 0 0;
    animation: beamSweep 8s linear infinite;
}

.beam-1 {
    top: 20%;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.beam-2 {
    top: 40%;
    transform: rotate(-30deg);
    animation-delay: -2s;
}

.beam-3 {
    top: 60%;
    transform: rotate(15deg);
    animation-delay: -4s;
}

.beam-4 {
    top: 80%;
    transform: rotate(-60deg);
    animation-delay: -6s;
}

@keyframes beamSweep {
    0% {
        transform: translateX(-100%) rotate(var(--rotation));
    }
    100% {
        transform: translateX(100%) rotate(var(--rotation));
    }
}

/* Theme-specific adjustments */
.light .hero-bg::before {
    background: 
        linear-gradient(45deg, rgba(212, 175, 55, 0.05), rgba(192, 192, 192, 0.05));
}

.light .hero-bg::after {
    background: 
        linear-gradient(45deg, 
        rgba(0, 0, 0, 0.03) 0%,
        rgba(0, 0, 0, 0.03) 1%,
        transparent 1%,
        transparent 4%);
}

.light .beam {
    background: linear-gradient(90deg, 
        transparent,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.05),
        transparent);
}

/* Remove blue blur light from hero section */
.hero-bg .orb,
.hero-bg .orb-1,
.hero-bg .orb-2 {
    display: none;
}

/* Moving Line */
.moving-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.moving-line::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 300%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: moveLine 15s linear infinite;
}

@keyframes moveLine {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* Floating Elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .typewriter {
        white-space: normal;
        border-right: none;
        animation: none;
    }
    
    .hero-bg::after {
        animation: backgroundMove 60s linear infinite;
    }
    
    .service-card, .testimonial-card {
        padding: 1.5rem;
    }
    
    .portfolio-item img {
        height: 200px;
    }
    
    .reveal-left, .reveal-right {
        transform: translateY(30px);
    }
    
    .reveal-left.active, .reveal-right.active {
        transform: translateY(0);
    }
}

/* Fix for mobile viewport height */
@supports (-webkit-touch-callout: none) {
    .min-h-screen {
        min-height: -webkit-fill-available;
    }
}

/* Enhanced Button Effects */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-hover-effect:hover::before {
    width: 100%;
}

/* Sparkle Effect */
.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: white;
    opacity: 0;
    pointer-events: none;
}

/* Matrix Background */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(6, 23, 47, 0.1), rgba(6, 23, 47, 0.3));
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

.matrix-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 140, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 140, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: matrixMove 20s linear infinite;
}

/* Gradient Orbs */
.gradient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 15s ease-in-out infinite;
    mix-blend-mode: screen;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 140, 255, 0.15) 0%, rgba(0, 140, 255, 0) 70%);
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 140, 255, 0.1) 0%, rgba(0, 140, 255, 0) 70%);
    top: 60%;
    right: 20%;
    animation-delay: -5s;
}

/* Animated Lines */
.animated-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(0, 140, 255, 0.1), transparent);
    height: 1px;
    width: 100%;
    animation: lineMove 10s linear infinite;
}

.line-vertical {
    position: absolute;
    background: linear-gradient(180deg, transparent, rgba(0, 140, 255, 0.1), transparent);
    width: 1px;
    height: 100%;
    animation: lineMoveVertical 15s linear infinite;
}

/* Line Variations */
.line:nth-child(1) { top: 20%; height: 2px; animation-duration: 8s; }
.line:nth-child(2) { top: 40%; height: 1px; animation-duration: 12s; }
.line:nth-child(3) { top: 60%; height: 3px; animation-duration: 15s; }
.line:nth-child(4) { top: 80%; height: 1.5px; animation-duration: 10s; }

.line-vertical:nth-child(5) { left: 20%; width: 2px; animation-duration: 14s; }
.line-vertical:nth-child(6) { left: 40%; width: 1px; animation-duration: 9s; }
.line-vertical:nth-child(7) { left: 60%; width: 3px; animation-duration: 11s; }
.line-vertical:nth-child(8) { left: 80%; width: 1.5px; animation-duration: 13s; }

@keyframes lineMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes lineMoveVertical {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(50px, 50px); }
    50% { transform: translate(0, 100px); }
    75% { transform: translate(-50px, 50px); }
}

/* Theme-specific adjustments */
.light .orb {
    background: radial-gradient(circle, rgba(0, 140, 255, 0.08) 0%, rgba(0, 140, 255, 0) 70%);
}

.light .line,
.light .line-vertical {
    background: linear-gradient(90deg, transparent, rgba(0, 140, 255, 0.05), transparent);
}

.light .matrix-grid {
    background-image: 
        linear-gradient(rgba(0, 140, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 140, 255, 0.02) 1px, transparent 1px);
}

/* Premium Custom Cursor */
.cursor-dot {
    width: var(--cursor-dot-size);
    height: var(--cursor-dot-size);
    background-color: var(--light-text);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-ring {
    width: var(--cursor-ring-size);
    height: var(--cursor-ring-size);
    border: 1px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: 
        transform 0.2s cubic-bezier(0.25, 1, 0.5, 1),
        width 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        height 0.3s cubic-bezier(0.25, 1, 0.5, 1),
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.light .cursor-ring {
    border-color: var(--dark-text);
}

.cursor-ring.hover {
    width: var(--cursor-ring-expand);
    height: var(--cursor-ring-expand);
    background-color: rgba(255, 215, 0, 0.1);
}

.light .cursor-ring.hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.cursor-ring.click {
    width: calc(var(--cursor-ring-size) * 0.5);
    height: calc(var(--cursor-ring-size) * 0.5);
}

/* Premium Text Effects */
.gradient-text {
    background: linear-gradient(45deg, var(--accent), #00ff9d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.text-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Card Effects */
.premium-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 140, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.premium-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 140, 255, 0.1),
               0 10px 10px -5px rgba(0, 140, 255, 0.04);
}

.premium-card:hover::before {
    opacity: 1;
}

/* Premium Button Effects */
.premium-button {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-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: left 0.5s ease;
}

.premium-button:hover {
    transform: scale(1.05);
}

.premium-button:hover::before {
    left: 100%;
}

/* Parallax Effect */
.parallax {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Theme Transition */
.theme-transition {
    transition: background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.element-1 {
    top: 20%;
    left: 20%;
    animation: float1 8s ease-in-out infinite;
}

.element-2 {
    top: 40%;
    right: 20%;
    animation: float2 10s ease-in-out infinite;
}

.element-3 {
    bottom: 20%;
    left: 30%;
    animation: float3 12s ease-in-out infinite;
}

.element-4 {
    bottom: 40%;
    right: 30%;
    animation: float4 9s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -20px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(15px, 15px) rotate(3deg); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-15px, -15px) rotate(-3deg); }
}

.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 140, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 140, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.light .floating-element {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light .animated-grid {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Add glassy gold effect for process cards in light theme */
.light .timeline-item .bg-white\/5 {
    background: linear-gradient(135deg, 
        rgba(255, 220, 103, 0.236),
        rgba(192, 192, 192, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.56);
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.1);
}

.light .timeline-item .bg-white\/5:hover {
    background: linear-gradient(135deg, 
        rgba(232, 215, 255, 0.397),
        rgba(192, 192, 192, 0.15));
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
