:root {
    /* Colors */
    --bg-color: #0a0b14;
    --bg-secondary: #0f1019;
    --card-bg: rgba(22, 24, 37, 0.7);
    --card-bg-solid: #161825;
    --text-color: #f0f0f5;
    --text-muted: #a8a8b8;
    --accent-primary: #00f2ff;
    --accent-secondary: #bd00ff;
    --accent-tertiary: #ff6b6b;
    --gradient-primary: linear-gradient(135deg, #00f2ff 0%, #bd00ff 50%, #ff6b6b 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 242, 255, 0.4) 0%, rgba(189, 0, 255, 0.4) 100%);
    
    /* Typography */
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-md: 1rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 2.5rem;
    --fs-4xl: 4rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 242, 255, 0.4);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 25px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibility - Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: var(--bg-color);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-sm);
    font-weight: 700;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-4);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(0, 242, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(189, 0, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 80%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Noise texture overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* Header */
header {
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 11, 20, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color var(--transition-normal);
    padding: var(--space-2) var(--space-3);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.nav-links a.active {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--text-color) 40%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 80px rgba(0, 242, 255, 0.3);
}

.hero h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin-top: 1.5rem;
    border-radius: 2px;
}

.hero p {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-6);
    color: var(--text-muted);
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: var(--space-4) var(--space-7);
    background: var(--gradient-primary);
    background-size: 200% 200%;
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--fs-md);
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
    min-height: 44px;
    min-width: 44px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.4), 0 0 60px rgba(189, 0, 255, 0.2);
    background-position: 100% 50%;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px) scale(1);
}

.hero-visual {
    position: absolute;
    right: -10%;
    top: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(189, 0, 255, 0.2) 0%, rgba(11, 12, 21, 0) 70%);
    z-index: 0;
}

.glowing-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
    filter: blur(80px);
    opacity: 0.5;
    animation: float 6s ease-in-out infinite, rotate 20s linear infinite;
    will-change: transform;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* About Section */
.about {
    padding: 6rem 10%;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--accent-primary), transparent);
}

.about h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about h2 + .cards-container {
    margin-top: 3rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-12px);
    border-color: rgba(0, 242, 255, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 242, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 1;
}

.card p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-muted);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: var(--fs-xl);
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact {
    padding: 6rem 10%;
    text-align: center;
    position: relative;
    background: radial-gradient(ellipse 50% 50% at 50% 100%, rgba(189, 0, 255, 0.08) 0%, transparent 70%);
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-color) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact > p {
    color: var(--text-muted);
    font-size: var(--fs-lg);
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact-form input {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(22, 24, 37, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    width: 320px;
    min-height: 50px;
    font-size: var(--fs-md);
    transition: all var(--transition-normal);
}

.contact-form input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 242, 255, 0.15), 0 0 30px rgba(0, 242, 255, 0.1);
    background: rgba(22, 24, 37, 0.95);
}

.contact-form input::placeholder {
    color: var(--text-muted);
}

.contact-form button {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-full);
    border: none;
    background: linear-gradient(135deg, var(--text-color) 0%, #c0c0c0 100%);
    color: var(--bg-color);
    font-weight: 700;
    font-size: var(--fs-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 50px;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.contact-form button:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 242, 255, 0.3);
}

.contact-form button:active {
    transform: translateY(0);
}

/* Form Feedback */
.form-message {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.form-message.success {
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.form-message.error {
    background: rgba(255, 100, 100, 0.1);
    color: #ff6464;
    border: 1px solid #ff6464;
}

/* Loading spinner */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid var(--bg-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(10, 11, 20, 1) 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--gradient-primary);
}

footer p {
    font-size: var(--fs-sm);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 25px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.4s;
}

/* Hero Icons */
.floating-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
    will-change: transform;
    filter: drop-shadow(0 0 15px currentColor);
}

.icon-1 {
    top: 20%;
    right: 20%;
    animation-delay: 0s;
    color: var(--accent-primary);
    font-size: 3.5rem;
}

.icon-2 {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    color: var(--accent-secondary);
    font-size: 2.8rem;
}

.icon-3 {
    top: 30%;
    right: 40%;
    animation-delay: 4s;
    color: var(--accent-tertiary);
    font-size: 2.2rem;
}

/* Card Icons */
.card-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.3));
    transition: transform var(--transition-normal);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Social Links */
.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: #666;
    font-size: var(--fs-xl);
    transition: color var(--transition-normal), transform var(--transition-fast);
    padding: var(--space-2);
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-4px) scale(1.1);
    text-shadow: 0 0 20px var(--accent-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(11, 12, 21, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        backdrop-filter: blur(10px);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .hero {
        flex-direction: column;
        justify-content: flex-start;
        text-align: center;
        padding-top: 160px;
        height: auto;
        min-height: 100dvh;
    }

    .hero h1 {
        font-size: 2.5rem;
        color: var(--text-color);
        display: block;
    }

    .hero-visual {
        position: relative;
        width: 100%;
        height: 300px;
        right: auto;
        top: auto;
        margin-top: 2rem;
    }

    .glowing-circle {
        margin: 0 auto;
    }

    .contact-form {
        flex-direction: column;
        align-items: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: var(--fs-2xl);
    }

    .hero p {
        font-size: var(--fs-md);
    }

    .about,
    .contact {
        padding: var(--space-7) 5%;
    }

    .about h2,
    .contact h2 {
        font-size: var(--fs-2xl);
    }

    .card {
        padding: var(--space-5);
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        padding: 0 7%;
    }

    .hero h1 {
        font-size: var(--fs-3xl);
    }

    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .hero {
        padding: 0 15%;
    }

    .about,
    .contact {
        padding: var(--space-8) 15%;
    }

    .hero h1 {
        font-size: 5rem;
    }

    .cards-container {
        max-width: 1400px;
        margin: 0 auto;
    }
}