/* CSS Variables */
:root {
    --bg-color: #050510;
    --glass-bg: rgba(16, 18, 27, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --text-primary: #f8f9fa;
    --text-secondary: #a0aabf;

    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --accent-glow: rgba(0, 240, 255, 0.4);

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

    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 500;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dot {
    color: var(--accent-primary);
}

section {
    position: relative;
    z-index: 10;
}

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

/* Dynamic Background Elements */
#blob {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    height: clamp(300px, 40vw, 500px);
    width: clamp(300px, 40vw, 500px);
    position: fixed;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    animation: rotate 20s infinite linear;
    filter: blur(150px);
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
}

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

    50% {
        transform: rotate(180deg) scale(1.2) stretch;
    }

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

#blur {
    height: 100vh;
    width: 100vw;
    position: fixed;
    z-index: 1;
    backdrop-filter: blur(80px);
    -webkit-backdrop-filter: blur(80px);
    pointer-events: none;
    top: 0;
    left: 0;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    z-index: 100;
    background: rgba(5, 5, 16, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-normal);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-normal);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-gradient);
    transition: var(--transition-normal);
}

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

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-normal);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #000;
    border: none;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-glass {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 100px;
    /* Offset for fixed nav */
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.glass-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    margin-bottom: 25px;
}

.hero-title {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: clamp(20px, 3vw, 32px);
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 25px;
}

.hero-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tech-stack-preview {
    width: 100%;
    max-width: 450px;
    padding: 0;
    overflow: hidden;
    background: rgba(10, 15, 30, 0.6);
}

.window-controls {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f56;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #27c93f;
}

.tech-stack-preview pre {
    padding: 25px;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    overflow-x: auto;
}

.tech-stack-preview .keyword {
    color: #ff7b72;
}

.tech-stack-preview .variable {
    color: #79c0ff;
}

.tech-stack-preview .string {
    color: #a5d6ff;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
}

.section-badge {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 300;
    color: var(--accent-primary);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.about-card {
    padding: 40px;
}

.about-text {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.skill-card {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.skill-icon {
    font-size: 24px;
    color: var(--accent-primary);
    margin-bottom: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 12px;
}

.skill-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.skill-tags li {
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 12px;
    border-radius: 20px;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.skill-card:hover .skill-tags li {
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 70px;
}

.timeline-dot {
    position: absolute;
    left: 23px;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 2;
    transition: var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-primary);
}

.timeline-content {
    padding: 30px;
}

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

.timeline-header h3 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.timeline-header h4 {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-date {
    font-size: 14px;
    color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.experience-list {
    list-style-type: disc;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 15px;
}

.experience-list li {
    margin-bottom: 10px;
}

.experience-list li:last-child {
    margin-bottom: 0;
}

/* Education Section */
.education-card {
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.edu-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent-primary);
}

.edu-details h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.edu-details h4 {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 400;
}

.edu-date {
    font-size: 14px;
    color: var(--accent-secondary);
    font-weight: 500;
}

/* Footer */
.glass-footer {
    margin-top: 100px;
    padding: 40px 5%;
    background: rgba(5, 5, 16, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.fa-heart {
    color: #ff5f56;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--accent-gradient);
    color: #000;
    border-color: transparent;
    transform: translateY(-3px);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.scroll-delay-1 {
    transition-delay: 0.2s;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 150px;
    }

    .hero-actions {
        justify-content: center;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 12px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 16, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .stats-row {
        justify-content: center;
    }

    .education-card {
        flex-direction: column;
        text-align: center;
    }
}