/* ========================================================
   SHAJANAS SHARAFUDEEN | ELECTRICAL & MEP PROJECT ENGINEER
   Theme: Electric Current / High-Voltage Industrial
   Fonts: Space Grotesk (Headings), JetBrains Mono (Accents)
   Colors: Electric Blue, Voltage Amber, Deep Carbon
   ======================================================== */

:root {
    --bg-main: #060a10;
    /* Deep Carbon */
    --bg-section: #0c1220;
    /* Midnight Panel */
    --bg-card: #111827;
    /* Card Dark */
    --bg-card-hover: #1a2332;

    --electric-blue: #3b82f6;
    /* Primary Electric */
    --electric-cyan: #22d3ee;
    /* Cyan Arc */
    --voltage-amber: #f59e0b;
    /* Voltage/Warning Amber */
    --success-green: #22c55e;

    --text-primary: #f1f5f9;
    --text-body: #94a3b8;
    --text-muted: #64748b;

    --border-color: #1e293b;
    --border-hover: #334155;

    --font-head: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-body: 'Space Grotesk', sans-serif;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* === RESET === */
* {
    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;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-head);
    color: var(--text-primary);
    line-height: 1.2;
}

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

/* Circuit BG */
.circuit-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.03;
    background-image:
        linear-gradient(var(--electric-blue) 1px, transparent 1px),
        linear-gradient(90deg, var(--electric-blue) 1px, transparent 1px);
    background-size: 60px 60px;
}

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

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

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

.center {
    text-align: center;
}

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

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

/* Text Utilities */
.text-electric {
    color: var(--electric-cyan);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-glow {
    background: linear-gradient(135deg, var(--electric-blue), var(--electric-cyan));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

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

.navbar.scrolled {
    padding: 14px 0;
    background: rgba(6, 10, 16, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-bolt {
    font-size: 1.6rem;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    transition: var(--transition);
}

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

.nav-btn {
    padding: 10px 20px;
    font-size: 0.85rem;
}

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

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    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-main);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

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

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

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

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--electric-cyan);
    background: rgba(34, 211, 238, 0.1);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(34, 211, 238, 0.2);
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === HERO === */
.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-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.chip {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 6px 14px;
    border-radius: 100px;
    font-weight: 600;
}

.chip-elec {
    color: var(--electric-blue);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.chip-mep {
    color: var(--voltage-amber);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

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

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.metric h3 {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.metric p {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    line-height: 1.3;
}

.metric-line {
    width: 3px;
    height: 40px;
    background: linear-gradient(to bottom, var(--electric-blue), transparent);
    border-radius: 4px;
}

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

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

.visual-container {
    position: relative;
    width: 340px;
    height: 420px;
}

.glow-ring {
    position: absolute;
    inset: -30px;
    border: 2px solid var(--electric-blue);
    border-radius: 50%;
    opacity: 0.15;
    z-index: 0;
    animation: glowPulse 3s infinite ease-in-out;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(0.95);
    }

    50% {
        opacity: 0.25;
        transform: scale(1);
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.2);
    }
}

.img-shell {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-hover);
    overflow: hidden;
    z-index: 2;
    background: var(--bg-card);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) saturate(0.9);
}

.float-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-hover);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

.float-tag svg {
    width: 18px;
    height: 18px;
}

.ft-1 {
    top: 5%;
    right: -20%;
    animation: floatTag 6s infinite ease-in-out;
}

.ft-1 svg {
    color: var(--voltage-amber);
}

.ft-2 {
    bottom: 25%;
    left: -25%;
    animation: floatTag 7s infinite ease-in-out reverse;
}

.ft-2 svg {
    color: var(--electric-cyan);
}

.ft-3 {
    bottom: 0;
    right: -10%;
    animation: floatTag 5s infinite ease-in-out;
}

.ft-3 svg {
    color: var(--electric-blue);
}

@keyframes floatTag {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* === BENTO EXPERTISE GRID === */
.expertise-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.bento-wide {
    grid-column: span 2;
}

.bento-card:hover {
    border-color: var(--electric-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.08);
    transform: translateY(-3px);
}

.b-icon {
    width: 40px;
    height: 40px;
    color: var(--electric-cyan);
    margin-bottom: 20px;
}

.bento-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

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

.tool-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.tool-pills span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    color: var(--electric-blue);
}

/* === TIMELINE === */
.timeline {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

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

.tl-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tl-dot {
    width: 16px;
    height: 16px;
    background: var(--border-hover);
    border-radius: 50%;
    border: 3px solid var(--bg-main);
    box-shadow: 0 0 0 2px var(--border-hover);
    flex-shrink: 0;
}

.tl-dot.pulse {
    background: var(--electric-blue);
    box-shadow: 0 0 0 2px var(--electric-blue);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.tl-wire {
    width: 2px;
    flex-grow: 1;
    background: var(--border-color);
    margin-top: 4px;
}

.tl-last .tl-wire {
    display: none;
}

.tl-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-bottom: 32px;
    transition: var(--transition);
}

.tl-current .tl-card {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.05);
}

.tl-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.tl-head h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tl-head h4 {
    font-size: 1rem;
    color: var(--electric-cyan);
    font-weight: 500;
}

.tl-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.tl-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tl-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tl-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--electric-blue);
    font-weight: bold;
}

.tl-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

.tl-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.achieve-chip {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 6px 14px;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 100px;
    color: var(--success-green);
}

/* === PROJECTS SHOWCASE === */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.proj-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.proj-featured {
    grid-column: span 1;
    border-top: 3px solid var(--voltage-amber);
}

.proj-card:hover {
    border-color: var(--electric-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.proj-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 3px 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 100px;
    color: var(--voltage-amber);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.proj-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.proj-sub {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--electric-cyan);
    margin-bottom: 12px;
}

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

/* === CREDENTIALS === */
.cred-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.cred-col .section-title {
    margin-bottom: 30px;
}

.cred-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.cred-item h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cred-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.systems-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sys-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: var(--transition);
}

.sys-tag:hover {
    border-color: var(--electric-blue);
    color: var(--electric-blue);
    background: rgba(59, 130, 246, 0.05);
}

/* === FOOTER === */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    background: var(--bg-section);
}

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

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

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

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.c-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-align: left;
}

.c-card svg {
    width: 24px;
    height: 24px;
    color: var(--electric-cyan);
    flex-shrink: 0;
}

.c-card h5 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
    font-family: var(--font-mono);
}

.c-card p {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.c-card:not(.no-hover):hover {
    border-color: var(--electric-cyan);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.1);
}

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

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

.fade-in.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-chips {
        justify-content: center;
    }

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

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

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

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

    .bento-wide {
        grid-column: span 2;
    }

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

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

@media (max-width: 768px) {

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

    .mobile-toggle {
        display: flex;
    }

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

    .hero-visual {
        height: 450px;
    }

    .visual-container {
        width: 280px;
        height: 360px;
    }

    .float-tag {
        display: none;
    }

    .expertise-bento {
        grid-template-columns: 1fr;
    }

    .bento-wide {
        grid-column: span 1;
    }

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

    .proj-featured {
        grid-column: span 1;
    }

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

    .tl-indicator {
        display: none;
    }

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