:root {
    --bg-color: #050511;
    /* Deep space black */
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --accent-primary: #00f3ff;
    /* Neon Cyan */
    --accent-secondary: #bc13fe;
    /* Neon Purple */
    --accent-tertiary: #4d4dff;
    /* Electric Blue */
    --accent-glow: rgba(0, 243, 255, 0.3);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(77, 77, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(188, 19, 254, 0.08), transparent 25%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3 {
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4.5rem;
    background: linear-gradient(135deg, #fff 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    }

    to {
        text-shadow: 0 0 40px rgba(188, 19, 254, 0.4);
    }
}

h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 17, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.logo span {
    color: var(--accent-primary);
    text-shadow: 0 0 15px var(--accent-primary);
}

.nav-btn {
    padding: 0.6rem 1.8rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.nav-btn:hover {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 25px var(--accent-primary);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

/* Animated Background Grid */
.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: gridMove 20s linear infinite;
    z-index: -2;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* Glowing Orb */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.15) 0%, rgba(0, 243, 255, 0.05) 40%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
    animation: orbPulse 8s ease-in-out infinite alternate;
}

@keyframes orbPulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    margin-top: 1rem;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.6);
}

.btn:hover::before {
    opacity: 1;
}

/* Featured Card (Restored) */
.featured-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 243, 255, 0.05) 100%);
    border: 1px solid var(--accent-primary);
    border-radius: 2rem;
    padding: 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.1);
    grid-column: 1 / -1;
    /* Span full width in grid */
}

.featured-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.2);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 243, 255, 0.1) 100%);
}

.featured-icon {
    font-size: 4rem;
    color: var(--accent-primary);
    background: rgba(0, 243, 255, 0.1);
    padding: 2rem;
    border-radius: 50%;
    box-shadow: 0 0 30px var(--accent-glow);
    animation: pulseIcon 3s infinite alternate;
}

@keyframes pulseIcon {
    from {
        box-shadow: 0 0 20px var(--accent-glow);
    }

    to {
        box-shadow: 0 0 40px var(--accent-primary);
    }
}

.featured-content {
    flex: 1;
}

.featured-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.featured-content p {
    font-size: 1.2rem;
    max-width: 800px;
}

.featured-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--accent-secondary);
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 15px var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Service URL */
.service-url {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.service-card:hover .service-url,
.featured-card:hover .service-url {
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Services Section */
.services {
    padding: 8rem 0;
    /* Restored padding */
    position: relative;
}

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

.service-card {
    display: block;
    /* Ensure it behaves like a block for layout */
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none;
    /* Remove default link underline */
    color: var(--text-primary);
    /* Inherit text color */
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 243, 255, 0.1);
}

/* Gradient Border Effect on Hover */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 30px var(--accent-primary);
    transform: rotateY(180deg);
}

.service-card:hover .service-icon i {
    transform: rotateY(-180deg);
    /* Keep icon upright */
    transition: transform 0.4s;
}

/* Footer */
footer {
    background: rgba(5, 5, 17, 0.8);
    padding: 5rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.footer-content {
    display: flex;
    /* Changed to flex for centering 2 columns */
    justify-content: center;
    gap: 6rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 250px;
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--accent-primary);
    transform: translateX(5px);
    text-shadow: 0 0 10px var(--accent-glow);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .hero {
        padding-top: 7rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero::after {
        width: 100vw;
        height: 100vw;
    }

    .featured-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .featured-badge {
        top: 1rem;
        right: 1rem;
    }

    .footer-content {
        gap: 3rem;
        text-align: center;
    }
}