/* VisionX - Cosmic Digital Agency Styles */
:root {
    --primary: #0ff;
    --secondary: #f0f;
    --dark: #020205;
    --text: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    overflow-x: hidden;
}

/* Background Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

canvas {
    display: block;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(2, 2, 5, 0.85);
    backdrop-filter: blur(15px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 15px var(--primary);
    cursor: pointer;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* Sections */
section {
    min-height: 100vh;
    padding: 120px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 60px;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Hero Wrapper & Canvas Elements */
.home-wrapper {
    height: 250vh;
    /* Scrolling space for scatter animation */
    position: relative;
    padding: 0;
}

.sticky-hero {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

#galaxy-intro {
    position: absolute;
    text-align: center;
    transition: transform 0.1s linear, opacity 0.1s linear;
    z-index: 5;
    pointer-events: none;
}

#galaxy-intro h2 {
    font-size: 3rem;
    letter-spacing: 12px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    font-family: 'Orbitron', sans-serif;
}

.scroll-instruction {
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: var(--primary);
    animation: bounce 2s infinite;
    text-transform: uppercase;
    font-weight: 500;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

#visionx-content {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 10;
    text-align: center;
}

.hero-content {
    z-index: 10;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 50px;
    right: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
    transition: opacity 0.2s ease;
}

.scroll-indicator .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 15px;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.4), inset 0 0 10px rgba(0, 255, 255, 0.2);
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
    box-shadow: 0 0 5px var(--primary);
}

.scroll-indicator .arrows {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-indicator .arrows span {
    display: block;
    width: 12px;
    height: 12px;
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    transform: rotate(45deg);
    margin: -3px;
    animation: scrollArrows 2s infinite;
}

.scroll-indicator .arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator .arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

@keyframes scrollArrows {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 7rem;
    font-weight: 900;
    color: #fff;
    position: relative;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    letter-spacing: 10px;
}

.subtitle {
    font-size: 1.8rem;
    letter-spacing: 6px;
    margin-bottom: 50px;
    color: #bbb;
    text-transform: uppercase;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 18px 50px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 3px;
    cursor: pointer;
    transition: 0.4s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 40px var(--primary), 0 0 15px var(--primary) inset;
    transform: scale(1.05);
}

/* Services */
.cards {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1300px;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.15);
    padding: 50px 40px;
    border-radius: 20px;
    width: 350px;
    transition: 0.5s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: 0.7s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.icon {
    font-size: 4rem;
    margin-bottom: 30px;
    text-shadow: 0 0 20px var(--primary);
}

.card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 2px;
}

.card p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #aaa;
    font-weight: 300;
}

/* About Section */
.about-content {
    max-width: 900px;
    background: rgba(255, 0, 255, 0.03);
    padding: 80px;
    border: 1px solid rgba(255, 0, 255, 0.15);
    border-radius: 30px;
    box-shadow: 0 0 60px rgba(255, 0, 255, 0.05);
    position: relative;
    backdrop-filter: blur(10px);
}

.about h2 {
    color: var(--secondary);
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}

.about p {
    font-size: 1.5rem;
    line-height: 1.9;
    font-weight: 300;
    color: #ddd;
}

/* Projects Section */
.projects {
    position: relative;
    z-index: 10;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1300px;
    width: 100%;
}

.project-card {
    position: relative;
    width: 350px;
    height: 450px;
    background: var(--dark);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 255, 255, 0.2);
    border-color: var(--primary);
}

/* Simulated glowing galaxy edge using gradients and animation */
.mini-galaxy {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%;
    height: 250%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(0, 255, 255, 0.1) 10%, rgba(0, 119, 255, 0.9) 40%, transparent 60%);
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotateGalaxy 10s linear infinite;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.galaxy-2 {
    background: conic-gradient(from 0deg, transparent 0%, rgba(255, 0, 255, 0.1) 10%, rgba(136, 0, 255, 0.9) 40%, transparent 60%);
    animation-duration: 8s;
    animation-direction: reverse;
}

.galaxy-3 {
    background: conic-gradient(from 0deg, transparent 0%, rgba(0, 255, 170, 0.1) 10%, rgba(0, 255, 85, 0.9) 40%, transparent 60%);
    animation-duration: 12s;
}

/* Core dark mask */
.project-card::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--dark);
    border-radius: 17px;
    z-index: 1;
}

/* Star dust effect on hover */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, #fff 1px, transparent 1px);
    background-size: 25px 25px;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.5s;
    pointer-events: none;
}

