/* ====== CSS VARIABLES ====== */
:root {
    --color-bg: #0b1120;
    --color-bg-secondary: #0f172a;
    --color-primary: #3b82f6;
    --color-primary-glow: rgba(59, 130, 246, 0.4);
    --color-primary-dark: #2563eb;
    --color-accent: #60a5fa;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: rgba(255, 255, 255, 0.1);

    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);

    --font-main: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====== RESET & BASE ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.mt-5 {
    margin-top: 5rem;
}

/* ====== TYPOGRAPHY & UTILS ====== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px -10px var(--color-primary-glow);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary-dark);
    color: #fff;
    box-shadow: 0 4px 14px 0 var(--color-primary-glow);
}

.btn-primary:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(59, 130, 246, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-accent);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* ====== LOADER ====== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px var(--color-primary-glow));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-text);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-radius: 5px;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: rgba(37, 99, 235, 0.3);
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ====== HERO SECTION ====== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4rem;
}

.hero-text {
    flex: 1.2;
}

.greeting {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.name {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--color-primary), #8b5cf6);
    filter: blur(20px);
    opacity: 0.5;
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.95);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.7;
    }
}

.profile-img {
    width: 320px;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    border: 4px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    /* Adding subtle adjustments to match the premium dark theme */
    filter: contrast(105%) brightness(105%);
    transition: var(--transition);
}

.profile-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 20px var(--color-primary-glow);
}

/* ====== ABOUT ====== */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 2rem;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--color-text);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ====== SKILLS ====== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    padding: 2.5rem;
}

.category-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.category-title i {
    color: var(--color-primary);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skills-list li {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.05rem;
}

.skills-list i {
    color: var(--color-primary);
    font-size: 1rem;
}

/* ====== TIMELINE ====== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-border));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 70px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    font-size: 1.2rem;
    z-index: 1;
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.timeline-content {
    padding: 2rem;
}

.period {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.item-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.item-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* ====== PROJECTS ====== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
    z-index: 0;
    pointer-events: none;
}

.project-content,
.project-footer {
    position: relative;
    z-index: 1;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.folder-icon {
    font-size: 2.8rem;
    color: var(--color-primary);
}

.link-icon {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    transition: var(--transition);
}

.project-card:hover .link-icon {
    color: var(--color-text);
    transform: scale(1.1);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    transition: var(--transition);
}

.project-card:hover .project-title {
    color: var(--color-primary);
}

.project-desc {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--color-accent);
}

.tech-stack li {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
}

/* ====== FOOTER ====== */
.footer {
    background: var(--color-bg-secondary);
    padding: 5rem 0 0;
    border-top: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    border-radius: 50%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 700;
}

.footer-logo span {
    color: var(--color-primary);
}

.footer-tagline {
    color: var(--color-text-muted);
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 250px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.contact-item i {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--color-text-muted);
}

.contact-item a:hover {
    color: var(--color-text);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--color-text);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--color-primary-glow);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* ====== ANIMATIONS ====== */
.animate-reveal {
    animation: revealUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title,
.about-content,
.skill-category,
.timeline-item,
.project-card {
    opacity: 0;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
        padding-top: 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .social-links {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .name {
        font-size: 3rem;
    }

    .title {
        font-size: 1.4rem;
    }

    .profile-img {
        width: 280px;
        height: 380px;
    }

    .glow-ring {
        width: 300px;
        height: 300px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        flex-direction: column;
        background: rgba(11, 17, 32, 0.98);
        padding: 2rem;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .timeline::before {
        left: 18px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}