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

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #e2e8f0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s ease-out;
}

/* Particle Background */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.8)); }
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideUp 1s ease-out;
}

.hero-content p {
    font-size: 1.5rem;
    color: rgba(226, 232, 240, 0.8);
    margin-bottom: 2rem;
    animation: slideUp 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideUp 1s ease-out 0.4s both;
}

.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::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.5);
}

/* Home Story Section */
.home-story {
    padding: 2rem 5% 1rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.home-story::before {
    content: '';
    position: absolute;
    top: 2rem;
    right: 6%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.16), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.home-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: stretch;
}

.story-copy {
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.88), rgba(99, 102, 241, 0.14));
    border: 1px solid rgba(99, 102, 241, 0.25);
    backdrop-filter: blur(16px);
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.35);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.story-copy::after {
    content: '';
    position: absolute;
    inset: auto -15% -20% auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.story-copy > * {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.story-copy h2 {
    font-size: clamp(2.3rem, 4.5vw, 4rem);
    line-height: 1.03;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.story-copy p {
    font-size: 1.08rem;
    line-height: 1.9;
    color: rgba(226, 232, 240, 0.82);
    max-width: 60ch;
}

.story-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(6, 182, 212, 0.35);
    background: rgba(6, 182, 212, 0.08);
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.secondary-link:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.16);
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.18);
}

.story-panel {
    padding: 1.2rem;
    border-radius: 28px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.22);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.panel-shell {
    height: 100%;
    padding: 1.5rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.76));
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: rgba(226, 232, 240, 0.62);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.panel-item {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 0;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.panel-item:first-of-type {
    border-top: none;
    padding-top: 0;
}

.panel-index {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: 50%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 25px rgba(6, 182, 212, 0.25);
}

.panel-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
    color: #fff;
}

.panel-item p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.72);
}

.home-highlights {
    padding: 3.5rem 5% 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.home-highlights .section-title {
    margin-bottom: 0;
}

.home-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    display: block;
    min-height: 220px;
    padding: 1.8rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.86));
    border: 1px solid rgba(99, 102, 241, 0.22);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.highlight-card::after {
    content: '↗';
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    color: rgba(226, 232, 240, 0.48);
    font-size: 1.4rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 24px 55px rgba(6, 182, 212, 0.18);
}

.highlight-card:hover::after {
    color: var(--accent);
    transform: translate(2px, -2px);
}

.highlight-card .tilt-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.highlight-tag {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.highlight-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.highlight-card p {
    color: rgba(226, 232, 240, 0.76);
    line-height: 1.8;
    max-width: 28ch;
}

/* Services Section */
.services {
    min-height: 100vh;
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.service-card {
    padding: 3rem 2rem;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: var(--accent);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.service-card p {
    color: rgba(226, 232, 240, 0.7);
    line-height: 1.8;
}

/* Datacenter Section */
.datacenter {
    padding: 8rem 5%;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.1), transparent);
}

.dc-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.dc-text h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dc-text p {
    color: rgba(226, 232, 240, 0.8);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.dc-features {
    list-style: none;
}

.dc-features li {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(226, 232, 240, 0.9);
}

.dc-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    font-size: 1.5rem;
}

.dc-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.server-rack {
    width: 200px;
    height: 300px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 20px;
    position: relative;
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.5);
}

.server-light {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 20px var(--accent); }
    50% { opacity: 0.3; box-shadow: none; }
}

/* Footer */
footer {
    padding: 4rem 5%;
    text-align: center;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(15, 23, 42, 0.9);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px) rotate(360deg);
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typewriter Effect */
.typewriter {
    border-right: 3px solid var(--accent);
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent); }
}

/* 3D Card Effect */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-content {
    transition: transform 0.1s ease;
}

/* Magnetic Button Effect */
.magnetic-btn {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(20px);
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
    }

    .dc-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .datacenter {
        display: block !important;
        min-height: auto !important;
        padding: 6rem 5% 4rem;
    }
    .dc-visual {
        display: none;
    }
    .home-story-grid,
    .home-highlights-grid {
        grid-template-columns: 1fr;
    }
    .story-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .section-heading {
        text-align: left;
    }
    .section-heading .section-title {
        text-align: left;
    }
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        letter-spacing: 0.16em;
    }
    body {
        cursor: auto;
    }
    .cursor, .cursor-follower {
        display: none;
    }
    .services {
        padding: 6rem 5%;
    }
}
