:root {
    --bg-base: #0a0a0f;
    --bg-surface: #13131a;
    --bg-surface-hover: #1c1c26;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-cyan: #00f0ff;
    --accent-purple: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    position: relative;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.alt-bg {
    background-color: rgba(255, 255, 255, 0.02);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

.text-center.section-title::after {
    left: 20%;
}

/* Top Contact Bar */
.top-contact-bar {
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.top-contact-bar .contact-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

.top-contact-bar .contact-links a:hover {
    color: var(--accent-cyan);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 36px;
    /* Offset for top bar */
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    /* Adjust height to fit navbar */
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.role {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.summary {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

.btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
}

.btn.secondary:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* Abstract Graphic / Profile Image */
.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-img-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    z-index: 5;
    position: relative;
    border: 4px solid var(--bg-surface);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border: 1px dashed rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    animation: spinOrbit 20s linear infinite;
    z-index: 1;
}

@keyframes spinOrbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.orbit {
    position: relative;
    width: 300px;
    height: 300px;
}

.planet {
    position: absolute;
    border-radius: 50%;
}

.core {
    width: 60px;
    height: 60px;
    background: var(--accent-purple);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 40px var(--accent-purple);
    animation: pulse 4s infinite alternate;
}

.node {
    width: 15px;
    height: 15px;
    background: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
}

.node-1 {
    top: 0;
    left: 50%;
    animation: orbit1 8s linear infinite;
    transform-origin: 0 150px;
}

.node-2 {
    top: 50%;
    left: 100%;
    animation: orbit2 12s linear infinite;
    transform-origin: -150px 0;
}

.node-3 {
    bottom: 0;
    left: 50%;
    animation: orbit3 10s linear infinite;
    transform-origin: 0 -150px;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 20px var(--accent-purple);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 60px var(--accent-cyan);
    }
}

@keyframes orbit1 {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes orbit2 {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes orbit3 {
    100% {
        transform: rotate(360deg);
    }
}


/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-box {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 3rem;
    font-family: var(--font-heading);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-surface);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    background: var(--bg-surface-hover);
}

.skill-category {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    font-size: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(139, 92, 246, 0.1);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-content {
    background: var(--bg-surface);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateX(10px);
    border-left: 2px solid var(--accent-purple);
}

.timeline-role {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.timeline-company {
    color: var(--accent-cyan);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-duration {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.timeline-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-surface);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-pill {
    font-size: 0.8rem;
    color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

/* AI Tools & Websites (Similar Grid to Projects) */
.tools-grid,
.websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
}

.cert-title {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    margin: 1rem 0 0.5rem;
}

.cert-issuer {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Collaboration Box */
.collab-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(0, 240, 255, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.collab-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.collab-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Footer / Contact */
.site-footer {
    display: block;
    clear: both;
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 200px;
    padding: 4rem 0 2rem;
    background: var(--bg-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-cta {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.social-networks {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-btn {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.social-btn:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

/* Animations & Utilities */
.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    transition: background 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .top-contact-bar {
        display: none;
        /* Hide on mobile so it doesn't break the fixed navbar */
    }

    .navbar {
        top: 0;
        padding: 1rem 1.5rem;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }

    .hero-content {
        width: 100%;
    }

    .hero-graphic {
        display: flex;
        margin-top: 3rem;
        transform: scale(1);
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .profile-img-container {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }

    .profile-img {
        width: 90%;
        height: 90%;
    }

    .orbit {
        display: none;
        /* Hide the orbit on mobile to save space and prevent horizontal overflow/cropping */
    }

    .cta-buttons {
        justify-content: center;
    }

    .title {
        font-size: 3rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        /* Hide off screen initially */
        width: 60%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 2rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}