.project-card:hover::after {
    opacity: 0.15;
    animation: floatingDust 15s linear infinite;
}

/* Interactive mouse light overlay */
.mouse-light {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouseX, 50%) var(--mouseY, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .mouse-light {
    opacity: 1;
}

/* Project Image Layer */
.project-image {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(100% - 6px);
    height: 55%;
    z-index: 2;
    /* Over the dark mask, below content */
    overflow: hidden;
    border-radius: 17px 17px 0 0;
    /* Optional edge blurring */
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, transparent 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s;
    mix-blend-mode: screen;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    opacity: 0.85;
    mix-blend-mode: normal;
}

.project-content {
    position: relative;
    z-index: 4;
    padding: 50px 30px 40px 30px;
    text-align: center;
    width: 100%;
    background: linear-gradient(to top, rgba(2, 2, 5, 1) 40%, rgba(2, 2, 5, 0.85) 70%, transparent);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.project-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: color 0.3s, text-shadow 0.3s;
}

.project-card:hover .project-content h3 {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary);
}

.project-content p {
    font-size: 1.15rem;
    color: #bbb;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn-small {
    padding: 12px 30px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.4s;
    font-size: 0.95rem;
    font-weight: 700;
}

.btn-small:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2) inset, 0 0 20px rgba(0, 255, 255, 0.3);
}

@keyframes rotateGalaxy {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes floatingDust {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100px 100px;
    }
}

/* Contact */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    align-items: stretch;
}

.contact-info {
    flex: 1;
    min-width: 320px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 255, 0.15);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary);
    letter-spacing: 2px;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #bbb;
}

.contact-info p strong {
    color: #fff;
    font-weight: 500;
    margin-right: 10px;
    letter-spacing: 1px;
}

form {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

input,
textarea {
    width: 100%;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    border-radius: 10px;
    outline: none;
    transition: 0.4s;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.07);
}

form .btn {
    margin-top: 20px;
    align-self: center;
}

/* Footer */
footer {
    padding: 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #010103;
    font-size: 1.1rem;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Media Queries Moved to Bottom */
/* About Page Specific Styles */
.about-page {
    padding-top: 50px;
}

.mission-section {
    min-height: 80vh;
}

.custom-about {
    margin-top: -30px;
}

/* Skills Orbital Galaxy */
.skills-section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.skills-galaxy-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.skills-system {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateY(10deg);
    /* Tilt it to look like a 3D galaxy */
}

.core-star {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(-60deg) rotateY(-10deg);
    /* un-tilt the text */
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #fff, var(--primary), var(--dark));
    border-radius: 50%;
    box-shadow: 0 0 50px var(--primary), 0 0 100px var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #000;
    z-index: 10;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 255, 0.15);
    background: radial-gradient(circle, transparent 95%, rgba(0, 255, 255, 0.05) 100%);
    transform: translate(-50%, -50%);
    animation: spinOrbit linear infinite;
}

.orbit-1 {
    width: 320px;
    height: 320px;
    animation-duration: 15s;
}

.orbit-2 {
    width: 520px;
    height: 520px;
    animation-duration: 25s;
    animation-direction: reverse;
    border-color: rgba(255, 0, 255, 0.15);
}

.orbit-3 {
    width: 720px;
    height: 720px;
    animation-duration: 40s;
    border-color: rgba(0, 255, 170, 0.15);
}

.planet {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Push out to orbit radius, then rotate to specific degree `--d` */
    transform: translate(-50%, -50%) rotate(var(--d)) translateX(125px);
    /* Radius changes per orbit below */
    width: 20px;
    height: 20px;
}

.orbit-1 .planet {
    transform: translate(-50%, -50%) rotate(var(--d)) translateX(160px);
}

.orbit-2 .planet {
    transform: translate(-50%, -50%) rotate(var(--d)) translateX(260px);
}

.orbit-3 .planet {
    transform: translate(-50%, -50%) rotate(var(--d)) translateX(360px);
}

.skill-label {
    position: absolute;
    background: rgba(2, 2, 5, 0.9);
    border: 2px solid var(--primary);
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 0 8px var(--primary);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);

    /* Counter-rotate the label so it stays readable while the orbit spins! */
    /* Needs to counter the 3D tilt AND the current rotation. We use keyframes applied to the planets */
    animation: counterSpinOrbit linear infinite;
}

.orbit-1 .skill-label {
    border-color: var(--primary);
    animation-duration: 15s;
}

