:root {
    --bg-color: #05070a;
    --primary: #00e5ff;
    --secondary: #ff8c00;
    --accent: #39ff14;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.orbit-loader {
    position: relative;
    width: 100px;
    height: 100px;
}

.inner-orbit,
.outer-orbit {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
}

.inner-orbit {
    top: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

.outer-orbit {
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    border-bottom-color: var(--secondary);
    animation: spin 2s linear infinite reverse;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Background Starfield */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    height: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary);
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

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

/* Main Sections */
.panel {
    min-height: 100vh;
    padding: 100px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 5px;
    color: #fff;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Hero Section */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
}

.glitch-text::before {
    text-shadow: 2px 0 var(--primary);
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-text .tagline {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.4s ease;
    cursor: pointer;
    border: none;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #00b8d4);
    color: #000;
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.2);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.4);
}

/* Hero Visual & Orbit */
.hero-visual {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    position: relative;
    width: 250px;
    height: 250px;
    z-index: 5;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.profile-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0.3;
    animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        opacity: 0.2;
        transform: scale(1);
    }

    to {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.orbiting-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

/* About Section */
.about-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
}

.gravity-text .highlight {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.stats-grid {
    display: flex;
    gap: 50px;
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* Skills Section */
.skills-universe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.constellation {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: 0.4s;
}

.constellation:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
}

.constellation h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.skill-nodes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.node {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    transition: 0.3s;
}

.node:hover {
    border-color: var(--accent);
    background: rgba(57, 255, 20, 0.1);
    color: var(--accent);
}

/* Project Cards */
.projects-grid {
    display: grid;
    gap: 40px;
}

.project-card {
    background: var(--glass-bg);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.project-info {
    padding: 3rem;
}

.badge {
    padding: 5px 15px;
    background: rgba(224, 140, 0, 0.2);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.impact-metrics {
    display: flex;
    gap: 30px;
    margin: 1.5rem 0;
}

.metric {
    display: flex;
    flex-direction: column;
}

.m-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.m-lab {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.tech-stack {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.tech-stack span {
    font-size: 0.8rem;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.03);
    padding: 3px 10px;
    border-radius: 4px;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-visual {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.project-img-box {
    width: 100%;
    height: 100%;
    max-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: 0.5s;
    background-color: rgba(255, 255, 255, 0.02);
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

/* Achievements Section */
.achievements-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.impact-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(0, 0, 0, 0.2));
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.impact-featured.reverse {
    direction: rtl;
}

.impact-featured.reverse .impact-text,
.impact-featured.reverse .impact-visual {
    direction: ltr;
}

.impact-featured.reverse .image-frame {
    transform: perspective(1000px) rotateY(5deg);
}

.impact-featured.reverse .image-frame:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.impact-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.impact-visual {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    padding: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: 0.5s;
    transform: perspective(1000px) rotateY(-5deg);
}

.image-frame:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
}

.image-frame img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.frame-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
    pointer-events: none;
    animation: frame-pulse 3s infinite alternate;
}

@keyframes frame-pulse {
    from {
        opacity: 0.3;
    }

    to {
        opacity: 0.7;
    }
}

.impact-text h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.impact-text p {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.impact-meta {
    display: flex;
    gap: 20px;
}

.impact-meta span {
    font-size: 0.9rem;
    color: var(--primary);
    background: rgba(0, 229, 255, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.achieve-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 30px;
    position: relative;
    transition: 0.4s;
    backdrop-filter: blur(10px);
}

.achieve-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.achieve-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.achieve-item {
    margin-bottom: 1.5rem;
}

.achieve-val {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--secondary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.achieve-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.achieve-list {
    list-style: none;
    margin-bottom: 2rem;
}

.achieve-list li {
    color: var(--text-dim);
    position: relative;
    padding-left: 25px;
    margin-bottom: 1rem;
}

.achieve-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent);
}

.floating-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 2.5rem;
}

.mini-orb {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    animation: mini-float 3s infinite ease-in-out;
    transition: 0.3s;
}

.mini-orb:hover {
    background: rgba(0, 229, 255, 0.2);
    border-color: var(--primary);
    transform: scale(1.2);
}

.mini-orb:nth-child(2) {
    animation-delay: 0.5s;
}

.mini-orb:nth-child(3) {
    animation-delay: 1s;
}

@keyframes mini-float {

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

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

.credential-btn {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-align: center;
    font-size: 0.9rem;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    display: block;
    transition: 0.4s;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
}

.credential-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
    transform: translateY(-3px);
}

/* Responsive adjustments for achievements */
@media (max-width: 992px) {

    .impact-featured,
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .image-frame {
        transform: none;
    }

    .impact-featured {
        padding: 2rem;
    }
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 2rem;
}

.c-link {
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    transition: 0.3s;
}

.c-link:hover {
    color: var(--primary);
    transform: translateX(10px);
}

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

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: var(--font-body);
    outline: none;
    transition: 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.input-group textarea {
    height: 150px;
    resize: none;
}

.minimal-footer {
    text-align: center;
    padding-top: 5rem;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-dim);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: mouse-scroll 1.5s infinite;
}

@keyframes mouse-scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        right: 0;
        height: calc(100vh - var(--nav-height));
        top: var(--nav-height);
        background: rgba(5, 7, 10, 0.95);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        padding-top: 50px;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .burger {
        display: block;
        cursor: pointer;
    }

    .burger div {
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px;
        transition: all 0.3s ease;
    }

    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-content,
    .project-card,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 3rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-visual {
        height: 400px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

.burger {
    display: none;
}