/* ========== GOOGLE FONT ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ========== BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    color: #1f2937;
    line-height: 1.6;
}

/* Center content on large screens */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ========== NAVBAR ========== */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.navbar,
.navbar nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e3a8a;
}

.navbar nav a {
    color: #4b5563;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: #2563eb;
}

/* ========== HERO (HOME) ========== */
.hero {
    background: linear-gradient(135deg, #dbeafe, #eff6ff);
    padding: 80px 20px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 40px;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
    gap: 40px;
    align-items: center;
}

.hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2563eb;
    margin-bottom: 8px;
}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1e3a8a;
}

.hero h1 .accent {
    color: #2563eb;
}

.hero-desc {
    margin-top: 12px;
    color: #475569;
    max-width: 600px;
}

.hero-actions {
    margin-top: 28px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn.primary {
    background: #2563eb;
    color: white;
}

.btn.primary:hover {
    background: #1d4ed8;
}

.btn.ghost {
    border: 2px solid #2563eb;
    color: #2563eb;
}

.btn.ghost:hover {
    background: #dbeafe;
}

/* Hero side card */
.hero-card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.hero-card h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e3a8a;
}

.hero-card p {
    font-size: 0.95rem;
    color: #475569;
}

/* ========== FIXED PROFILE PHOTO SECTION ========== */

/* REAL PROFILE PHOTO */
.profile-photo-card {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: 0.25s ease;
}

.profile-photo-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

/* OLD BLUE CIRCLE (KEPT FOR RIGHT CARD ONLY) */
.hero-circle {
    width: 90px;
    height: 90px;
    border-radius: 999px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

/* REMOVE OLD BROKEN CLASS */
.profile-photo {
    display: none;
}

.profile-location {
    margin-top: 6px;
    color: #64748b;
}

/* ========== SECTIONS ========== */
.section {
    margin-top: 40px;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1e3a8a;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-top: 6px;
    margin-bottom: 30px;
}

/* ========== PAGE LAYOUT (OTHER PAGES) ========== */
.page {
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.page-intro {
    color: #64748b;
    margin-bottom: 24px;
    max-width: 700px;
}

/* ========== CARD GRID (HOME, CV, PROJECTS) ========== */
.card-grid,
.cv-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card,
.cv-card,
.project-card {
    background: white;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.2s ease;
}

.card:hover,
.cv-card:hover,
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

.card h3,
.cv-card h2,
.project-card h2 {
    margin-bottom: 10px;
    color: #1e3a8a;
}

.card p,
.project-card p {
    color: #475569;
}

.card-link {
    display: inline-block;
    margin-top: 10px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

/* ========== ABOUT BLOCKS (HOME + about.html) ========== */
.about-layout,
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.about-block {
    background: white;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.about-block h3,
.split h2 {
    margin-bottom: 10px;
    color: #1e3a8a;
}

.about-block p,
.split p {
    color: #475569;
}

/* ========== PILLS (about.html) ========== */
.pill-section {
    margin-top: 30px;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.pill {
    padding: 6px 14px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========== SKILLS ========== */
.skills-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skill-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 6px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    animation: growBar 1.2s ease-out;
}

/* ========== TIMELINE ========== */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    border-left: 2px solid #e5e7eb;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2563eb;
    position: absolute;
    left: -6px;
    top: 4px;
}

.timeline-content h3 {
    font-size: 1rem;
    color: #1e3a8a;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #475569;
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.gallery-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 16px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    font-weight: 500;
    color: #1e3a8a;
}

/* ========== CV LISTS ========== */
.cv-card ul {
    margin-left: 18px;
    color: #475569;
}

/* ========== DOCUMENTS PAGE ========== */
.doc-list {
    margin-top: 16px;
    margin-left: 18px;
    line-height: 1.7;
    color: #475569;
}

.upload-box {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
}

.upload-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px dashed #2563eb;
    color: #2563eb;
    cursor: pointer;
    font-size: 0.95rem;
}

.upload-input {
    display: none;
}

.upload-info {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #64748b;
}

/* ========== CONTACT PAGE (OLD SIMPLE BOX) ========== */
.contact-box {
    background: white;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    color: #475569;
}

.contact-box a {
    color: #2563eb;
    text-decoration: none;
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid #e5e7eb;
}

.footer-social {
    margin-top: 8px;
}

.footer-social a {
    color: #64748b;
    margin: 0 6px;
    font-size: 1.1rem;
    text-decoration: none;
}

.footer-social a:hover {
    color: #2563eb;
}

/* ========== ANIMATIONS ========== */
.card,
.cv-card,
.project-card,
.about-block,
.gallery-item,
.skill-item,
.timeline-item,
.upload-box,
.contact-box {
    opacity: 0;
    transform: translateY(6px);
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes growBar {
    from { width: 0; }
    to { width: 100%; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 800px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .navbar,
    .navbar nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .navbar nav a {
        margin-left: 12px;
        font-size: 0.9rem;
    }
}

/* ========================================================= */
/* ========== NEW CONTACT PAGE (PROFESSIONAL LAYOUT) ======== */
/* ========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-top: 20px;
}

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* CONTACT CARD */
.contact-card {
    background: white;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
}

.contact-photo {
    width: 90px;
    height: 90px;
    border-radius: 999px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
}

.contact-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e3a8a;
}

.contact-role {
    color: #475569;
    margin-bottom: 16px;
}

.contact-info p {
    margin: 6px 0;
    color: #475569;
}

.contact-social {
    margin-top: 12px;
}

.contact-social a {
    margin: 0 6px;
    font-size: 1.2rem;
    color: #2563eb;
    text-decoration: none;
}

.contact-social a:hover {
    color: #1d4ed8;
}

/* CONTACT FORM */
.contact-form-box {
    background: white;
    border-radius: 14px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.contact-form-box h2 {
    color: #1e3a8a;
    margin-bottom: 16px;
}

.contact-form label {
    font-size: 0.9rem;
    color: #475569;
    margin-top: 10px;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.95rem;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

/* MAP PREVIEW */
.map-preview {
    margin-top: 50px;
}

.map-preview h2 {
    color: #1e3a8a;
    margin-bottom: 10px;
}

.map-box {
    background: white;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
}

/* CTA SECTION */
.cta-section {
    margin-top: 60px;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.8rem;
    color: #1e3a8a;
}

.cta-section p {
    max-width: 600px;
    margin: 10px auto 20px;
    color:
