/* ==============================================================
   NILESH H. SHINDE | CIVIL ENGINEER PORTFOLIO
   Theme: Concrete & Steel (Industrial Project Management)
   Fonts: Oswald (Headers), Inter (Body)
   ============================================================== */

:root {
    /* Colors */
    --bg-main: #0a0e17;
    /* Deep Asphalt */
    --bg-darker: #06090e;
    /* Vantablack Slate */
    --bg-card: rgba(30, 41, 59, 0.4);
    /* Frost Concrete */

    --accent-yellow: #facc15;
    /* Crane Yellow */
    --accent-blue: #38bdf8;
    /* Blueprint Cyan */

    --text-light: #f8fafc;
    --text-gray: #cbd5e1;
    --text-darkgray: #64748b;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-heavy: rgba(255, 255, 255, 0.15);

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

    --transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    --radius-sm: 4px;
    /* Hard, industrial edges */
}

/* === RESET === */
*,
*::before,
*::after {
    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-gray);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

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;
}

.container {
    width: 90%;
    max-width: 1240px;
    margin: 0 auto;
}

.text-light {
    color: var(--text-light);
}

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

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

.pt-4 {
    padding-top: 1.5rem;
}

.border-top {
    border-top: 1px solid var(--border-light);
}

.text-sm {
    font-size: 0.85rem;
}

/* === BACKGROUND GRID TEXTURE === */
.site-bg-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image:
        linear-gradient(var(--border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-light) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* === BUTTONS & COMPONENTS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    transform: scaleY(1);
}

.btn-primary {
    background: var(--accent-yellow);
    color: #000;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
}

.btn-primary:active {
    box-shadow: 0 0 0;
    transform: translate(4px, 4px);
}

.btn-secondary {
    background: var(--border-heavy);
    color: var(--text-light);
}

.btn-outline {
    border: 1px solid var(--accent-yellow);
    color: var(--accent-yellow);
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 2;
}

.bg-darker {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-heavy);
    border-bottom: 1px solid var(--border-heavy);
}

.section-header {
    margin-bottom: 4rem;
}

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

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.1;
    text-transform: uppercase;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: var(--transition);
    padding: 24px 0;
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-heavy);
}

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

.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.logo-text {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 2px;
}

.logo-accent {
    width: 8px;
    height: 8px;
    background: var(--accent-yellow);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--accent-yellow);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    padding: 8px 20px;
    font-size: 0.9rem;
}

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

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-light);
    transition: var(--transition);
}

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

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

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

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

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

.mobile-menu a {
    font-family: var(--font-head);
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--text-gray);
}

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

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

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

.badge-exp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--accent-yellow);
    color: var(--accent-yellow);
    font-family: var(--font-head);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    background: rgba(250, 204, 21, 0.05);
}

.badge-exp .icon {
    width: 16px;
    height: 16px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 700;
    color: var(--text-darkgray);
    line-height: 0.9;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--accent-blue);
    margin-bottom: 2rem;
}

.divider {
    color: var(--border-heavy);
    margin: 0 10px;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 3rem;
    background: var(--bg-darker);
    padding: 24px;
    border: 1px solid var(--border-heavy);
    display: inline-flex;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--text-light);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-darkgray);
}

.stat-divider {
    width: 1px;
    background: var(--border-heavy);
}

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

/* Structural Hero Graphic */
.hero-visual {
    position: relative;
    height: 600px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.framework {
    position: relative;
    width: 340px;
    height: 460px;
    border: 4px solid var(--accent-yellow);
    z-index: 2;
}

.fw-beam {
    position: absolute;
    background: var(--bg-darker);
    border: 2px solid var(--border-heavy);
}

.fw-beam-1 {
    width: 120%;
    height: 20px;
    top: 10%;
    left: -10%;
}

.fw-beam-2 {
    width: 140%;
    height: 14px;
    bottom: 20%;
    left: -20%;
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.fw-beam-3 {
    width: 20px;
    height: 120%;
    top: -10%;
    right: 10%;
}

.fw-beam-4 {
    width: 10px;
    height: 80%;
    top: -20%;
    left: 20%;
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

.hero-img {
    position: absolute;
    inset: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    z-index: 1;
}

.fw-blueprint {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(56, 189, 248, 0.2) 10px, rgba(56, 189, 248, 0.2) 11px);
    pointer-events: none;
    z-index: 3;
}

/* === COMPETENCIES GRID === */
.px-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.glass-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border: 1px solid var(--border-light);
    border-top: 2px solid var(--border-heavy);
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-yellow);
    background: rgba(30, 41, 59, 0.8);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-yellow);
    margin-bottom: 24px;
    background: rgba(250, 204, 21, 0.05);
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.glass-card h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.glass-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === CAREER PATH (TIMELINE) === */
.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tl-block {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 30px;
}

