/* ========================================
   UTILITIES
   ======================================== */

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

section {
    padding: 8rem 0;
    position: relative;
}

.mobile-text {
    display: none;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    margin-top: 4rem;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-label {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    color: var(--violet);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--violet);
    box-shadow: 0 12px 32px var(--shadow-hover);
}

.project-icon {
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--violet);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.tag {
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.08);
    color: var(--violet);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.15);
}

.project-link {
    color: var(--violet);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 1rem;
    color: var(--violet-dark);
}

.github-cta {
    text-align: center;
    margin-top: 5rem;
    padding: 3rem 2rem;
    background: rgba(139, 92, 246, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.github-cta-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.github-cta .btn {
    display: inline-flex;
}

/* ========================================
   TIMELINE (EDUCATION)
   ======================================== */

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--violet) 0%, rgba(139, 92, 246, 0.2) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: 19px;
    top: 5px;
    width: 24px;
    height: 24px;
    background: var(--violet);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.timeline-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-period {
    color: var(--violet);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.timeline-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   PUBLICATIONS
   ======================================== */

.publication-list {
    max-width: 900px;
    margin: 0 auto;
}

.publication-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.publication-card:hover {
    transform: translateY(-8px);
    border-color: var(--violet);
    box-shadow: 0 12px 32px var(--shadow-hover);
}

.publication-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.publication-journal {
    color: var(--violet) !important;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.publication-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

#contact {
    background: var(--bg-secondary);
    margin: 0 -100vw;
    padding-left: 100vw;
    padding-right: 100vw;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    min-height: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--violet);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--violet-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 4rem;
}

.social-link {
    width: 55px;
    height: 55px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.5s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--violet);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
    border-color: var(--violet);
}

.success-message {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: 0 12px 32px var(--shadow-hover);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
    max-width: 420px;
    width: 90%;
}

.success-message.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: rgba(139, 92, 246, 0.08);
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--violet);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    animation: checkmark 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-message h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

form.form-hidden {
    opacity: 0.15;
    pointer-events: none;
    filter: blur(8px);
    transition: all 0.3s ease;
}

/* ========================================
   MOBILE RESPONSIVE - HOME PAGE
   ======================================== */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-description {
        line-height: 1.6;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    section {
        padding: 5rem 0;
    }

    #education {
        padding-bottom: 1.2rem;
    }

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

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

    .timeline-dot {
        left: 4px;
    }

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

    .github-cta {
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }

    .github-cta-text {
        margin-bottom: 1.5rem;
    }

    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: block;
    }

    .social-links {
        margin-top: 2.5rem;
    }

    .success-message {
        padding: 2rem 2rem;
        top: 40%;
    }

    .success-icon {
        width: 60px;
        height: 60px;
    }

    .success-icon svg {
        width: 32px;
        height: 32px;
    }

    .success-message h3 {
        font-size: 1.2rem;
        font-weight: 600;
        margin-bottom: 0;
    }

    .success-message p {
        display: none;
    }

    .contact-content {
        min-height: 500px;
    }
}