/* ================= GLOBAL ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8fafc;
    color: #111827;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

section {
    margin-bottom: 80px;
}

h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #0f172a;
    position: relative;
    display: inline-block;
}

h3::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #e11d48, #f97316);
    border-radius: 2px;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    color: #e11d48;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e11d48;
    transition: width 0.25s;
}

.nav-links a:hover {
    color: #e11d48;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 2.5px;
    background: #0f172a;
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================= HERO ================= */
.hero {
    display: flex;
    gap: 50px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 50px;
    border-radius: 20px;
    align-items: center;
    color: #ffffff;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.15), transparent);
    border-radius: 50%;
}

.hero-left img {
    width: 200px;
    height: 200px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-left img:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.hero-right {
    position: relative;
    z-index: 1;
}

.hero-right h1 {
    font-size: 40px;
    background: linear-gradient(90deg, #ffffff, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-right h2 {
    font-weight: 400;
    color: #94a3b8;
    margin: 8px 0;
    min-height: 30px;
    font-size: 18px;
}

#typing::after {
    content: '|';
    animation: blink 0.7s step-end infinite;
    color: #e11d48;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-right p {
    margin: 18px 0;
    line-height: 1.7;
    color: #cbd5e1;
    max-width: 650px;
    font-size: 15px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #ffffff;
    padding: 13px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: #e11d48;
    background: rgba(225, 29, 72, 0.1);
    box-shadow: none;
}

/* ================= ABOUT ================= */
.about-content {
    background: #ffffff;
    padding: 36px 40px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
}

.about-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    gap: 30px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #e11d48, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* ================= SKILLS ================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

a.skill-card {
    text-decoration: none;
    color: inherit;
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #f1f5f9;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
    border-color: #e11d48;
}

.skill-icon {
    font-size: 22px;
    flex-shrink: 0;
}

/* ================= ACHIEVEMENTS ================= */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.achievement-card {
    background: #ffffff;
    padding: 28px 24px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: transform 0.25s, box-shadow 0.25s;
}

.achievement-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.achievement-card h4 {
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 6px;
}

.achievement-meta {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* ================= RECOMMENDATIONS ================= */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.recommendation-card {
    background: #ffffff;
    padding: 28px 26px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: transform 0.25s, box-shadow 0.25s;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.recommendation-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e11d48, #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.recommendation-card h4 {
    font-size: 16px;
    color: #0f172a;
    margin-bottom: 10px;
}

.recommendation-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    font-style: italic;
}

.recommendation-card p::before {
    content: '\201C';
    font-size: 28px;
    color: #e11d48;
    line-height: 0;
    vertical-align: -6px;
    margin-right: 4px;
}

/* ================= TIMELINE ================= */
.timeline {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: -24px;
    width: 2px;
    background: #e2e8f0;
}

.timeline:last-child::before {
    display: none;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    background: #e11d48;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
    position: relative;
    z-index: 1;
    left: -5px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px #e11d48;
}

.timeline-content {
    background: #ffffff;
    padding: 22px 26px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    flex: 1;
    transition: transform 0.25s, box-shadow 0.25s;
}

.timeline-content:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    color: #0f172a;
    margin-bottom: 4px;
    font-size: 18px;
}

.timeline-date {
    font-size: 14px;
    color: #64748b;
    display: block;
    margin-bottom: 10px;
}

.timeline-content ul {
    padding-left: 18px;
}

.timeline-content ul li {
    line-height: 1.7;
    margin-bottom: 5px;
    color: #334155;
    font-size: 14px;
}

/* ================= PROJECTS ================= */
.filter-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.25s;
}

.filter-btn:hover {
    border-color: #e11d48;
    color: #e11d48;
}

.filter-btn.active {
    background: #e11d48;
    border-color: #e11d48;
    color: #ffffff;
}

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

.project-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e11d48, #f97316);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.project-card:hover::before {
    opacity: 1;
}

.project-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.project-card h4 {
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.4;
}

.project-sub {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    color: #64748b;
}

.project-card p {
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 14px;
}

.project-card h5 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
    color: #0f172a;
}

.project-card ul {
    padding-left: 18px;
    margin-bottom: 14px;
}

.project-card ul li {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 5px;
    color: #475569;
}

.project-tech {
    display: inline-block;
    font-size: 12px;
    color: #e11d48;
    font-weight: 600;
    background: #fef2f2;
    padding: 6px 14px;
    border-radius: 6px;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.project-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #e11d48;
    background: #fef2f2;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.project-link:hover {
    background: #e11d48;
    color: #ffffff;
}

/* ================= CONTACT ================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.contact-card {
    background: #ffffff;
    padding: 28px 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    transition: transform 0.25s, box-shadow 0.25s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.contact-card h4 {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card a,
.contact-card p {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
}

.contact-card a:hover {
    color: #e11d48;
}

/* ================= CONTACT FORM ================= */
.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    background: #ffffff;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s;
    outline: none;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #e11d48;
    background: #ffffff;
}

.contact-form .form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.contact-form input:not([type="submit"]) {
    margin-bottom: 14px;
}

.contact-form textarea {
    resize: vertical;
    margin-bottom: 16px;
}

.contact-form .btn {
    width: 100%;
    text-align: center;
    cursor: pointer;
}

@media (max-width: 600px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    color: #94a3b8;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.footer-social img {
    width: 26px;
    height: 26px;
    transition: transform 0.25s, opacity 0.25s;
    opacity: 0.6;
}

.footer-social img:hover {
    transform: scale(1.2);
    opacity: 1;
}

/* ================= BACK TO TOP ================= */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e11d48, #be123c);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    pointer-events: all;
}

#backToTop:hover {
    transform: translateY(-3px);
}

/* ================= SCROLL REVEAL ================= */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
    }

    .hero-right h1 {
        font-size: 32px;
    }

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

    h3 {
        font-size: 24px;
    }

    h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        transform: translateY(-120%);
        transition: transform 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
    }

    .hero-left img {
        width: 150px;
        height: 150px;
    }

    .grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

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

@media (max-width: 480px) {
    .container {
        padding: 20px 16px;
    }

    .hero {
        padding: 30px 18px;
    }

    .hero-right h1 {
        font-size: 26px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        text-align: center;
    }

    #backToTop {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}