.tl-side {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tl-logo {
    width: 60px;
    height: 60px;
    background: var(--accent-blue);
    color: #000;
    font-family: var(--font-head);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 2;
}

.tl-dot {
    width: 20px;
    height: 20px;
    border: 4px solid var(--accent-yellow);
    background: var(--bg-main);
    z-index: 2;
    margin-top: 6px;
}

.tl-dot-end {
    border-color: var(--text-darkgray);
    background: var(--text-darkgray);
}

.tl-line {
    position: absolute;
    top: 0;
    bottom: -40px;
    width: 2px;
    background: var(--border-heavy);
    z-index: 1;
}

.tl-early .tl-side {
    height: auto;
}

.tl-content {
    padding-bottom: 40px;
}

.tl-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--border-heavy);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.tl-header h3 {
    font-family: var(--font-head);
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--text-light);
}

.tl-dates {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-yellow);
    letter-spacing: 1px;
}

.tl-role {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--accent-blue);
    margin-bottom: 10px;
}

.tl-content p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Sub-positions block */
.tl-positions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    padding-left: 20px;
    border-left: 2px dashed var(--border-heavy);
}

.pos-node {
    position: relative;
}

.pos-dot {
    position: absolute;
    left: -27px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--text-light);
}

.pos-node h4 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 500;
}

.pos-year {
    font-size: 0.85rem;
    color: var(--text-darkgray);
}

.tl-details-card {
    background: var(--bg-darker);
    padding: 30px;
    border: 1px solid var(--border-heavy);
}

.tl-details-card h4 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--accent-yellow);
}

.tl-details-card ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tl-details-card li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
}

.tl-details-card li::before {
    content: '›';
    position: absolute;
    left: 0;
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-blue);
    line-height: 1;
}

.tl-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.early-role h4 {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

/* === PROJECTS & INFRASTRUCTURE === */
.proj-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.proj-panel {
    background: var(--bg-main);
    border: 1px solid var(--border-heavy);
    padding: 50px;
}

.proj-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

.p-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-yellow);
}

.proj-head h3 {
    font-family: var(--font-head);
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--text-light);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-list li {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-body);
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.gap-2 {
    gap: 1.5rem;
}

.progress-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.p-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-card);
    position: relative;
}

.p-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--accent-blue);
}

.education-block h4 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--accent-yellow);
    text-transform: uppercase;
}

.education-block p {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.education-block strong {
    color: var(--text-light);
}

/* === CONTACT === */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 40px;
    border-top: 4px solid var(--accent-yellow);
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    text-transform: uppercase;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 8px;
}

.f-role {
    font-family: var(--font-head);
    font-size: 1.25rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
}

.f-desc {
    font-size: 1rem;
    max-width: 400px;
}

.footer-contact h4 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 20px;
}

.c-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 16px;
    transition: var(--transition);
}

.c-link svg {
    width: 20px;
    height: 20px;
    color: var(--accent-yellow);
}

.c-link:not(.non-hover):hover {
    color: var(--text-light);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
}

.copyright-line {
    height: 1px;
    background: var(--border-heavy);
    margin-bottom: 20px;
}

.copyright p {
    font-size: 0.85rem;
    color: var(--text-darkgray);
}

/* === ANIMATIONS === */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-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: 40px;
    }

    .badge-exp {
        margin: 0 auto 1.5rem;
    }

    .hero-desc {
        margin: 0 auto 3rem;
    }

    .hero-stats,
    .hero-actions {
        justify-content: center;
        width: 100%;
    }

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

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

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

@media (max-width: 768px) {

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

    .mobile-toggle {
        display: flex;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

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

    .tl-block {
        grid-template-columns: 40px 1fr;
        gap: 20px;
    }

    .tl-logo {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .tl-grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }

    .hero-visual {
        height: 400px;
    }

    .framework {
        width: 280px;
        height: 340px;
    }

    .tl-positions {
        padding-left: 10px;
    }

    .tl-details-card {
        padding: 20px;
    }

    .proj-panel {
        padding: 30px 20px;
    }
}