@import url(https://fonts.bunny.net/css?family=inria-sans:400|inria-serif:700);

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

body {
    font-family: 'Inria Sans', sans-serif;
    background: white;
    color: #000;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Inria Serif', serif;
    font-weight: 700;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   Global Centering Fix
========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;                 /* ALWAYS centered */
    padding-inline: 24px;
}

/* =========================
   Hero Section
========================= */
.hero {
    position: relative;
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 24px;
}

.hero-content {
    text-align: center;
    max-width: 768px;
    position: relative;
    z-index: 10;
}

.hero h1 {
    font-size: clamp(42px, 10vw, 96px);
    margin-bottom: 24px;
}

.tagline {
    font-size: clamp(18px, 3vw, 20px);
    margin-bottom: 32px;
    padding: 0 8px;
}

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.social-btn {
    background: #000;
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: background 0.3s;
    font-weight: 700;
    font-size: 18px;
}

.social-btn:hover {
    background: #333;
}

.arrow-icon {
    width: 18px;
    height: 18px;
}

/* Decorative Hero Images */
.hero-image {
    position: absolute;
    pointer-events: none;
}

.computer-image {
    left: 140px;
    bottom: 131px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    opacity: 0.8;
    transform: rotate(-20deg);
}

.bulb-image {
    right: 140px;
    top: 131px;
    width: 254px;
    height: 254px;
    border-radius: 50%;
    opacity: 0.8;
    transform: rotate(-10deg);
}

/* =========================
   About Section
========================= */
.about {
    background: #f2f2f2;
    padding: 64px 24px;
}

.about h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 48px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

.about-text p {
    font-size: 18px;
    line-height: 1.7;
}

.about-images {
    display: none;
}

/* =========================
   Experience Section
========================= */
.experience {
    padding: 80px 24px;
}

.experience h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 16px;
}

.section-intro {
    font-size: 18px;
    text-align: center;
    max-width: 672px;
    margin: 0 auto 64px;
}

.timeline {
    max-width: 896px;      /* prevents drifting */
    margin: 0 auto;
}

.timeline-divider {
    border-top: 1px solid #555;
    padding-top: 24px;
    margin-bottom: 32px;
}

.experience-card {
    background: #f2f2f2;
    border-radius: 32px;
    padding: 24px;
    margin-bottom: 48px;
}

.experience-card h3 {
    font-size: 24px;
    margin-bottom: 6px;
}

.experience-card .date {
    font-size: 16px;
    color: #555;
    margin-bottom: 12px;
}

.experience-card .description {
    font-size: 18px;
    line-height: 1.6;
}

.school {
    width: 100%;
    text-align: center;
    font-size: 16px;
    color: #555;
}

/* =========================
   Projects Section
========================= */
.projects {
    background: #f2f2f2;
    padding: 80px 24px;
    text-align: center;
}

.projects h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    max-width: 1200px;     /* key centering fix */
    margin: 0 auto;
}

.project-link {
    all: unset;
    display: block;
    cursor: pointer;
}

.project-card {
    background: white;
    border-radius: 50%;
    aspect-ratio: 1;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease;
}

.project-link:hover .project-card {
    background-color: #f7f6f6;
}

.project-card p {
    font-size: 18px;
    line-height: 1.6;
}

/* Highlight Colors */
.highlight { font-weight: 700; }
.highlight.red { color: #ff4268; }
.highlight.yellow { color: #7442ff; }
.highlight.purple { color: #ff42f6; }
.highlight.orange { color: #ffa468; }

.highlight.gradient-blue {
    background: linear-gradient(to bottom, #3986ff, #322e90);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight.gradient-teal {
    background: linear-gradient(to bottom, #00cca4, #00b8cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================
   Footer
========================= */
footer {
    background: white;
    padding: 48px 24px;
    border-top: 1px solid #e5e5e5;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-name {
    font-weight: 700;
    font-size: 18px;
}

/* =========================
   Tablet (≥768px)
========================= */
@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
    }

    .about-images {
        display: block;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* =========================
   Desktop (≥1024px)
   — same visual width, better centering —
========================= */
@media (min-width: 1024px) {
    .container {
        padding-inline: 140px;   /* recreates your original look */
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================
   Small Phones (≤480px)
========================= */
@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
        padding: 64px 16px;
    }

    .hero-image {
        display: none;
    }

    .social-btn {
        font-size: 16px;
        padding: 6px 14px;
    }

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

    .project-card {
        padding: 24px;
    }
}
