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

html {
    scroll-behavior: smooth;
    font-size: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f4f5f7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    padding: 0.6rem 0;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h2 {
    color: #1a1a1a;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.nav-logo span {
    color: #777;
    font-size: 0.8rem;
    font-weight: 400;
}

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

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ff3300;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 22px;
    height: 2px;
    background-color: #444;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ============================================
   HERO SECTION — clean white background
   ============================================ */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.15;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.highlight {
    color: #ff3300;
    background: none;
    -webkit-text-fill-color: unset;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #444;
}

.hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
    color: #555;
    line-height: 1.7;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 10px 22px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #ff3300;
    color: white;
}

.btn-primary:hover {
    background: #cc2900;
}

.btn-secondary {
    background: transparent;
    color: #444;
    border: 1.5px solid #ccc;
}

.btn-secondary:hover {
    border-color: #888;
    color: #222;
}

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #555;
    font-size: 0.85rem;
}

.contact-item i {
    color: #ff3300;
    width: 14px;
}

.contact-item a {
    color: #555;
    text-decoration: none;
}

.contact-item a:hover {
    color: #ff3300;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid #e0e0e0;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-image i {
    font-size: 5rem;
    color: #aaa;
}

/* ============================================
   SECTIONS — shared
   ============================================ */
section {
    padding: 64px 0;
}

.section-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.3px;
    position: relative;
}

.section-title::after {
    content: '';
    width: 40px;
    height: 3px;
    background: #ff3300;
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: #f4f5f7;
}

.about-text {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 0.98rem;
    margin-bottom: 1.25rem;
    color: #555;
    line-height: 1.75;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    text-align: left;
}

.highlight-item i {
    font-size: 1.4rem;
    color: #ff3300;
    flex-shrink: 0;
}

.highlight-item span {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

/* ============================================
   EXPERIENCE / TIMELINE
   ============================================ */
.experience {
    background: #ffffff;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dde2ea;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    margin-left: 72px;
}

.timeline-dot {
    position: absolute;
    left: -72px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff3300;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #ffd5cc;
    z-index: 1;
}

.timeline-content {
    background: #fafafa;
    padding: 1.5rem 1.75rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    border-left: 3px solid #ff3300;
}

.timeline-content h3 {
    color: #1a1a1a;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    color: #ff3300;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: #777;
    font-size: 0.82rem;
    font-weight: 500;
    display: block;
    margin-bottom: 0.15rem;
}

.timeline-location {
    color: #999;
    font-size: 0.82rem;
    display: block;
    margin-bottom: 0.9rem;
}

.timeline-content ul {
    list-style: none;
    padding: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    color: #555;
    line-height: 1.65;
    font-size: 0.9rem;
}

.timeline-content li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: #ff3300;
    font-size: 1rem;
    line-height: 1.65;
}

.role-summary {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    border-left: 2px solid #dde2ea;
    padding-left: 0.75rem;
}

.highlight-metric {
    background: #e6f4ea;
    color: #2e7d32;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.technologies {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    background: #fff4f2;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #444;
    border-left: 3px solid #ff3300;
}

/* ============================================
   SKILLS
   ============================================ */
.skills {
    background: #f4f5f7;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-category {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    text-align: center;
}

.skill-category h3 {
    color: #1a1a1a;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.skill-tag {
    background: #fff4f2;
    color: #ff3300;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #ffd5cc;
    transition: background 0.2s ease;
}

.skill-tag:hover {
    background: #ffd5cc;
}

/* ============================================
   EDUCATION
   ============================================ */
.education {
    background: #ffffff;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.education-item,
.certification-item {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.education-item h3 {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.education-item h4 {
    color: #ff3300;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.education-date,
.education-location {
    color: #777;
    font-size: 0.85rem;
    display: block;
}

.certification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.certification-item i {
    font-size: 2rem;
    color: #f9a825;
}

.certification-item h4 {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.contact-info p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    line-height: 1.65;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f4f5f7;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
}

.contact-method i {
    font-size: 1.1rem;
    color: #ff3300;
    width: 24px;
    text-align: center;
}

.contact-method h4 {
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.contact-method a {
    color: #ff3300;
    text-decoration: none;
    font-size: 0.85rem;
}

.contact-method a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 1.75rem;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    font-family: inherit;
    background: #fafafa;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff3300;
    background: #fff;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 2.5rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-left h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.footer-left p {
    color: #999;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #888;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #ff3300;
}

.footer-bottom {
    border-top: 1px solid #2e2e2e;
    padding-top: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.82rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        padding: 1.5rem 0;
        border-top: 1px solid #eee;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 100px 0 48px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

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

    .hero-description {
        margin: 0 auto 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-contact {
        justify-content: center;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

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

    .timeline {
        margin-left: 0;
    }

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

    .timeline-item {
        margin-left: 52px;
    }

    .timeline-dot {
        left: -52px;
    }

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

    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    section {
        padding: 48px 0;
    }

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

@media (max-width: 480px) {
    .hero {
        padding: 90px 0 40px;
    }

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

    .timeline-item {
        margin-left: 36px;
    }

    .timeline-dot {
        left: -36px;
        width: 13px;
        height: 13px;
    }

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

/* ============================================
   ANIMATIONS — subtle fade only
   ============================================ */
.section-title {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-category {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.skill-category.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-highlights .highlight-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.about-highlights .highlight-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.project-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-card.animate {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