.orbit-2 .skill-label {
    border-color: var(--secondary);
    animation-duration: 25s;
    animation-direction: reverse;
    text-shadow: 0 0 5px var(--secondary);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.orbit-3 .skill-label {
    border-color: #0fa;
    animation-duration: 40s;
    text-shadow: 0 0 5px #0fa;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.3);
}


@keyframes spinOrbit {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes counterSpinOrbit {
    0% {
        transform: rotate(0deg) rotateX(-60deg) rotateY(-10deg);
    }

    100% {
        transform: rotate(-360deg) rotateX(-60deg) rotateY(-10deg);
    }
}

/* Team Section */
.team-section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-grid {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
}

.team-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    width: 400px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: 0.5s;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.avatar-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 30px auto;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.team-card:nth-child(2) .avatar-img {
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.4);
}

.avatar-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 255, 255, 0.5);
    animation: rotateGalaxy 20s linear infinite;
    z-index: 1;
}

.ring-alt {
    border-color: rgba(255, 0, 255, 0.5);
    animation-direction: reverse;
    animation-duration: 15s;
}

.team-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.team-card .rank {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.team-card:nth-child(2) .rank {
    color: var(--secondary);
}

.team-card:nth-child(2) p {
    color: #bbb;
}

.team-card p {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 25px;
    /* Added margin for new social links */
}

/* Social Links styling */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: auto;
}

.social-links a {
    color: #bbb;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    transform: scale(1.2);
}

.team-card:first-child .social-links a:hover {
    color: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary));
}

.team-card:nth-child(2) .social-links a:hover {
    color: var(--secondary);
    filter: drop-shadow(0 0 5px var(--secondary));
}

/* Make active links glow */
nav ul li a.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

/* CTA Section */
.cta-section {
    min-height: 50vh;
    padding: 100px 20px 150px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-content {
    max-width: 900px;
    background: rgba(0, 255, 255, 0.03);
    padding: 60px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 30px;
    box-shadow: 0 0 60px rgba(0, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 30px;
}

.cta-content p {
    font-size: 1.5rem;
    line-height: 1.9;
    font-weight: 300;
    color: #ddd;
    margin-bottom: 40px;
}

/* -------------------------------------------
   RESPONSIVENESS / MEDIA QUERIES 
   ------------------------------------------- */

/* Large Tablets & Small Laptops */
@media (max-width: 1024px) {
    .glitch {
        font-size: 5rem;
    }

    h2 {
        font-size: 3rem;
    }

    /* Skills Galaxy Scaling */
    .skills-galaxy-container {
        transform: scale(0.85);
        /* Scales down the entire 3D galaxy cleanly */
    }
}

/* Tablets (portrait) and larger phones */
@media (max-width: 768px) {
    .glitch {
        font-size: 3.5rem;
        letter-spacing: 5px;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }

    #galaxy-intro h2 {
        font-size: 2.2rem;
        letter-spacing: 5px;
    }

    nav {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 1rem;
    }

    section {
        padding: 100px 20px;
    }

    .about-content,
    .cta-content {
        padding: 40px 20px;
    }

    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .project-card,
    .team-card {
        width: 100%;
        max-width: 400px;
    }

    /* Skills Galaxy Scaling */
    .skills-galaxy-container {
        transform: scale(0.65);
        /* Scales down further for tablets */
        height: 600px;
        /* Compress vertical space */
    }
}

/* Small Phones */
@media (max-width: 480px) {
    .glitch {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    #galaxy-intro h2 {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    nav {
        padding: 10px;
    }

    .logo {
        font-size: 1.5rem;
    }

    nav ul {
        gap: 10px;
    }

    nav ul li a {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .scroll-indicator {
        bottom: 15px;
        right: 15px;
        transform: scale(0.6);
    }

    /* Skills Galaxy Mobile Override */
    .skills-galaxy-container {
        transform: scale(0.35);
        /* Fit on tiny screens */
        height: 400px;
    }

    .orbit-1 .planet {
        transform: translate(-50%, -50%) rotate(var(--d)) translateX(170px);
    }

    .orbit-2 .planet {
        transform: translate(-50%, -50%) rotate(var(--d)) translateX(280px);
    }

    .orbit-3 .planet {
        transform: translate(-50%, -50%) rotate(var(--d)) translateX(400px);
    }

    .skill-label {
        font-size: 2.2rem;
        /* Make text bigger since we are heavily scaling down the container */
        padding: 15px 30px;
    }
}

/* Extra Small Phones */
@media (max-width: 360px) {
    .glitch {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .logo {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 5px;
    }

    nav ul li a {
        font-size: 0.75rem;
        letter-spacing: 0px;
    }
}