/* ========================================================
   SAHIL MOHAMED SAKEER | CIVIL ENGINEER & PMP SCHEDULER
   Theme: Heavy Infrastructure & Mega-Project Data
   Fonts: Oswald (Headers), Inter (Body)
   Colors: High-Vis Yellow, Asphalt Dark, Concrete Gray
   ======================================================== */

:root {
    /* Colors */
    --bg-main: #ffffff;
    --bg-light: #f4f5f7;
    /* Concrete */
    --bg-dark: #121212;
    /* Asphalt Black */
    --bg-card: #1e1e1e;
    /* Dark Card */

    --color-primary: #1a365d;
    /* Blueprint Navy */
    --color-accent: #FFb300;
    /* Construction/Warning Yellow */
    --color-accent-hover: #ff9800;

    --text-dark: #121212;
    --text-body: #4a5568;
    --text-light: #f8fafc;
    --text-muted: #a0aec0;

    --border-light: #e2e8f0;
    --border-dark: #2d3748;

    /* Typography */
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Utilities */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    --radius-sm: 2px;
    /* Harder corners for an industrial look */
    --radius-md: 4px;
    --radius-lg: 8px;
}

/* === GENERAL Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-head);
    color: var(--text-dark);
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Background Blueprint Grid */
.blueprint-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.04;
    background-image: linear-gradient(var(--color-primary) 1px, transparent 1px), linear-gradient(90deg, var(--color-primary) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
    border-top: 2px solid var(--border-light);
    border-bottom: 2px solid var(--border-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
    border-top: 4px solid var(--color-accent);
}

.text-center {
    text-align: center;
}

.text-white h2,
.text-white h3,
.text-white h4,
.text-white p {
    color: var(--text-light);
}

.text-yellow {
    color: var(--color-accent) !important;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2.5rem;
}

/* Highlight Text */
.bg-yellow {
    background-color: var(--color-accent);
    color: var(--bg-dark);
    padding: 0 8px;
    font-weight: 700;
    display: inline-block;
    transform: skew(-5deg);
    margin: 0 4px;
}

.bg-yellow-soft {
    background-color: rgba(255, 179, 0, 0.1);
    color: var(--color-accent);
}

.bg-blue-soft {
    background-color: rgba(26, 54, 93, 0.1);
    color: var(--color-primary);
}

.bg-green-soft {
    background-color: rgba(63, 185, 80, 0.1);
    color: #2ea043;
}

.bg-orange-soft {
    background-color: rgba(242, 113, 33, 0.1);
    color: #f27121;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-head);
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--bg-dark);
    font-weight: 700;
    box-shadow: 0 4px 0 #d49500;
    border: 2px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(2px);
    box-shadow: 0 2px 0 #b37e00;
}

.btn-outline {
    border: 2px solid var(--border-dark);
    color: var(--text-dark);
    background: transparent;
    font-weight: 700;
}

.btn-outline:hover {
    background-color: var(--text-dark);
    color: #fff;
    border-color: var(--text-dark);
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    padding: 20px 0;
    background: var(--bg-main);
    border-bottom: 2px solid var(--color-accent);
}

.navbar.scrolled {
    padding: 12px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: baseline;
    gap: 8px;
    letter-spacing: 1px;
}

.logo-mark {
    background: var(--color-primary);
    color: #fff;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--text-body);
    transition: var(--transition);
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.nav-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    box-shadow: none;
    border-width: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    z-index: 101;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border-top: 4px solid var(--color-accent);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: var(--font-head);
    font-size: 2rem;
    color: #fff;
    letter-spacing: 2px;
}

.mobile-menu a:hover {
    color: var(--color-accent);
}

/* === HEADINGS === */
.section-head {
    margin-bottom: 4rem;
}

.sub-heading {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.main-heading {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    line-height: 1.1;
}

.section-lead {
    font-size: 1.15rem;
    color: var(--text-body);
    max-width: 600px;
}

.section-head.text-center .section-lead {
    margin: 0 auto;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--color-primary);
    background: rgba(26, 54, 93, 0.1);
    padding: 8px 16px;
    border: 1px solid rgba(26, 54, 93, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 40px;
    max-width: 540px;
}

/* Data Ribbon */
.data-ribbon {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.data-block h3 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1;
    text-transform: none;
}

.data-block p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.3;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-divider {
    width: 4px;
    height: 40px;
    background-color: var(--color-accent);
    transform: skew(-15deg);
}

.p6-stat h3 {
    color: var(--color-primary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-frame {
    position: relative;
    width: 340px;
    height: 440px;
    z-index: 2;
}

.frame-border {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    z-index: 0;
}

.profile-img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    z-index: 2;
    box-shadow: var(--shadow-lg);
    filter: saturate(1.1) contrast(1.1);
}

.overlay-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.4), transparent);
    z-index: 3;
    pointer-events: none;
    border-radius: var(--radius-sm);
}

