/* Reset and Roots */
:root {
    /* Color Palette - Premium Dark Theme */
    --bg-dark: #050505;
    --bg-surface: #111114;
    --bg-surface-light: rgba(255, 255, 255, 0.03);

    --text-primary: #ededed;
    --text-secondary: #a1a1aa;

    /* Neon Accents */
    --accent-blue: #00f2fe;
    --accent-purple: #4facfe;
    --accent-glow: rgba(0, 242, 254, 0.2);
    --accent-glow-strong: rgba(79, 172, 254, 0.4);

    /* UI Values */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 242, 254, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-container {
    padding: var(--section-padding);
}

.highlight-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--bg-surface-light);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-4px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.logo-text span {
    color: var(--accent-purple);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-blue) !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: drift 20s infinite alternate;
}

.sphere-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: -100px;
    left: -100px;
}

.sphere-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-purple);
    bottom: 20%;
    right: -50px;
    animation-delay: -5s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 70%);
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid var(--accent-glow-strong);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 242, 254, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 32px;
    min-height: 40px;
}

.cursor {
    color: var(--accent-blue);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #000;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--accent-glow-strong);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.tech-stack-row {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tech-stack-row i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.tech-stack-row i:hover {
    color: var(--accent-blue);
}

/* Sections Structure */
.section-header {
    margin-bottom: 64px;
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--accent-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.about-card {
    padding: 32px 24px;
    text-align: center;
}

.about-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 16px;
}

.about-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.about-card p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.about-sub {
    font-size: 0.9rem !important;
    color: #666 !important;
    margin-top: 4px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.skill-category {
    padding: 32px;
}

.highlight-panel {
    border-color: rgba(0, 242, 254, 0.2);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.05) inset;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.skill-category-header i {
    font-size: 1.5rem;
    color: var(--accent-blue);
    background: rgba(0, 242, 254, 0.1);
    padding: 12px;
    border-radius: var(--radius-sm);
}

.skill-category h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.ai-tag {
    background: rgba(79, 172, 254, 0.1);
    border-color: rgba(79, 172, 254, 0.3);
    color: #bde0fe;
}

.tag:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.ai-tag:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* Timeline/Experience */
.timeline {
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
}

.timeline-item {
    position: relative;
    padding: 32px;
    margin-bottom: 32px;
}

.timeline-dot {
    position: absolute;
    left: -29px;
    top: 36px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.timeline-company {
    font-weight: 400;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    font-size: 0.8rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-purple);
    font-weight: 500;
    border: 1px solid var(--accent-purple);
    padding: 4px 12px;
    border-radius: 20px;
}

.timeline-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.timeline-responsibilities h4 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.timeline-responsibilities ul {
    list-style: none;
}

.timeline-responsibilities li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.timeline-responsibilities li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

.timeline-responsibilities li strong {
    color: var(--text-primary);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.project-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.project-icon-wrapper {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-icon {
    font-size: 1.8rem;
    color: var(--text-primary);
    z-index: 2;
}

.project-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-blue);
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover .project-glow {
    opacity: 0.2;
}

.project-card:hover .project-icon {
    color: var(--accent-blue);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.project-meta {
    font-size: 0.9rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.project-arch {
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.project-arch h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.arch-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    color: #00f2fe;
}

.arch-flow i {
    color: rgba(255, 255, 255, 0.3);
}

.project-highlights {
    flex-grow: 1;
    margin-bottom: 24px;
}

.project-highlights ul {
    list-style: none;
}

.project-highlights li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.project-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

/* Footer / Contact */
.contact {
    margin-top: 64px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    padding: 80px 0 40px;
    background: linear-gradient(to top, rgba(0, 242, 254, 0.05), transparent);
}

.footer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
}

.contact-item i {
    color: var(--accent-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.designer {
    font-family: monospace;
    color: rgba(255, 255, 255, 0.4);
}

/* Animations Trigger Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

    .timeline-header {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple mobile handling */
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5em;
    }

    .section-padding {
        padding: 60px 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}