html {
  font-size: 14px;
}

body {
  font-family: 'Inter', sans-serif;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ===== Shared Page Components ===== */
.page-header {
    background: linear-gradient(90deg, #007bff, #6610f2);
    color: white;
    border-radius: 1rem;
    padding: 3rem 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.content-section {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.section-title {
    border-left: 5px solid #007bff;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-links a {
    margin: 0 0.5rem;
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s ease;
}

.contact-links a:hover {
    color: #0056b3;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    min-height: 85vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* ===== Skill Cards ===== */
.skill-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    text-align: center;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.skill-icon {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
}

/* ===== Project Cards ===== */
.project-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    border-left: 5px solid #007bff;
}

/* ===== Tech Badges ===== */
.badge-tech {
    background-color: #e8f0fe;
    color: #1a56db;
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.35em 0.75em;
    border-radius: 2rem;
    margin: 0.2rem;
    display: inline-block;
}

/* ===== PDF Viewer ===== */
.pdf-viewer {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 0.5rem;
}

/* ===== Footer ===== */
.footer {
    padding: 1.5rem 0;
    background-color: #f8f9fa;
}

/* ===== Index Page Sections ===== */
.section-featured-projects {
    background-color: #f0f4ff;
}

.section-role-teaser {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
}

/* ===== Scroll Fade Animations ===== */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* ===== Projects Page — Section Headers ===== */
.projects-section-header {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6c757d;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.company-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #e8f0fe;
    color: #1a56db;
    border-radius: 2rem;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* ===== Projects Page — Compact Grid Cards (Think Circuits) ===== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-grid-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border-top: 3px solid #007bff;
}

.project-grid-card h5 {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

/* ===== Projects Page — Image+Text Featured Cards ===== */
.project-media-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
    border-left: 4px solid #007bff;
}

.project-media-card .project-media-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.project-media-card .project-media-body {
    padding: 1.5rem;
}

/* Multi-image: two stacked images */
.project-media-card .project-media-imgs {
    display: grid;
    grid-template-rows: 1fr 1fr;
    height: 100%;
}

.project-media-card .project-media-imgs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 575px) {
    .page-header {
        padding: 1.75rem 1rem;
    }
    .page-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .project-media-card {
        grid-template-columns: 1fr;
    }
    .project-media-card .project-media-img,
    .project-media-card .project-media-imgs {
        max-height: 220px;
    }
    .project-media-card .project-media-imgs {
        grid-template-rows: 1fr;
        grid-template-columns: 1fr 1fr;
    }
}

/* Contact form honeypot: kept off-screen rather than display:none, which some bots skip */
.contact-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
