
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    --bg-color: #050b14;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #8b5cf6;
    --secondary: #ec4899;
    --accent: #6366f1;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-highlight: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.08);
    --tech-item-bg: rgba(30, 41, 59, 0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-text: linear-gradient(to right, #ec4899, #8b5cf6);
    --hero-overlay: linear-gradient(to bottom, rgba(5, 11, 20, 0.8), rgba(5, 11, 20, 0.9));
}

[data-theme="light"] {
    --bg-color: #f0f9ff;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.8);
    --card-hover: rgba(255, 255, 255, 0.9);
    --tech-item-bg: rgba(255, 255, 255, 0.8);
    --hero-overlay: linear-gradient(to bottom, rgba(240, 249, 255, 0.8), rgba(240, 249, 255, 0.9));
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Theme Toggle Button */
.theme-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    letter-spacing: -0.02em;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-btn:hover {
    background: var(--glass-highlight);
    transform: rotate(15deg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, var(--text-color), var(--text-muted));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
    position: relative;
    overflow: hidden;
}

/* Navigation Styles */
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

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

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    opacity: 0.8;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--text-color);
}

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

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

/* Logo Accent */
.logo-accent {
    color: var(--secondary);
    font-weight: 700;
}


.hero-content {
    padding: 8rem 0 4rem;
    max-width: 800px;
    position: relative;
    
}

.greeting {
    display: block;
    font-size: 1.2rem;
    color: #6366f1;
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 1;
    animation: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}


.floating-circle {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 50%;
    position: relative;
    margin-left: 10px;
    vertical-align: middle;
    animation: float 3s ease-in-out infinite;
}

.floating-circle .dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


.menu-btn {
    display: none;
}


.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
    border-color: var(--glass-highlight);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.glass-card:hover::before {
    transform: translateX(100%);
}

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

.project-image {
    width: 100%;
    height: 200px;
    background: #1e293b;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center center; 
    display: block;
}


.project-image img, .project-image img.center {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

.glass-card:hover .project-image {
    transform: scale(1.02);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-item {
    padding: 1rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
    color: var(--text-color);
}

.skill-item:hover {
    background: var(--glass-highlight);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}


.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


.pro-form { width: 100%; }
.pro-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.form-actions full{
  display: flex;
  justify-content: center; 
}

.pro-form .form-row { display:flex; flex-direction:column; }
.pro-form .form-row.full { grid-column: 1 / -1; }
.pro-form label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.pro-form input[type="text"],
.pro-form input[type="email"],
.pro-form textarea { width:100%; padding:0.9rem 1rem; border-radius:12px; border:1px solid var(--glass-border); background: rgba(255,255,255,0.02); color:var(--text-color); transition: var(--transition); }
.pro-form textarea { resize:vertical; min-height:120px; }
.pro-form input:focus, .pro-form textarea:focus { outline:none; border-color: var(--primary); box-shadow: 0 6px 20px rgba(99,102,241,0.08); background: rgba(255,255,255,0.03); }

.consent { display:flex; align-items:center; gap: 0.6rem; }
.consent .checkbox { display:flex; gap:0.6rem; align-items:center; cursor:pointer; }
.consent input[type="checkbox"] { width:18px; height:18px; accent-color: var(--primary); }

.form-actions { display:flex; gap:1rem; align-items:center; justify-content:flex-start; }
.form-actions .btn { padding: 0.75rem 1.25rem; border-radius: 999px; }
.btn-spinner { display: none; width:18px; height:18px; border-radius:50%; border:2px solid rgba(255,255,255,0.12); border-top-color: var(--secondary); animation: spin 0.8s linear infinite; margin-left:0.5rem; }
.form-feedback { margin-left: 0.5rem; color: var(--text-muted); font-size:0.95rem; }

@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

@media (max-width: 820px) {
    .pro-form .form-grid { grid-template-columns: 1fr; }
    .form-actions { justify-content: center; }
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}


footer {
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    background: rgba(15, 23, 42, 0.5);
}


@media (max-width: 768px) {
    .nav-content {
        padding: 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(5, 11, 20, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1001;
    }

    .bar {
        width: 30px;
        height: 3px;
        background-color: var(--text-color);
        transition: 0.3s;
    }

    .menu-btn.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

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

    .hero-content {
        padding-top: 6rem;
    }
}


@media (pointer: fine) {
    body {
        cursor: none;
    }

    .mouse-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 30px;
        height: 30px;
        border: 2px solid var(--primary);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9999;
        transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s, left 0.1s ease-out, top 0.1s ease-out;
    }

    .mouse-cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 6px;
        height: 6px;
        background-color: var(--secondary);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 10000;
    }

    .mouse-cursor.cursor-hover {
        width: 50px;
        height: 50px;
        background-color: rgba(99, 102, 241, 0.1);
        border-color: transparent;
    }

    a,
    button,
    .btn,
    .skill-item,
    .social-icon {
        cursor: none;
    }
}


.footer-center {
    display: flex;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    
}

.social-links .social-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    text-decoration: none;
    font-size: 18px;
}

.social-links .social-icon:hover {
    transform: translateY(-4px);
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
}

.social-links p.copyright {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 420px) {
    .social-links {
        gap: 1rem;
    }

    .social-links p.copyright {
        flex-basis: 100%;
        text-align: center;
        margin-top: 0.75rem;
        margin-left: 0;
    }
}

/* ----- Experience / Timeline ----- */
.experience-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem 3rem;
    align-items: stretch; /* let the timeline fill the column height */
}

.experience-grid .timeline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-grid .timeline .line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px;
    opacity: 0.85;
}

/* Draw a dot for each .exp-row and place it near the center timeline column */
.items .exp-row { position: relative; padding: 0.6rem 0; }
.items .exp-row::before {
    content: '';
    position: absolute;
    left: -40px; /* positions the dot into the timeline column */
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 6px rgba(99,102,241,0.06);
}

.experience-grid .items { display: grid; gap: 1.25rem; }
.exp-row { display: flex; }
.exp-row.left { justify-content: flex-start; }
.exp-row.right { justify-content: flex-end; }

.exp-card { max-width: 560px; padding: 1rem; }
.exp-card-inner { display:flex; gap:1rem; align-items:flex-start; }
.exp-icon img { width:36px; height:36px; object-fit:contain; filter:brightness(1) saturate(0.8); }
.exp-card h4 { margin-bottom:6px; font-size:1.05rem; }
.muted { color: var(--text-muted); font-size:0.9rem; margin-bottom:6px; }
.exp-desc { color: var(--text-muted); font-size:0.95rem; }

/* ----- Education ----- */
.education-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.edu-card { padding: 1.25rem; }
.edu-inner h4 { margin-bottom: 0.4rem; }

/* ----- Languages ----- */
.languages-row { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; justify-content: center; }
.lang-card { padding: 0.75rem 1rem; min-width: 170px; display: flex; align-items: center; justify-content: center; }
.lang-inner { display:flex; gap:0.5rem; align-items:center; justify-content:center; width:100%; text-align:center; }
.tag.small { font-size: 0.7rem; padding: 0.25rem 0.6rem; border-radius: 12px; background: rgba(99,102,241,0.12); color: var(--primary); border: 1px solid rgba(99,102,241,0.2); }

/* Small screens: stack timeline columns */
@media (max-width: 900px) {
    .experience-grid { grid-template-columns: 1fr; }
    .experience-grid .timeline .line { height: 60%; left: 24px; max-height: 560px; }
    /* Move per-row dots to the left on narrow screens so they sit on the timeline line */
    .items .exp-row::before { left: 12px; }
    .exp-row.right { justify-content: flex-start; }
    .exp-card { max-width: 100%; }
}

/* Subtitles under section headings */
.section-sub {
    text-align: center;
    color: var(--text-muted);
    max-width: 760px;
    margin: 0.5rem auto 1.25rem;
    line-height: 1.5;
}
