/* =========================================
   1. DESIGN SYSTEM & VARIABLES
   ========================================= */
:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);

    --text-main: #ffffff;
    --text-muted: #a0a0a0;

    --accent-cyan: #00f3ff;
    --accent-violet: #bc13fe;
    --accent-magenta: #ff0055;

    --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
    --gradient-glow: radial-gradient(circle at center, rgba(188, 19, 254, 0.15), transparent 70%);

    /* Borders & Shadows */
    --border-light: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 243, 255, 0.5);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 20px rgba(0, 243, 255, 0.2);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Animation */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --transition: all 0.4s var(--ease-out);
}

/* =========================================
   2. RESET & GLOBAL STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(188, 19, 254, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 243, 255, 0.05), transparent 25%);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    letter-spacing: -1px;
}

.accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* =========================================
   3. COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan));
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

/* =========================================
   4. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 15px 30px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    color: var(--text-main) !important;
}

.btn-nav:hover {
    background: var(--accent-violet);
    border-color: var(--accent-violet);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.4);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 100px;
    overflow: hidden;
}

/* Background Glows */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, transparent 70%);
    z-index: -1;
    filter: blur(50px);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.glitch {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    position: relative;
    color: var(--text-main);
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 30px;
}

.tagline .dot {
    color: var(--accent-violet);
    margin: 0 10px;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 20px;
}

/* Hero Visual & Avatar */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.avatar-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.avatar img {
    width: 110%;
    /* zoom OUT */
    height: 110%;
    object-fit: cover;
    object-position: center top;
    /* move image slightly down */
    border-radius: 50%;
}


.avatar:hover img {
    transform: scale(1.05);
}

/* Orbit Animation */
.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.05);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.orbit-1 {
    width: 380px;
    height: 380px;
    border-color: rgba(0, 243, 255, 0.2);
    animation: spin 20s linear infinite;
}

.orbit-1::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -3px;
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan);
}

.orbit-2 {
    width: 480px;
    height: 480px;
    border-color: rgba(188, 19, 254, 0.2);
    animation: spin 30s linear infinite reverse;
}

.orbit-2::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent-violet);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-violet);
}

.orbit-3 {
    width: 580px;
    height: 580px;
    border-color: rgba(255, 255, 255, 0.05);
    animation: spin 40s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* =========================================
   6. ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-card);
}

.about-card:hover::after {
    opacity: 1;
}

.about-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: var(--text-main);
}

.about-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.about-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags li {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    transition: var(--transition);
}

.tags li:hover {
    background: rgba(0, 243, 255, 0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* =========================================
   7. SKILLS SECTION
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 30px;
    border-radius: 24px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--accent-violet);
    transform: translateY(-5px);
}

.skill-category h3 {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
}

.skill-category h3 i {
    color: var(--accent-cyan);
}

.skill-item {
    margin-bottom: 18px;
}

.skill-item span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 10px;
    background: white;
    box-shadow: 0 0 10px white;
    opacity: 0.5;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.skill-badge:hover {
    background: rgba(188, 19, 254, 0.1);
    border-color: var(--accent-violet);
    color: var(--text-main);
}

/* =========================================
   8. PROJECTS SECTION
   ========================================= */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-cyan);
    color: #000;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-violet);
    box-shadow: var(--shadow-card);
}

.project-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.ai-bg {
    background: linear-gradient(45deg, #2b1055, #7597de);
}

.web-bg {
    background: linear-gradient(45deg, #000428, #004e92);
}

.project-card:hover .placeholder-img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .overlay {
    opacity: 1;
}

.icon-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-size: 1.2rem;
    transition: var(--transition);
}

.icon-link:hover {
    background: var(--accent-cyan);
    transform: scale(1.1) rotate(10deg);
}

.project-info {
    padding: 30px;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.tech-stack {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.project-info .description {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* =========================================
   9. EXPERIENCE TIMELINE
   ========================================= */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-violet), transparent);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 4px solid var(--accent-violet);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-violet);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--accent-violet);
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.timeline-date {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 50px;
}

/* =========================================
   10. ACHIEVEMENTS
   ========================================= */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 40px 20px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.achievement-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.achievement-card .icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.3));
}

.achievement-card .year {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* =========================================
   11. CONTACT
   ========================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    background: var(--bg-card);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid var(--border-light);
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
    padding: 15px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: translateX(10px);
}

.contact-link i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-violet);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

/* =========================================
   12. FOOTER
   ========================================= */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    margin-top: 100px;
}

.made-with i {
    color: var(--accent-magenta);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* =========================================
   13. RESPONSIVE
   ========================================= */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .cta-group {
        justify-content: center;
    }

    .description {
        margin: 0 auto 40px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 100%;
        top: 0;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--bg-dark);
        flex-direction: column;
        overflow: hidden;
        transition: var(--transition);
        padding: 0;
    }

    .nav-links.active {
        height: 100vh;
        padding: 40px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .section-title {
        font-size: 2.2rem;
    }

    .glitch {
        font-size: 3rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 10px !important;
    }
}