/* ===========================
   VARIABLES & RESET
   =========================== */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --bg-color: var(--bg-white);
    --text-color: var(--text-dark);
    --link-color: var(--primary-color);
    --footer-bg: #1e293b;
}

.light {
    --bg-color: var(--bg-white);
    --text-color: var(--text-dark);
    --link-color: var(--primary-color);
    --footer-bg: #1e293b;
}

.dark {
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-light: #93c5fd;
    --secondary-color: #94a3b8;
    --text-dark: #f8fafc;
    --text-light: #cbd5e1;
    --bg-light: #111827;
    --bg-white: #0f172a;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.45);
    --bg-color: var(--bg-white);
    --text-color: var(--text-dark);
    --link-color: #93c5fd;
    --footer-bg: #111827;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

/* ===========================
   TYPOGRAPHY
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

a:hover {
    color: var(--primary-dark);
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo:hover {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===========================
   BUTTONS
   =========================== */

.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.button-primary {
    background-color: var(--primary-color);
    color: white;
}

.button-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.button-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.button-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===========================
   SECTIONS & LAYOUT
   =========================== */

.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

main {
    background-color: var(--bg-white);
}

.section-heading {
    margin-bottom: 3rem;
    text-align: center;
}

.section-label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

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

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-top: 5rem;
}

.hero-content {
    animation: fadeInUp 0.6s ease-out;
}

.hero-eyebrow {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.hero h1 span {
    color: var(--primary-color);
}

.hero h2 {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-socials {
    display: flex;
    gap: 2rem;
}

.hero-socials a {
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.hero-socials a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about {
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-details dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.about-details dt {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.about-details dd {
    color: var(--text-light);
}

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

.projects {
    background-color: var(--bg-white);
}

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

.project-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.featured-project {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.featured-project .project-image {
    height: 100%;
}

.project-image {
    height: 250px;
    overflow: hidden;
    background-color: var(--bg-light);
}

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

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-type {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-card h3 {
    margin-bottom: 1rem;
}

.project-highlights {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-highlights li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--text-light);
}

.project-highlights li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.technology-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    list-style: none;
}

.technology-list li {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
}

.project-links a {
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.project-links a:hover {
    border-bottom-color: var(--primary-color);
}

/* ===========================
   EXPERIENCE SECTION
   =========================== */

.experience {
    background-color: var(--bg-light);
}

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

.timeline:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: flex-start;
}

.timeline-item:nth-child(even) {
    direction: rtl;
}

.timeline-item:nth-child(even) > * {
    direction: ltr;
}

.timeline-date {
    text-align: right;
    font-weight: 600;
    color: var(--primary-color);
    padding-top: 0.5rem;
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
}

.timeline-content {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 3px solid var(--primary-color);
}

.company-name {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.timeline-content li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--text-light);
}

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

/* ===========================
   SKILLS SECTION
   =========================== */

.skills {
    background-color: var(--bg-white);
}

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

.skill-category {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 0.75rem;
    border-top: 3px solid var(--primary-color);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.75rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.skill-list li:last-child {
    border-bottom: none;
}

/* ===========================
   EDUCATION SECTION
   =========================== */

.education {
    background-color: var(--bg-light);
}

.education-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    box-shadow: var(--shadow-sm);
}

.education-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.institution {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.education-details p {
    margin-bottom: 1rem;
}

/* ===========================
   INTERESTS SECTION
   =========================== */

.interests {
    background-color: var(--bg-white);
}

.interests-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.interests-list li {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.interests-list li:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

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

.contact {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-content .section-label {
    color: white;
}

.contact-content h2 {
    color: white;
}

.contact-content p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-links a {
    color: white;
    font-weight: 600;
    padding: 1rem;
    border: 2px solid white;
    border-radius: 0.5rem;
    text-align: center;
    transition: var(--transition);
}

.contact-links a:hover {
    background-color: white;
    color: var(--primary-color);
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
    background-color: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.site-footer a {
    color: var(--primary-light);
}

.site-footer a:hover {
    text-decoration: underline;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

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

    h2 {
        font-size: 1.5rem;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow-md);
    }

    .nav-links.active li a {
        display: block;
        padding: 0.75rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .featured-project {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .timeline:before {
        left: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .timeline-item:nth-child(even) {
        direction: ltr;
    }

    .timeline-date {
        text-align: left;
    }

    .timeline-item:nth-child(even) .timeline-date {
        text-align: left;
    }

    .timeline-content {
        border-left: 3px solid var(--primary-color);
        border-right: none;
        margin-left: 1rem;
    }

    .timeline-item:nth-child(even) .timeline-content {
        border-left: 3px solid var(--primary-color);
        border-right: none;
    }

    .education-card {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .section {
        padding: 2rem 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .hero-socials {
        gap: 1rem;
    }

    .project-card {
        margin-bottom: 1rem;
    }

    .interests-list {
        grid-template-columns: 1fr;
    }
}