/* Badges */
.stat-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-main);
    padding: 12px 20px;
    border: 2px solid var(--border-light);
    border-left: 4px solid var(--color-accent);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    letter-spacing: 1px;
    box-shadow: var(--shadow-md);
    z-index: 4;
}

.stat-badge svg {
    width: 20px;
    height: 20px;
}

.sb-1 {
    top: 10%;
    right: -20%;
}

.sb-2 {
    bottom: 15%;
    left: -25%;
    border-left-color: var(--color-primary);
}

/* === SKILLS GRID (KPIs) === */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.skill-card {
    background: var(--bg-main);
    padding: 40px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.skill-card:hover {
    border-top-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.s-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.s-icon svg {
    width: 24px;
    height: 24px;
}

.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.skill-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-body);
}

/* === EXPERIENCE TIMELINE === */
.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--border-light);
    z-index: 0;
}

.tl-item {
    position: relative;
    padding-left: 60px;
    padding-bottom: 60px;
    z-index: 1;
}

.tl-last {
    padding-bottom: 0;
}

.tl-marker {
    position: absolute;
    left: 8px;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--color-accent);
    border: 4px solid var(--bg-main);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--color-accent);
}

.marker-dark {
    background: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary);
}

.neom-highlight .tl-marker {
    animation: pulseWarning 2s infinite;
}

@keyframes pulseWarning {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 179, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 179, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 179, 0, 0);
    }
}

.tl-content {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.neom-highlight .tl-content {
    background: var(--bg-main);
    border-color: var(--color-accent);
    border-top-width: 4px;
    box-shadow: var(--shadow-md);
}

.tl-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.tl-header h3 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.tl-header h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary);
    text-transform: none;
}

.tl-date {
    font-family: var(--font-head);
    font-size: 1.1rem;
    background: var(--text-dark);
    color: #fff;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    letter-spacing: 1px;
}

.tl-bullets {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tl-bullets li {
    position: relative;
    padding-left: 24px;
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.6;
}

.tl-bullets li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 1.2rem;
    line-height: 1.4;
}

.tl-bullets strong {
    color: var(--text-dark);
    font-weight: 700;
}

/* === MEGA PROJECTS & CREDENTIALS (SPLIT GRID) === */
.split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.proj-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-left: 4px solid var(--color-primary);
    padding: 30px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.top-tier {
    border-left-color: var(--color-accent);
    background: rgba(255, 179, 0, 0.05);
}

.p-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 8px;
}

.p-val {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.p-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Stack Panel */
.col-stack {
    padding-top: 104px;
}

/* Aligns with headers */
.cred-box {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    padding: 30px;
    border-radius: var(--radius-sm);
}

.bg-yellow-box {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.bg-yellow-box h3 {
    color: var(--bg-dark);
}

.cred-box h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 12px;
}

.bg-yellow-box h3 {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.cred-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cred-list li {
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.c-check {
    color: var(--color-accent);
    font-weight: 900;
}

.cred-list strong {
    color: var(--color-accent);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    padding: 6px 14px;
    font-family: var(--font-head);
    font-size: 1rem;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
}

.dark-tags span {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
    color: var(--color-accent);
}

/* === FOOTER === */
.footer {
    border-top: 4px solid var(--color-accent);
    padding: 80px 0 30px;
    background: var(--bg-dark);
    color: #fff;
}

.footer-interior {
    text-align: center;
    margin-bottom: 60px;
}

.footer-cta h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 16px;
}

.footer-cta p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.c-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    padding: 16px 30px;
    font-family: var(--font-head);
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.c-card svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.c-card:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-4px);
}

.credentials-bar {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-family: var(--font-head);
    font-size: 1rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    justify-content: center;
}

.dot {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === ANIMATIONS === */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-desc {
        margin: 0 auto 40px;
    }

    .data-ribbon {
        justify-content: center;
    }

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

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

    .col-stack {
        padding-top: 0;
    }

    .tl-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-btn {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3rem);
    }

    .hero-visual {
        height: 450px;
    }

    .image-frame {
        width: 300px;
        height: 400px;
    }

    .stat-badge {
        display: none;
    }

    .data-ribbon {
        flex-direction: column;
        gap: 20px;
        border: 1px solid var(--border-light);
        padding: 30px;
        border-radius: var(--radius-sm);
        width: 100%;
    }

    .data-divider {
        width: 100%;
        height: 2px;
        transform: none;
        background: var(--border-light);
    }

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

    .timeline-container::before {
        left: 16px;
    }

    .tl-item {
        padding-left: 48px;
    }

    .tl-marker {
        left: 4px;
    }

    .contact-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .c-card {
        justify-content: center;
    }
}