/* Global Variables */
:root {
    --primary-color: #00F0FF;
    /* Neon Cyan */
    --secondary-color: #7000FF;
    /* Electric Purple */
    --primary-gradient: linear-gradient(135deg, #00F0FF 0%, #0077FF 100%);
    --bg-dark: #020205;
    /* Deepest Black */
    --text-primary: #FFFFFF;
    /* White Headers */
    --text-body: #94A3B8;
    /* Gray Body */
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* V10 Planet Colors */
    --planet-ent: #FF00E6;
    /* Neon Pink */
    --planet-soc: #00F0FF;
    /* Cyan */
    --planet-eff: #00FF94;
    /* Neon Green */
    --planet-hlt: #FF4D00;
    /* Neon Orange */
    --planet-edu: #FFD700;
    /* Gold */
    --planet-fin: #9D00FF;
    /* Purple */
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    background: #020205 url('bg_v4.png') no-repeat center center/cover;
    background-attachment: fixed;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: 100px 0;
    position: relative;
}

/* Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 20px auto 0;
    box-shadow: 0 0 20px var(--primary-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(2, 2, 5, 0.4);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1350px;
    width: 100%;
    padding: 0 30px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-right: 40px;
}

.logo i {
    color: #00F0FF;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px #00F0FF);
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 0;
    flex-wrap: nowrap;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 15px;
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-body);
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 60px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 50px rgba(0, 240, 255, 0.4);
}

.hero .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3.5rem;
    max-width: 800px;
}

.hero-btns {
    display: flex;
    gap: 30px;
    justify-content: center;
    width: 100%;
}

.btn {
    padding: 16px 40px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: #fff;
}

/* ABOUT */
.about-content p {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* CAROUSEL */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
}

.carousel-card {
    position: absolute;
    width: 350px;
    height: 420px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
}

.carousel-card.active {
    opacity: 1;
    transform: translateX(0) scale(1.1);
    z-index: 10;
    border-color: var(--primary-color);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
    pointer-events: auto;
}

.carousel-card.prev {
    opacity: 0.4;
    transform: translateX(-380px) scale(0.85);
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
}

.carousel-card.next {
    opacity: 0.4;
    transform: translateX(380px) scale(0.85);
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
}

.card-img-placeholder {
    height: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-img-placeholder img {
    height: 90%;
    width: auto;
    -webkit-mask-image: radial-gradient(circle closest-side, black 65%, transparent 100%);
    mask-image: radial-gradient(circle closest-side, black 65%, transparent 100%);
    mix-blend-mode: lighten;
    filter: brightness(1.2) contrast(1.4);
}

.card-content {
    padding: 30px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.card-content p {
    color: #ccc;
    font-size: 0.95rem;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    font-size: 1.2rem;
    transition: var(--transition);
    /* Flex Center for Icon Alignment */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-color);
}

.btn-prev {
    left: 20px;
}

.btn-next {
    right: 20px;
}

/* TECH EDGE - FIXED LAYOUT */
.tech-grid {
    display: grid;
    /* Use minmax to prevent collapse/overlap */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    width: 100%;
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

.tech-card-flip {
    width: 100%;
    height: 320px;
    perspective: 1000px;
}

.tech-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.tech-card-flip:hover .tech-card-inner {
    transform: rotateY(180deg);
}

.tech-card-front,
.tech-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tech-card-front {
    background: rgba(20, 20, 35, 0.7);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tech-card-flip:hover .tech-card-front {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.tech-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px var(--primary-color));
}

.tech-card-front h3 {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
}

.tech-card-back {
    background: linear-gradient(135deg, #050510 0%, #000 100%);
    transform: rotateY(180deg);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
}

.tech-chart-viz {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.bar-viz {
    width: 12px;
    background: var(--primary-color);
    border-radius: 3px;
    animation: bar-rise 1.5s infinite ease-in-out alternate;
    box-shadow: 0 0 10px var(--primary-color);
}

.bar-1 {
    height: 40%;
    animation-delay: 0.1s;
}

.bar-2 {
    height: 70%;
    animation-delay: 0.3s;
}

.bar-3 {
    height: 100%;
    animation-delay: 0s;
}

.bar-4 {
    height: 60%;
    animation-delay: 0.4s;
}

.bar-5 {
    height: 80%;
    animation-delay: 0.2s;
}

@keyframes bar-rise {
    0% {
        transform: scaleY(0.5);
        opacity: 0.6;
    }

    100% {
        transform: scaleY(1);
        opacity: 1;
    }
}

/* V10: ADVANCED COSMOS - V14 Height Fix */
.app-cosmos {
    position: relative;
    width: 100%;
    height: 900px;
    background: radial-gradient(circle at center, rgba(16, 23, 41, 0.6) 0%, transparent 80%);
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
}

/* Dim when expanding */
.app-cosmos.in-detail-mode .planet-node:not(.expanded) {
    opacity: 0.2;
    filter: blur(5px);
    pointer-events: none;
}

.cosmos-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* V15: SUPER GLOW LINES */
/* V15: SUPER GLOW LINES - UPDATED: Subtle/Invisible */
.cosmos-line {
    stroke: rgba(255, 255, 255, 0.08);
    /* Very faint white trace */
    stroke-width: 1;
    /* Thinner */
    filter: none;
    /* No Glow */
    transition: all 0.5s;
}

/* V15: SUPER GLOW DOT BEAM */
.cosmos-beam {
    stroke: #00F0FF;
    stroke-width: 6;
    /* Small Solid Core */
    stroke-linecap: round;
    stroke-dasharray: 0 var(--line-len);
    animation: beam-slide linear infinite;
    /* TRIPLE GLOW: Core, Mid, Outer Aura */
    filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #00F0FF) drop-shadow(0 0 20px #00F0FF);
    opacity: 1;
}

@keyframes beam-slide {
    0% {
        stroke-dashoffset: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: calc(-1 * var(--line-len));
        opacity: 0;
    }
}

.planet-node {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 2;
    touch-action: none;
    transition: transform 0.1s linear;
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.planet-node.floating {
    animation: float 6s infinite ease-in-out;
}

.planet-node.dragging {
    animation: none;
    z-index: 100;
    cursor: grabbing;
}

.planet-node.expanded {
    animation: none;
    z-index: 1000;
    border-color: transparent;
    background: transparent;
    cursor: default;
}

/* Unique Planet Styles - V14: Enhanced Glow */
.planet-node::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s;
    /* V14: Double Glow */
    box-shadow: 0 0 30px var(--planet-color, #fff), inset 0 0 20px var(--planet-color, #fff);
}

/* Custom Colors per Category */
.planet-ent {
    --planet-color: var(--planet-ent);
    width: 170px;
    height: 170px;
}

.planet-soc {
    --planet-color: var(--planet-soc);
    width: 150px;
    height: 150px;
}

.planet-eff {
    --planet-color: var(--planet-eff);
    width: 160px;
    height: 160px;
}

.planet-hlt {
    --planet-color: var(--planet-hlt);
    width: 155px;
    height: 155px;
}

.planet-edu {
    --planet-color: var(--planet-edu);
    width: 165px;
    height: 165px;
}

.planet-fin {
    --planet-color: var(--planet-fin);
    width: 145px;
    height: 145px;
}

.planet-node::after {
    border: 2px solid var(--planet-color, #fff);
}

.planet-node:hover::after {
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    opacity: 1;
    box-shadow: 0 0 50px var(--planet-color, #fff), inset 0 0 30px var(--planet-color, #fff);
}

/* UPDATED V13 ICON STYLES (FontAwesome) */
.planet-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 10;
}

/* The Icons themselves */
.planet-icon i {
    font-size: 4rem;
    color: var(--planet-color, #fff);
    filter: drop-shadow(0 0 15px var(--planet-color, #fff));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.planet-node:hover .planet-icon i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 25px var(--planet-color, #fff));
}

/* V14: Designed Labels - Glassmorphism Transparent */
.planet-label {
    position: absolute;
    bottom: -70px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    pointer-events: none;
    transition: opacity 0.3s;
    width: 220px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;

    /* Transparent Glass Effect */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    /* No border as requested */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);

    padding: 6px 12px;
    border-radius: 4px;
    z-index: 50;
}

.planet-node.expanded .planet-label {
    opacity: 0;
}

/* UPDATED V12 DETAIL OVERLAY */
.cosmos-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.cosmos-detail-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.detail-card {
    border: 1px solid var(--planet-color);
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.8), 0 0 40px var(--planet-color);
    width: 650px;
    max-width: 90%;
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    background: linear-gradient(145deg, rgba(20, 25, 40, 0.95) 0%, rgba(10, 10, 20, 0.98) 100%);
}

.cosmos-detail-overlay.active .detail-card {
    transform: scale(1);
}

.detail-icon {
    width: 140px;
    height: 140px;
    margin: 0 auto 35px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--planet-color);
    box-shadow: 0 0 50px var(--planet-color), inset 0 0 20px var(--planet-color);
}

.detail-icon i {
    width: auto;
    height: auto;
    filter: drop-shadow(0 0 15px var(--planet-color));
    font-size: 4rem;
    color: var(--planet-color);
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--planet-color);
}

.detail-desc {
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 45px;
    line-height: 1.8;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.detail-btn {
    padding: 12px 40px;
    background: var(--planet-color);
    color: #000;
    font-weight: 800;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 0 20px var(--planet-color);
    transition: transform 0.2s;
}

.detail-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.detail-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
}

.detail-close:hover {
    color: #fff;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info {
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-item i {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-form {
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 15px 0;
    font-size: 1.1rem;
    color: #fff;
    width: 100%;
}

.contact-form input:focus {
    border-bottom-color: var(--primary-color);
    outline: none;
}

.contact-form button {
    width: fit-content;
    margin-top: 10px;
    padding: 14px 40px;
    font-size: 1rem;
    background: var(--primary-color);
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form button:hover {
    transform: translateY(-3px);
    background: #fff;
}

/* Footer */
.footer {
    position: relative;
    z-index: 100;
    background: #000;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer p {
    color: #666;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: #888;
    font-size: 0.9rem;
    transition: color 0.3s;
    cursor: pointer;
    pointer-events: auto;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Legal Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.2);
    padding: 40px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 12px;
    transform: scale(0.9);
    transition: all 0.3s ease;
    overflow-y: auto;
    color: #fff;
    position: relative;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ccc;
}

.modal-body p {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .tech-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .carousel-card {
        width: 300px;
        height: 400px;
    }

    .carousel-card.prev {
        transform: translateX(-280px) scale(0.85);
    }

    .carousel-card.next {
        transform: translateX(280px) scale(0.85);
    }

    .app-cosmos {
        height: 600px;
    }

    .planet-node {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .carousel-container {
        height: 450px;
    }

    .carousel-card {
        width: 260px;
        height: 360px;
    }

    .app-cosmos {
        height: 500px;
    }

    .planet-node {
        width: 70px;
        height: 70px;
    }
}