/* ================================================================
   Omar Shawqi — Portfolio
   style.css  |  One unified stylesheet for all pages
   Fonts: Space Grotesk (display) + Inter (body)
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* layout */
    --nav-h: 92px;

    /* palette */
    --bg:        #020617;
    --bg-soft:   #040e24;
    --panel:     #071631;
    --panel-2:   #0a1d3d;
    --border:    rgba(255, 255, 255, 0.08);

    --primary:   #38bdf8;   /* core brand blue     */
    --primary-2: #0ea5e9;
    --accent:    #0ea5e9;   /* sky — secondary accent */
    --accent-2:  #0284c7;
    --violet:    #0d6fc7;   /* deep blue — CV / download actions */
    --violet-2:  #0077cc;
    --success:   #4ade80;   /* available badge      */

    --text:      #e8f4ff;
    --text-dim:  #cbd5e1;
    --text-mute: #94a3b8;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', Arial, sans-serif;
}

h1, h2, h3, h4, .logo, .nav-logo,
.hero-content h1, .about-container h1, .about-container h2 {
    font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ================================================================
   BODY & PAGE LOAD
   ================================================================ */
body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    /* Removed heavy pageLoad transform — use opacity-only for performance */
    animation: pageLoad 0.4s ease;
}

@keyframes pageLoad {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Faster fade-out, no scale (scale triggers layout recalc on mobile) */
.fade-out {
    opacity: 0;
    transition: opacity 0.25s ease;
}

/* ================================================================
   BACKGROUND ANIMATION
   ================================================================ */
.bg-animation {
    position: fixed;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at 20% 50%, #040e24 0%, var(--bg) 60%);
    /* GPU compositing layer */
    transform: translateZ(0);
    will-change: transform;
    contain: strict;
}

/* Slowly rotating, colour-shifting aurora ring — the "alive" layer */
.bg-animation .aurora-layer {
    position: absolute;
    inset: -25%;
    background: conic-gradient(from 0deg at 50% 45%,
        rgba(56, 189, 248, 0.20),
        rgba(13, 111, 199, 0.16),
        rgba(14, 165, 233, 0.16),
        rgba(56, 189, 248, 0.20)
    );
    filter: blur(90px) saturate(150%);
    mix-blend-mode: screen;
    opacity: 0.6;
    animation: auroraSpin 46s linear infinite, auroraBreathe 12s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes auroraSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes auroraBreathe {
    0%   { opacity: 0.45; filter: blur(90px) saturate(140%); }
    100% { opacity: 0.7;  filter: blur(110px) saturate(170%); }
}

/* Fine moving grid */
.bg-animation::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
    background-size: 70px 70px;
    transform: rotate(45deg);
    top: -50%;
    left: -50%;
    animation: gridMove 40s linear infinite;
    will-change: transform;
}

/* Primary top-right orb — reduced blur for mobile */
.bg-animation::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, transparent 65%);
    filter: blur(50px);
    top: -150px;
    right: -150px;
    animation: orbFloat1 18s ease-in-out infinite alternate;
    will-change: transform;
}

@media (max-width: 768px) {
    .bg-animation .aurora-layer { opacity: 0.4; filter: blur(60px) saturate(130%); }
}

@keyframes gridMove {
    0%   { transform: rotate(45deg) translate(0, 0); }
    100% { transform: rotate(45deg) translate(100px, 100px); }
}

@keyframes orbFloat1 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-30px, 50px, 0) scale(1.05); }
}

@keyframes orbFloat2 {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-40px, 40px, 0) scale(0.9); }
}

@keyframes orbFloat3 {
    0%   { transform: translate3d(0, 0, 0) scale(0.9); }
    100% { transform: translate3d(50px, -30px, 0) scale(1.0); }
}

/* ================================================================
   NAVBAR  (Home / About / Contact  use  <nav>)
   ================================================================ */
nav {
    width: 100%;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateZ(0);
}

.logo {
    font-size: 38px;
    font-weight: bold;
    color: #38bdf8;
    text-shadow: 0 0 15px #38bdf8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    position: relative;
    transition: 0.3s;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #38bdf8;
    left: 0;
    bottom: -8px;
    transition: 0.4s;
}

nav ul li a:hover { color: #38bdf8; }
nav ul li a:hover::after { width: 100%; }

/* ================================================================
   NAVBAR  (Projects page uses  .navbar / .nav-links)
   ================================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 8%;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transform: translateZ(0);
}

.nav-logo {
    font-size: 38px;
    font-weight: bold;
    color: #38bdf8;
    text-shadow: 0 0 15px #38bdf8;
    line-height: 1;
    /* single-line logo to match the other nav */
    display: block;
}

/* hide stacked spans — projects nav shows "Omar Shawqi" flat */
.logo-first::after { content: " "; }
.logo-last  { color: white; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    position: relative;
    transition: 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #38bdf8;
    left: 0;
    bottom: -8px;
    transition: 0.4s;
}

.nav-links a.active,
.nav-links a:hover { color: #38bdf8; }

.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

/* ================================================================
   SHARED ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translate3d(0, 30px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes glowText {
    from { text-shadow: 0 0 10px #38bdf8, 0 0 20px #38bdf8; }
    to   { text-shadow: 0 0 20px #38bdf8, 0 0 40px #38bdf8, 0 0 80px #38bdf8; }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.main-btn {
    display: inline-block;
    padding: 18px 50px;
    border-radius: 50px;
    background: #38bdf8;
    color: black;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: 0.4s;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.main-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px #38bdf8, 0 0 50px #38bdf8;
}

.secondary-btn {
    background: transparent;
    color: #38bdf8;
    border: 2px solid #38bdf8;
}

.secondary-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.second-btn { background: white; }

/* ================================================================
   HOME HERO
   ================================================================ */
.hero {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Guarantees content — including the Available badge — always clears the
       fixed navbar, no matter the viewport height (flex centers *inside*
       the padding box, so this offset is a hard floor, not a suggestion). */
    padding: calc(var(--nav-h) + 44px) 20px 60px;
}

.hero-content { animation: fadeUp 0.6s ease both; }

.hero-content h1 {
    font-size: 120px;
    color: #38bdf8;
    margin-bottom: 20px;
    text-shadow: 0 0 15px #38bdf8, 0 0 30px #38bdf8, 0 0 60px #38bdf8;
    animation: glowText 3s infinite alternate;
}

.hero-content p {
    font-size: 30px;
    color: #cbd5e1;
    margin-bottom: 50px;
    letter-spacing: 1px;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.social-icons a {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 30px;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    /* No backdrop-filter — too heavy on mobile */
}

.social-icons a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, #38bdf8, transparent);
    left: -100%;
    transition: 0.5s;
}

.social-icons a:hover::before { left: 100%; }

.social-icons a:hover {
    transform: translateY(-12px) scale(1.1);
    background: #38bdf8;
    color: black;
    box-shadow: 0 0 20px #38bdf8, 0 0 40px #38bdf8;
}

/* ================================================================
   MY SKILLS CARDS  (index.html — #skills)
   ================================================================ */
#skills {
    padding: 80px 60px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
}

.section-label span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: #38bdf8;
    text-transform: uppercase;
}

.section-label::before,
.section-label::after {
    content: '';
    flex: 0 0 60px;
    height: 1px;
}

.section-label::before { background: linear-gradient(90deg, transparent, #38bdf8); }
.section-label::after  { background: linear-gradient(90deg, #38bdf8, transparent); }

.section-title {
    text-align: center;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 30%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-sub {
    text-align: center;
    color: #7aabdb;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 60px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.skill-card {
    background: #071428;
    border: 1px solid #0d3a6e;
    border-radius: 14px;
    padding: 32px 24px 28px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(26, 143, 255, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.skill-card:hover {
    border-color: #1a6fba;
    box-shadow: 0 0 20px rgba(26, 143, 255, 0.15);
    transform: translateY(-4px);
}

.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.card-icon svg {
    width: 48px;
    height: 48px;
    stroke: #38bdf8;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
}

.card-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: #40b0ff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tag {
    background: #071e3d;
    border: 1px solid #0d3a6e;
    color: #e8f4ff;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 6px;
    transition: border-color 0.2s, color 0.2s;
}

.tag:hover { border-color: #0284c7; color: #40b0ff; }

.store-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #071e3d;
    border: 1px solid #0d3a6e;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 10px;
    transition: border-color 0.2s;
}

.store-item:hover { border-color: #0284c7; }

.store-item svg {
    width: 22px;
    height: 22px;
    stroke: #38bdf8;
    fill: none;
    stroke-width: 1.6;
    flex-shrink: 0;
}

.store-item-text { font-size: 0.82rem; line-height: 1.35; }
.store-item-text strong { display: block; font-size: 0.9rem; color: #e8f4ff; }
.store-item-text span  { color: #7aabdb; font-size: 0.78rem; }

.company-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #071e3d;
    border: 1px solid #0d3a6e;
    border-radius: 8px;
    padding: 14px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #7aabdb;
    line-height: 1.4;
}

.company-badge svg {
    width: 28px;
    height: 28px;
    stroke: #38bdf8;
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}

.company-badge a { color: #40b0ff; text-decoration: none; font-weight: 600; }
.company-badge a:hover { text-decoration: underline; }

.odoo-block { display: flex; flex-direction: column; gap: 14px; }

.odoo-desc {
    font-size: 0.88rem;
    color: #7aabdb;
    text-align: center;
    line-height: 1.6;
}

.odoo-desc a { color: #40b0ff; text-decoration: none; font-weight: 600; }

.odoo-logo { display: flex; justify-content: center; margin: 6px 0; }

.odoo-logo-text {
    font-size: 1.6rem;
    font-weight: 900;
    color: #875a7b;
    letter-spacing: -1px;
}

/* ================================================================
   PROGRAMMING SKILL BARS  (index.html — .skills-section)
   ================================================================ */
.skills-section {
    margin-top: 90px;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 120px;
}

.skills-section h2 {
    text-align: center;
    font-size: 45px;
    margin-bottom: 55px;
    color: #38bdf8;
    text-shadow:
        0 0 15px #38bdf8,
        0 0 30px rgba(56, 189, 248, 0.4);
}

.skill { margin-bottom: 35px; }

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    font-size: 22px;
    color: white;
}

.skill-bar {
    width: 100%;
    height: 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Removed backdrop-filter - not visible here anyway */
}

.skill-fill {
    height: 100%;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    animation: fillAnimation 2.5s ease;
}

/* Shine sweep */
.skill-fill::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120px;
    width: 120px;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    filter: blur(10px);
    transform: skewX(-25deg);
    animation: shine 3s infinite linear;
}

@keyframes fillAnimation { from { width: 0; } }

@keyframes shine {
    0%   { left: -120px; }
    100% { left: 120%; }
}

/* Individual bar colors — different per language */
.c      { width: 80%; background: linear-gradient(90deg, #06b6d4, #38bdf8); box-shadow: 0 0 14px rgba(56, 189, 248,0.55); }
.cpp    { width: 85%; background: linear-gradient(90deg, #2563eb, #60a5fa); box-shadow: 0 0 14px rgba(96,165,250,0.55); }
.html   { width: 90%; background: linear-gradient(90deg, #f97316, #fb923c); box-shadow: 0 0 14px rgba(249,115,22,0.55); }
.css    { width: 70%; background: linear-gradient(90deg, #3b82f6, #818cf8); box-shadow: 0 0 14px rgba(129,140,248,0.55); }
.js     { width: 60%; background: linear-gradient(90deg, #0284c7, #0ea5e9); box-shadow: 0 0 14px rgba(14, 165, 233,0.5); }
.java   { width: 80%; background: linear-gradient(90deg, #ef4444, #f87171); box-shadow: 0 0 14px rgba(239,68,68,0.55); }
.python { width: 59%; background: linear-gradient(90deg, #16a34a, #4ade80); box-shadow: 0 0 14px rgba(74,222,128,0.5); }

.skill:hover .skill-fill       { filter: brightness(1.2); transform: scaleY(1.15); transition: 0.4s; }
.skill:hover .skill-info span  { color: #38bdf8; transition: 0.4s; }

/* ================================================================
   ABOUT PAGE
   ================================================================ */
.about-page {
    width: 100%;
    min-height: 100vh;
    padding: calc(var(--nav-h) + 60px) 8% 100px;
}

.about-container { max-width: 1200px; margin: auto; }

/* Intro: photo beside the bio */
.about-intro {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.about-photo-wrap {
    position: relative;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.about-photo-ring {
    position: absolute;
    inset: -10px;
    border-radius: 32px;
    background: linear-gradient(145deg, #38bdf8, #0d6fc7 45%, #0ea5e9);
    opacity: 0.55;
    filter: blur(2px);
    animation: auroraBreathe 8s ease-in-out infinite alternate;
}

.about-photo {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.about-intro-text { text-align: left; }
.about-intro-text .hero-buttons { justify-content: flex-start; }

@media (max-width: 720px) {
    .about-intro { grid-template-columns: 1fr; text-align: center; }
    .about-photo-wrap { max-width: 190px; }
    .about-intro-text { text-align: center; }
    .about-intro-text .hero-buttons { justify-content: center; }
}

.about-container h1 {
    font-size: clamp(42px, 6vw, 80px);
    color: #38bdf8;
    margin-bottom: 15px;
    text-shadow: 0 0 20px #38bdf8;
}

.about-container h2 { font-size: clamp(22px, 3vw, 35px); margin-bottom: 30px; }

.about-container p {
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1.9;
    color: #cbd5e1;
    margin-bottom: 30px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 45px;
}

.hero-btn {
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.45), 0 0 55px rgba(14, 165, 233, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    position: relative;
}

.hero-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.8), 0 0 85px rgba(14, 165, 233, 0.4);
    filter: brightness(1.1);
}

/* Press feedback: quick, snappy transition + inward squeeze + brighter flash */
.hero-btn:active {
    transform: translateY(-2px) scale(0.94);
    box-shadow: 0 0 55px rgba(14, 165, 233, 1), 0 0 25px rgba(255, 255, 255, 0.5) inset;
    filter: brightness(1.25);
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}

.cert-btn {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.45), 0 0 55px rgba(14, 165, 233, 0.2);
}

.cert-btn:hover {
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.85), 0 0 85px rgba(14, 165, 233, 0.45);
}

.cert-btn:active {
    box-shadow: 0 0 55px rgba(14, 165, 233, 1), 0 0 25px rgba(255, 255, 255, 0.55) inset;
}

.cv-btn {
    background: linear-gradient(135deg, #0077cc, #0d6fc7);
    box-shadow: 0 0 25px rgba(13, 111, 199, 0.45), 0 0 55px rgba(0, 119, 204, 0.25);
}

.cv-btn:hover {
    box-shadow: 0 0 40px rgba(13, 111, 199, 0.85), 0 0 85px rgba(0, 119, 204, 0.45);
}

.cv-btn:active {
    box-shadow: 0 0 55px rgba(13, 111, 199, 1), 0 0 25px rgba(255, 255, 255, 0.55) inset;
}

/* ================================================================
   WORK EXPERIENCE SECTION
   ================================================================ */
.work-section { margin-top: 110px; }

.work-heading { text-align: center; margin-bottom: 60px; }

.work-heading span {
    color: #38bdf8;
    letter-spacing: 4px;
    font-size: 15px;
    font-weight: 600;
}

.work-heading h2 {
    font-size: 70px;
    color: white;
    margin-top: 12px;
    font-weight: 800;
}

/* Present → past vertical timeline. The connecting line + node on each
   card carry the "this is a sequence" meaning, so no separate numbering
   is needed. */
.work-grid {
    display: flex;
    flex-direction: column;
    gap: 34px;
    position: relative;
    padding-left: 52px;
}

.work-grid::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, #0ea5e9 0%, rgba(56, 189, 248,0.5) 35%, rgba(56, 189, 248,0.12) 100%);
}

.work-card {
    background: rgba(7, 20, 40, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 24px;
    padding: 34px 38px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    /* No backdrop-filter on cards — use solid bg instead */
}

.work-card::after {
    content: "";
    position: absolute;
    left: -45px;
    top: 38px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 0 5px rgba(2, 6, 23, 1), 0 0 0 7px rgba(56, 189, 248, 0.25), 0 0 14px #38bdf8;
    z-index: 3;
}

.work-card.featured::after {
    background: #0ea5e9;
    box-shadow: 0 0 0 5px rgba(2, 6, 23, 1), 0 0 0 7px rgba(14, 165, 233, 0.3), 0 0 16px #0ea5e9;
    width: 18px;
    height: 18px;
    left: -46.5px;
    top: 36px;
}

.work-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(56, 189, 248, 0.08);
    border-radius: 50%;
    top: -60px;
    right: -60px;
}

.work-card:hover {
    transform: translateX(6px);
    border-color: #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.18);
}

@media (max-width: 640px) {
    .work-grid { padding-left: 36px; gap: 26px; }
    .work-grid::before { left: 9px; }
    .work-card { padding: 26px 22px; }
    .work-card::after { left: -32px; width: 13px; height: 13px; top: 30px; }
    .work-card.featured::after { left: -33.5px; top: 28px; }
}

.work-icon {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    background: rgba(56, 189, 248, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.work-icon i { font-size: 34px; color: #38bdf8; }

.work-icon.has-logo {
    background: #FFFFFF;
    padding: 12px;
    overflow: hidden;
}
.work-icon.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Sub-experience: OZO Store nested under Elite Vibes */
.work-subcard {
    margin-top: 18px;
    margin-left: 28px;
    padding: 18px 20px;
    border-left: 2px solid rgba(56, 189, 248, 0.35);
    border-radius: 0 14px 14px 0;
    background: rgba(56, 189, 248, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}
.work-subcard::before {
    content: "\21B3";
    position: absolute;
    left: -13px;
    top: 16px;
    color: #38BDF8;
    font-size: 14px;
    background: #020617;
    padding: 0 3px;
}
.work-subcard .work-sub-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #FFFFFF;
    padding: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.work-subcard .work-sub-icon img { width: 100%; height: 100%; object-fit: contain; }
.work-subcard h4 {
    font-size: 15px;
    font-weight: 700;
    color: #E8F4FF;
    margin: 0 0 2px;
}
.work-subcard .work-date {
    font-size: 12px;
    color: #CBD5E1;
    margin-bottom: 4px;
}
.work-subcard p { font-size: 13px; color: #8ca0bb; margin: 0; }

.work-date {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    font-size: 14px;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
}

.work-card h3 {
    color: white;
    font-size: 30px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.work-card h4 {
    color: #38bdf8;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.work-card p {
    color: #c7cede;
    line-height: 1.8;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

/* ================================================================
   VOLUNTEER SECTION
   ================================================================ */
.volunteer-section {
    padding-top: 120px;
    position: relative;
    z-index: 2;
}

.volunteer-header { text-align: center; margin-bottom: 70px; }

.volunteer-header span {
    color: #38bdf8;
    letter-spacing: 4px;
    font-size: 15px;
    font-weight: 600;
}

.volunteer-header h2 {
    font-size: 72px;
    color: white;
    margin-top: 12px;
    font-weight: 800;
}

.volunteer-header p {
    color: #aab2c8;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.8;
    font-size: 18px;
}

.volunteer-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    padding-left: 52px;
}

.volunteer-grid::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, #0d6fc7 0%, rgba(56, 189, 248,0.5) 35%, rgba(56, 189, 248,0.12) 100%);
}

.volunteer-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #071e3d, #0f1d38);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 24px;
    padding: 34px 38px;
    transition: 0.4s ease;
    backdrop-filter: blur(10px);
}

.volunteer-card::after {
    content: "";
    position: absolute;
    left: -45px;
    top: 36px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #0d6fc7;
    box-shadow: 0 0 0 5px rgba(2, 6, 23, 1), 0 0 0 7px rgba(13, 111, 199, 0.25), 0 0 14px #0d6fc7;
    z-index: 3;
}

.volunteer-card::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.08);
    top: -70px;
    right: -70px;
}

@media (max-width: 640px) {
    .volunteer-grid { padding-left: 36px; }
    .volunteer-grid::before { left: 9px; }
    .volunteer-card { padding: 26px 22px; }
    .volunteer-card::after { left: -32px; width: 13px; height: 13px; top: 28px; }
}

.volunteer-card:hover {
    transform: translateY(-10px);
    border-color: #38bdf8;
    box-shadow: 0 0 35px rgba(56, 189, 248, 0.18);
}

.volunteer-icon {
    width: 82px;
    height: 82px;
    border-radius: 24px;
    background: rgba(56, 189, 248, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.volunteer-icon i { font-size: 36px; color: #38bdf8; }

.volunteer-date {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 30px;
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    font-size: 14px;
    margin-bottom: 22px;
    position: relative;
    z-index: 2;
}

.volunteer-card h3 {
    color: white;
    font-size: 32px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.volunteer-card h4 {
    color: #38bdf8;
    font-size: 19px;
    margin-bottom: 22px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.volunteer-card p {
    color: #c7cede;
    line-height: 1.9;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

/* ================================================================
   FEATURED / CURRENT WORK CARD  (e.g. active contracts)
   ================================================================ */
.work-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: start;
    background: linear-gradient(145deg, #071e3d, #0a2540 60%, #071e3d);
    border: 1px solid rgba(14, 165, 233, 0.35);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.06) inset, 0 0 40px rgba(14, 165, 233, 0.08);
}

.work-card.featured::before {
    background: rgba(14, 165, 233, 0.10);
}

.work-card.featured:hover {
    border-color: #0ea5e9;
    box-shadow: 0 0 40px rgba(14, 165, 233, 0.22);
}

.work-card.featured .work-icon {
    background: rgba(14, 165, 233, 0.12);
    margin-bottom: 0;
}

.work-card.featured .work-icon i { color: #0ea5e9; }

.work-card.featured .work-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.current-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(34, 197, 94, 0.12);
    border: 1.5px solid rgba(34, 197, 94, 0.6);
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 12.5px;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: availablePulse 2.5s ease-in-out infinite;
}

.current-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80, 0 0 16px #4ade80;
    animation: blink 1.4s ease-in-out infinite;
}

.work-card.featured .work-date {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
    margin-bottom: 0;
}

.work-card.featured h3 { font-size: 30px; }
.work-card.featured h4 { color: #0ea5e9; }

.work-role-tag {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 30px;
    margin: 6px 8px 16px 0;
    position: relative;
    z-index: 2;
}

@media (max-width: 640px) {
    .work-card.featured { grid-template-columns: 1fr; }
}

/* ================================================================
   CERTIFICATIONS SECTION
   ================================================================ */
.cert-section {
    padding-top: 120px;
    position: relative;
    z-index: 2;
}

.cert-header { text-align: center; margin-bottom: 45px; }

.cert-header span {
    color: #38bdf8;
    letter-spacing: 4px;
    font-size: 15px;
    font-weight: 600;
}

.cert-header h2 {
    font-size: 70px;
    color: white;
    margin-top: 12px;
    font-weight: 800;
}

.cert-header p {
    color: #aab2c8;
    max-width: 700px;
    margin: 20px auto 0;
    line-height: 1.8;
    font-size: 18px;
}

.cert-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 40px 0 45px;
}

.filter-btn {
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.25s ease;
}

.filter-btn:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

.filter-btn.active {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    border-color: transparent;
    color: white;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.cert-card {
    background: rgba(7, 20, 40, 0.9);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 26px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeUp 0.5s ease both;
}

.cert-card::before {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(14, 165, 233, 0.06);
    border-radius: 50%;
    top: -55px;
    right: -55px;
}

.cert-card:hover {
    transform: translateY(-8px);
    border-color: #0ea5e9;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.16);
}

.cert-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}

.cert-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(14, 165, 233, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    flex-shrink: 0;
}

.cert-icon svg { width: 26px; height: 26px; }

.cert-cat {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 30px;
}

.cert-card h3 {
    color: white;
    font-size: 19px;
    line-height: 1.4;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.cert-org {
    color: #c7cede;
    font-size: 14.5px;
    margin-bottom: 14px;
    position: relative;
    z-index: 2;
}

.cert-year {
    display: inline-block;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.cert-card .btn {
    margin-top: auto;
    position: relative;
    z-index: 2;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(14, 165, 233, 0.5);
    color: #0ea5e9;
}

.btn-outline:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: #0ea5e9;
    box-shadow: 0 0 18px rgba(14, 165, 233, 0.25);
}

.btn-disabled {
    background: rgba(148, 163, 184, 0.08);
    border: 1.5px solid rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    cursor: default;
}

/* ── Certificate Lightbox ── */
.cert-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.92);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 30px;
}

.cert-lightbox.open {
    opacity: 1;
    visibility: visible;
}

.cert-lightbox img {
    max-width: min(90vw, 800px);
    max-height: 85vh;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.25);
    transform: scale(0.92);
    transition: transform 0.3s ease;
}

.cert-lightbox.open img { transform: scale(1); }

.cert-lightbox-close {
    position: absolute;
    top: 26px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.25s ease;
}

.cert-lightbox-close:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: rotate(90deg);
}

@media (max-width: 1024px) {
    .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .cert-grid { grid-template-columns: 1fr; }
    .cert-header h2 { font-size: 38px !important; }
    .cert-filters { gap: 8px; }
    .filter-btn { padding: 8px 16px; font-size: 13px; }
}

/* ================================================================
   CV SECTION
   ================================================================ */
.cv-section { padding: 120px 20px; text-align: center; }

.cv-container span {
    color: #38bdf8;
    letter-spacing: 4px;
    font-size: 15px;
    font-weight: 600;
}

.cv-container h2 {
    font-size: 70px;
    color: white;
    margin-top: 12px;
    font-weight: 800;
}

.cv-container p {
    color: #aab2c8;
    margin-top: 18px;
    font-size: 18px;
}

.cv-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 45px;
}

/* ================================================================
   CONTACT PAGE
   ================================================================ */
.contact-page { min-height: 100vh; padding: calc(var(--nav-h) + 48px) 6% 60px; position: relative; overflow-x: hidden; }
.contact-container { max-width: 1400px; margin: auto; width: 100%; }

.contact-title { text-align: left; margin-bottom: clamp(36px, 6vw, 60px); }

.contact-title span {
    color: #9ca3af;
    font-size: clamp(13px, 1.6vw, 18px);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.contact-title span::after {
    content: "";
    width: 90px;
    max-width: 30vw;
    height: 2px;
    background: #38bdf8;
}

.contact-title h1 {
    font-size: clamp(38px, 7vw, 85px);
    color: #fff;
    font-weight: 800;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
    margin-top: 10px;
    line-height: 1.05;
    word-break: break-word;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px;
    width: 100%;
}

.contact-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: clamp(26px, 3.4vw, 45px);
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: 0.45s ease;
    border-radius: 20px;
    min-width: 0;
}

.contact-card::before {
    content: "";
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(45deg, transparent, rgba(56, 189, 248, 0.3), transparent);
    top: -120%;
    left: -120%;
    transition: 0.8s;
}

.contact-card:hover::before { top: 100%; left: 100%; }

.contact-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4), 0 0 60px rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
}

.contact-icon {
    min-width: clamp(52px, 6vw, 70px);
    width: clamp(52px, 6vw, 70px);
    height: clamp(52px, 6vw, 70px);
    border-radius: 18px;
    background: rgba(56, 189, 248, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(20px, 2.6vw, 30px);
    color: #38bdf8;
    transition: 0.4s ease;
    flex-shrink: 0;
}

.contact-card:hover .contact-icon {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.contact-info { min-width: 0; overflow-wrap: anywhere; }
.contact-info h2 { color: #fff; font-size: clamp(20px, 2.4vw, 34px); margin-bottom: 8px; font-weight: 700; }
.contact-info p  { color: #cbd5e1; font-size: clamp(15px, 1.6vw, 22px); line-height: 1.7; }

/* Social Card */
.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: clamp(26px, 3.4vw, 35px);
    overflow: hidden;
}

.social-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-header h2 {
    color: white;
    font-size: 2rem;
    text-align: center;
}

.social-card .contact-icon {
    min-width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(56, 189, 248, 0.08);
}

.social-card .contact-icon i { font-size: clamp(28px, 3.6vw, 48px); color: #38bdf8; }

.contact-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 2vw, 14px);
    flex-wrap: wrap;
    row-gap: 14px;
}

.social-btn {
    width: clamp(48px, 9vw, 66px);
    height: clamp(48px, 9vw, 66px);
    min-width: clamp(48px, 9vw, 66px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(56, 189, 248, 0.10);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    font-size: clamp(18px, 3vw, 26px);
    text-decoration: none;
    transition: 0.4s ease;
    backdrop-filter: blur(10px);
}

.social-btn i { margin: 0; line-height: 1; }

.social-btn:hover {
    transform: translateY(-8px) scale(1.08);
    background: #38bdf8;
    color: #020617;
    box-shadow: 0 0 20px #38bdf8, 0 0 45px rgba(56, 189, 248, 0.6);
}

/* ================================================================
   PROJECTS PAGE — NAVBAR (uses .navbar + .nav-links above)
   ================================================================ */

/* Projects hero */
.hero.projects-hero {
    min-height: 45vh;
    padding: 7rem 8% 3.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero.projects-hero .hero-content {
    animation: fadeUp 0.9s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Glow blobs */
.glow-left, .glow-right {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
}

.glow-left  { background: rgba(0, 80, 200, 0.2);  left: -80px;  top: -60px; }
.glow-right { background: rgba(56, 189, 248, 0.1); right: -60px; bottom: -60px; }

/* Projects count badge */
.projects-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 30px;
    padding: 6px 18px;
    font-size: 15px;
    color: #38bdf8;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.projects-count .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
    animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.hero-tag {
    font-size: 15px;
    letter-spacing: 0.28em;
    color: #38bdf8;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* blinking cursor */
.hero-tag::after {
    content: "|";
    animation: cursorBlink 1s step-end infinite;
    margin-left: 3px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.hero-title .glow-word {
    display: inline-block;
    color: #38bdf8;
    text-shadow: 0 0 12px #38bdf8, 0 0 28px #38bdf8;
    animation: glowText 3s infinite alternate;
}

.hero-sub {
    font-size: 18px;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 1000px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
}

.hero-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 12px #38bdf8;
    position: relative;
    z-index: 1;
}

/* Section divider */
.section-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 4rem auto 2.5rem;
    max-width: 1400px;
    padding: 0 8%;
}

.section-divider span {
    font-size: 13px;
    letter-spacing: 0.25em;
    color: rgba(56, 189, 248, 0.65);
    text-transform: uppercase;
    white-space: nowrap;
    font-weight: 600;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.22), transparent);
}

/* ================================================================
   PROJECTS GRID
   ================================================================ */
.projects-section {
    position: relative;
    z-index: 1;
    padding: 2rem 8% 6rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.8rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Project card */
.project-card {
    background: #030d1f;
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 16px;
    overflow: visible;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    animation: fadeUp 0.6s ease both;
    position: relative;
}

.project-card[data-delay="0"] { animation-delay: 0.05s; }
.project-card[data-delay="1"] { animation-delay: 0.15s; }
.project-card[data-delay="2"] { animation-delay: 0.25s; }
.project-card[data-delay="3"] { animation-delay: 0.35s; }
.project-card[data-delay="4"] { animation-delay: 0.45s; }
.project-card[data-delay="5"] { animation-delay: 0.55s; }
.project-card[data-delay="6"] { animation-delay: 0.65s; }
.project-card[data-delay="7"] { animation-delay: 0.75s; }

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15), 0 20px 40px rgba(0, 0, 0, 0.5);
}

.project-card.featured {
    border-color: rgba(56, 189, 248, 0.30);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.07);
}

.project-card.coming-soon { opacity: 0.85; }
.project-card.coming-soon:hover { opacity: 1; }

/* Card preview */
.card-preview {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #07131f 0%, #0b1c30 50%, #061525 100%);
    overflow: visible;
    flex-shrink: 0;
}

.card-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 7, 7, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
}

.preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    transition: transform 0.35s ease;
}

.project-card:hover .preview-img { transform: scale(1.04); }

.preview-img[src=""],
.preview-img:not([src]) { display: none; }

.preview-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    color: rgba(56, 189, 248, 0.3);
    padding: 1rem;
}

.preview-img:not([src=""]) ~ .preview-placeholder { display: none; }

.preview-placeholder svg { width: 38px; height: 38px; opacity: 0.6; }

.preview-placeholder span {
    font-size: 12px;
    text-align: center;
    color: rgba(56, 189, 248, 0.45);
    line-height: 1.5;
}

.preview-placeholder code {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 11px;
    color: #38bdf8;
}

/* Floating icon */
.proj-card-icon {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    background: #071702;
    border: 2px solid rgba(56, 189, 248, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.28);
    transition: box-shadow 0.35s ease;
}

.proj-card-icon svg { width: 20px; height: 20px; stroke: #38bdf8; }

.project-card:hover .proj-card-icon { box-shadow: 0 0 24px rgba(56, 189, 248, 0.55); }

/* Badge */
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.5);
}

/* Coming-soon overlay */
.coming-soon-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(2,6,23,0.72) 0%, rgba(7,19,31,0.82) 100%);
    backdrop-filter: blur(2px);
}

.coming-soon-badge {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #38bdf8;
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    padding: 7px 20px;
    border-radius: 30px;
    background: rgba(56, 189, 248, 0.08);
    animation: pulseBadge 2.5s ease-in-out infinite;
    text-transform: uppercase;
}

@keyframes pulseBadge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248,0); }
    50%       { box-shadow: 0 0 0 8px rgba(56, 189, 248,0), 0 0 20px rgba(56, 189, 248,0.3); }
}

.eta-badge {
    font-size: 12px;
    color: rgba(56, 189, 248, 0.6);
    letter-spacing: 0.08em;
}

.coming-soon-icon {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-icon::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px dashed rgba(56, 189, 248, 0.35);
    animation: spin 6s linear infinite;
}

.coming-soon-icon svg { width: 26px; height: 26px; stroke: rgba(56, 189, 248,0.55); }

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Inner glow on coming-soon preview */
.project-card.coming-soon .card-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248,0.08) 0%, transparent 70%);
    z-index: 1;
    animation: innerGlow 3s ease-in-out infinite alternate;
}

@keyframes innerGlow {
    from { opacity: 0.5; }
    to   { opacity: 1.0; }
}

/* Card body */
.card-body {
    padding: 2.2rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.card-tag {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.18);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    width: fit-content;
}

.academic-badge {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #CBD5E1;
    background: rgba(203, 213, 225, 0.08);
    border: 1px solid rgba(203, 213, 225, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

.card-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.card-desc {
    font-size: 14px;
    color: #8ca0bb;
    line-height: 1.75;
    flex: 1;
}

/* Card buttons */
.card-btns {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 8px;
    transition: all 0.35s ease;
    white-space: nowrap;
}

.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn-live {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #fff;
    box-shadow: 0 0 14px rgba(0,170,255,0.3);
    flex: 1;
    justify-content: center;
}

.btn-live:hover {
    background: linear-gradient(135deg, #0088ee, #00bfff);
    box-shadow: 0 0 22px rgba(0,200,255,0.5);
    transform: translateY(-1px);
}

.btn-github {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.22);
    flex: 1;
    justify-content: center;
}

.btn-github:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
}

.btn-disabled {
    background: rgba(56, 189, 248, 0.06);
    color: rgba(56, 189, 248, 0.45);
    border: 1.5px solid rgba(56, 189, 248, 0.15);
    flex: 1;
    justify-content: center;
    cursor: default;
    pointer-events: none;
}

/* View more */
.view-more-wrap { text-align: center; margin-top: 3.5rem; }

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #38bdf8;
    text-decoration: none;
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    padding: 13px 35px;
    border-radius: 50px;
    transition: all 0.35s ease;
    background: rgba(56, 189, 248, 0.05);
}

.btn-view-more svg { width: 16px; height: 16px; transition: transform 0.35s ease; }

.btn-view-more:hover {
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    transform: translateY(-2px);
}

.btn-view-more:hover svg { transform: translateX(4px); }

/* ================================================================
   SCROLL TARGETS
   ================================================================ */
html { scroll-behavior: smooth; }
#work       { scroll-margin-top: 140px; }
#volunteer  { scroll-margin-top: 120px; }
#certifications { scroll-margin-top: 120px; }
#cv-section { scroll-margin-top: 120px; }
#skills     { scroll-margin-top: 100px; }

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #020617; }
::-webkit-scrollbar-thumb { background: rgba(56, 189, 248,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56, 189, 248,0.6); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    nav  { padding: 20px; }
    nav ul, .nav-links { gap: 18px; }
    .logo, .nav-logo { font-size: 24px; }

    .hero-content h1  { font-size: 60px; }
    .hero-content p   { font-size: 18px; }
    .social-icons a   { width: 65px; height: 65px; font-size: 24px; }

    .about-container h1 { font-size: 50px; }
    .about-container p  { font-size: 18px; }

    .work-grid, .volunteer-grid, .contact-grid { grid-template-columns: 1fr; gap: 25px; }
    .work-heading h2 { font-size: 48px; }
    .volunteer-header h2 { font-size: 48px; }
    .work-card, .volunteer-card { padding: 30px; }

    .contact-title h1  { font-size: 60px; }
    .contact-card { padding: 35px 22px; }

    .skills-section h2 { font-size: 35px; }
    .skill-info { font-size: 18px; }

    #skills { padding: 60px 24px 40px; }
    .skills-grid { grid-template-columns: 1fr 1fr; }

    .social-card { flex-direction: column; text-align: center; gap: 25px; }
    .contact-social { flex-wrap: wrap; gap: 16px; }
    .social-btn { width: 68px; height: 68px; min-width: 68px; font-size: 28px; }
    .social-card .contact-icon { min-width: 75px; height: 75px; }
    .social-card .contact-icon i { font-size: 38px; }

    .projects-grid { grid-template-columns: 1fr; }
    .card-btns { flex-direction: column; }
    .btn { justify-content: center; }
}

@media (max-width: 768px) {
    .hero-buttons, .cv-buttons { flex-direction: column; align-items: center; }
    .hero-btn, .cv-buttons a { width: 100%; max-width: 300px; text-align: center; }
}

@media (max-width: 600px) {
    .skills-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .social-btn { width: 52px; height: 52px; font-size: 22px; }
    .hero-title { font-size: 2.2rem; }
    .projects-section { padding: 1rem 5% 4rem; }
}

.fab,
.fas,
.far,
.fa-brands,
.fa-solid {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free" !important;
}
:root{
    --cyan:#38bdf8;
}


.logo-blue{
    color: #38bdf8;
    text-shadow: 0 0 15px #38bdf8;
}

.logo-white{
    color: #ffffff;
}

/* ================================================================
   HIRE ME BUTTON
   ================================================================ */
.hire-me-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 44px;
    border-radius: 50px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: 0.4s ease;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.5), 0 0 60px rgba(239, 68, 68, 0.2);
    position: relative;
    overflow: hidden;
    animation: hirePulse 2.5s ease-in-out infinite;
}

.hire-me-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #fb923c, #f87171);
    opacity: 0;
    transition: 0.4s;
    border-radius: 50px;
}

.hire-me-btn:hover::before { opacity: 1; }

.hire-me-btn:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.8), 0 0 80px rgba(239, 68, 68, 0.4);
    animation: none;
}

.hire-icon {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.hire-me-btn span { position: relative; z-index: 1; }

@keyframes hirePulse {
    0%, 100% { box-shadow: 0 0 25px rgba(249,115,22,0.5), 0 0 60px rgba(239,68,68,0.2); }
    50%       { box-shadow: 0 0 45px rgba(249,115,22,0.8), 0 0 90px rgba(239,68,68,0.4); }
}

/* ================================================================
   MY PROJECTS BUTTON
   (same pill/glow language as .hire-me-btn, distinct neon-green
   accent so it reads as its own call-to-action without clashing
   with the cyan / orange buttons already in the CTA row)
   ================================================================ */
.projects-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 44px;
    border-radius: 50px;
    background: linear-gradient(135deg, #39ff8f, #10b981);
    color: #04170e;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: 0.4s ease;
    box-shadow: 0 0 25px rgba(57, 255, 143, 0.55), 0 0 60px rgba(16, 185, 129, 0.25);
    position: relative;
    overflow: hidden;
    animation: projectsPulse 2.5s ease-in-out infinite;
}

.projects-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7dffb8, #34e69d);
    opacity: 0;
    transition: 0.4s;
    border-radius: 50px;
}

.projects-btn:hover::before { opacity: 1; }

.projects-btn:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 0 45px rgba(57, 255, 143, 0.9), 0 0 90px rgba(16, 185, 129, 0.45);
    animation: none;
}

@keyframes projectsPulse {
    0%, 100% { box-shadow: 0 0 25px rgba(57,255,143,0.55), 0 0 60px rgba(16,185,129,0.25); }
    50%       { box-shadow: 0 0 45px rgba(57,255,143,0.85), 0 0 90px rgba(16,185,129,0.4); }
}

.projects-icon {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.projects-btn span { position: relative; z-index: 1; }

/* ================================================================
   AVAILABLE FOR WORK BADGE
   ================================================================ */
.available-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.12);
    border: 2px solid rgba(34, 197, 94, 0.6);
    border-radius: 50px;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
    animation: fadeUp 0.8s ease both, availablePulse 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.2), 0 0 40px rgba(34, 197, 94, 0.08);
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.available-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(34,197,94,0.06), transparent);
    animation: badgeSweep 3s linear infinite;
}

@keyframes badgeSweep {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes availablePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(34,197,94,0.2), 0 0 40px rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.6); }
    50%       { box-shadow: 0 0 30px rgba(34,197,94,0.4), 0 0 60px rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.9); }
}

.avail-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80, 0 0 20px #4ade80;
    animation: dotPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dotPulse {
    0%, 100% { transform: scale(1);   box-shadow: 0 0 10px #4ade80; }
    50%       { transform: scale(1.4); box-shadow: 0 0 20px #4ade80, 0 0 35px #22c55e; }
}

/* ================================================================
   HERO HEADLINE (NEW TYPING STYLE)
   ================================================================ */
.hero-content .hero-headline {
    font-size: clamp(40px, 5.2vw, 88px);
    line-height: 1.1;
    white-space: nowrap;
    margin-bottom: 24px;
    animation: fadeUp 1s ease 0.2s both;
}

.hero-hi {
    color: white;
    display: inline;
}

.hero-typed {
    color: #38bdf8;
    text-shadow: 0 0 15px #38bdf8, 0 0 30px #38bdf8, 0 0 60px #38bdf8;
    animation: glowText 3s infinite alternate;
    display: inline;
}

.hero-cursor {
    color: #38bdf8;
    animation: cursorBlink 0.8s step-end infinite;
    font-weight: 300;
    display: inline;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* Rotating subtitle */
.hero-sub-rotate {
    font-size: clamp(16px, 2.5vw, 24px);
    color: #94a3b8;
    margin-bottom: 40px;
    min-height: 36px;
    letter-spacing: 0.5px;
    animation: fadeUp 1s ease 0.4s both;
    transition: opacity 0.4s ease;
}

.hero-sub-rotate .highlight {
    color: #38bdf8;
    font-weight: 700;
}

/* CTA row */
.hero-cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    animation: fadeUp 1s ease 0.6s both;
    margin-top: 10px;
}

/* ================================================================
   CONTACT FORM SECTION
   ================================================================ */
.contact-form-section {
    padding: clamp(50px, 8vw, 80px) 6% clamp(60px, 10vw, 120px);
    position: relative;
    overflow-x: hidden;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.form-header {
    text-align: center;
    margin-bottom: clamp(36px, 6vw, 60px);
}

.form-header span {
    color: #38bdf8;
    letter-spacing: 4px;
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 12px;
}

.form-header h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
}

.form-header h2 .glow-word {
    color: #38bdf8;
    text-shadow: 0 0 20px #38bdf8;
}

.form-header p {
    color: #94a3b8;
    font-size: 17px;
}

.form-wrapper {
    background: linear-gradient(145deg, rgba(7,20,40,0.9), rgba(3,12,28,0.95));
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 24px;
    padding: clamp(24px, 5vw, 50px) clamp(20px, 4.5vw, 48px);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 60px rgba(56, 189, 248, 0.06), inset 0 1px 0 rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.form-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    opacity: 0.5;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.form-group:last-of-type { margin-bottom: 0; }

.form-group label {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #38bdf8;
    font-size: 13px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 14px;
    padding: 15px 18px;
    color: white;
    font-size: 16px;
    font-family: 'Inter', Arial, sans-serif;
    transition: 0.35s ease;
    outline: none;
    resize: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.04);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1), 0 0 20px rgba(56, 189, 248, 0.08);
}

.send-btn {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.4s ease;
    margin-top: 28px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.35);
}

.send-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    opacity: 0;
    transition: 0.4s;
}

.send-btn:hover::before { opacity: 1; }

.send-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(14, 165, 233, 0.6);
}

.send-btn:active { transform: scale(0.98); }

.btn-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    animation: shineSweep 3s ease-in-out infinite;
}

@keyframes shineSweep {
    0%   { left: -100%; }
    60%, 100% { left: 160%; }
}

#btnText { position: relative; z-index: 1; }

.form-status {
    margin-top: 20px;
    padding: 16px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    display: none;
    animation: fadeUp 0.4s ease;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ── HAMBURGER BASE (desktop: hidden) ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 1100;
    background: transparent;
    border: none;
    padding: 4px;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #38bdf8;
    border-radius: 3px;
    transition: all 0.35s ease;
    transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ================================================================
   MOBILE ≤ 768px
   ================================================================ */
@media (max-width: 768px) {

    :root { --nav-h: 66px; }

    /* ── Navbar layout ── */
    nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 5% !important;
        gap: 0 !important;
    }

    .logo, .nav-logo { font-size: 24px !important; }

    /* Show hamburger */
    .hamburger { display: flex !important; }

    /* Hide nav links by default on mobile */
    nav ul,
    .nav-links {
        display: none !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: rgba(2, 6, 23, 0.98) !important;
        /* Reduced blur on mobile nav overlay */
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 36px !important;
        z-index: 1050 !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    /* Show when .open is toggled by JS */
    nav ul.open,
    .nav-links.open {
        display: flex !important;
    }

    nav ul li a,
    .nav-links a { font-size: 26px !important; }

    /* ── Available for Work badge ── */
    .available-badge {
        display: inline-flex !important;
        font-size: 13px !important;
        padding: 10px 20px !important;
        margin-bottom: 24px !important;
    }

    /* ── Hero ── */
    .hero { padding: calc(var(--nav-h) + 30px) 20px 40px !important; align-items: center !important; }
    .hero-headline { font-size: clamp(26px, 7.6vw, 44px) !important; margin-bottom: 16px; white-space: normal !important; }
    .hero-sub-rotate { font-size: 14px !important; padding: 0 10px; }
    .hero-cta-row { flex-direction: column !important; align-items: center !important; gap: 14px !important; }
    .hire-me-btn { font-size: 18px !important; padding: 16px 38px !important; width: 90% !important; max-width: 280px !important; justify-content: center !important; }
    .projects-btn { font-size: 18px !important; padding: 16px 38px !important; width: 90% !important; max-width: 280px !important; justify-content: center !important; }
    .main-btn { display: block !important; width: 90% !important; max-width: 280px !important; margin: 0 auto !important; text-align: center !important; }

    .social-icons { flex-wrap: wrap !important; gap: 16px !important; justify-content: center; }
    .social-icons a { width: 60px !important; height: 60px !important; font-size: 24px !important; }

    /* ── About page ── */
    .about-page { padding: 120px 5% 60px !important; }
    .about-container h1 { font-size: 42px !important; }
    .about-container h2 { font-size: 22px !important; }
    .about-container p { font-size: 16px !important; line-height: 1.8 !important; }
    .hero-buttons { flex-direction: column !important; align-items: center !important; gap: 14px !important; }
    .hero-btn { width: 100% !important; max-width: 300px !important; text-align: center !important; }

    /* ── Work / Volunteer ── */
    .work-grid, .volunteer-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .work-heading h2 { font-size: 38px !important; }
    .volunteer-header h2 { font-size: 38px !important; }
    .work-card, .volunteer-card { padding: 24px 18px !important; }
    .work-card h3 { font-size: 20px !important; }
    .volunteer-card h3 { font-size: 20px !important; }
    .work-card.featured { grid-template-columns: 1fr !important; }

    /* ── Certifications ── */
    .cert-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
    .cert-header h2 { font-size: 32px !important; }
    .cert-card { padding: 22px !important; }

    /* ── CV section ── */
    .cv-section { padding: 60px 5% !important; }
    .cv-container h2 { font-size: 38px !important; }
    .cv-buttons { flex-direction: column !important; align-items: center !important; }
    .cv-buttons a { width: 100% !important; max-width: 300px !important; text-align: center !important; }

    /* ── Contact page ── */
    .contact-page { padding: 120px 5% 60px !important; }
    .contact-title h1 { font-size: 44px !important; }
    .contact-grid { grid-template-columns: 1fr !important; gap: 18px !important; }
    .contact-card { padding: 28px 16px !important; flex-direction: column !important; text-align: center !important; }
    .contact-info h2 { font-size: 20px !important; }
    .contact-info p { font-size: 15px !important; }
    .social-card { flex-direction: column !important; gap: 20px !important; }
    .contact-social { flex-wrap: wrap !important; gap: 12px !important; justify-content: center !important; }
    .social-btn { width: 56px !important; height: 56px !important; min-width: 56px !important; font-size: 22px !important; }

    /* ── Contact form ── */
    .contact-form-section { padding: 60px 5% 80px !important; }
    .form-wrapper { padding: 28px 18px !important; border-radius: 20px !important; }
    .form-row { grid-template-columns: 1fr !important; gap: 0 !important; }
    .form-header h2 { font-size: 2rem !important; }
    .send-btn { font-size: 16px !important; padding: 17px !important; }

    /* ── Skills ── */
    #skills { padding: 60px 16px 40px !important; }
    .skills-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .section-title { font-size: 2rem !important; }
    .skills-section { padding: 0 16px 80px !important; }
    .skills-section h2 { font-size: 28px !important; }
    .skill-info { font-size: 16px !important; }

    /* ── Projects ── */
    .projects-section { padding: 1rem 5% 4rem !important; }
    .projects-grid { grid-template-columns: 1fr !important; }
    .card-btns { flex-direction: column !important; }
    .btn { justify-content: center !important; }
    .hero.projects-hero { padding: 6rem 5% 3rem !important; }

    /* ── Mobile performance: disable heavy background grid animation ── */
    .bg-animation::before {
        animation: none !important;
        opacity: 0.4 !important;
    }

    /* ── Mobile: reduce orb sizes injected by JS ── */
    .bg-animation > div {
        transform: scale(0.5) !important;
        opacity: 0.6 !important;
    }

    /* ── Disable hover transforms on touch (they cause jank) ── */
    .work-card:hover,
    .volunteer-card:hover,
    .skill-card:hover,
    .cert-card:hover {
        transform: none !important;
    }

    /* ── Tone down glow text animation on mobile ── */
    .hero-content h1 {
        animation: none !important;
        text-shadow: 0 0 15px #38bdf8 !important;
    }

    /* ── Simplify skill bar shine on mobile ── */
    .skill-fill::before { animation: none !important; }
    .btn-shine { animation: none !important; }
}

/* ================================================================
   MOBILE ≤ 480px
   ================================================================ */
@media (max-width: 480px) {
    .logo, .nav-logo { font-size: 20px !important; }
    .available-badge { font-size: 12px !important; padding: 9px 16px !important; }
    .hero-headline { font-size: clamp(23px, 7.4vw, 34px) !important; }
    .hire-me-btn { font-size: 17px !important; padding: 15px 30px !important; }
    .projects-btn { font-size: 17px !important; padding: 15px 30px !important; }
    .form-wrapper { padding: 22px 14px !important; }
    .social-btn { width: 50px !important; height: 50px !important; font-size: 20px !important; }
    .contact-title h1 { font-size: 34px !important; }
    .about-container h1 { font-size: 32px !important; }
    .work-heading h2 { font-size: 30px !important; }
    .volunteer-header h2 { font-size: 30px !important; }
    .cv-container h2 { font-size: 30px !important; }
}

/* ================================================================
   TABLET 769px – 1024px
   ================================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content .hero-headline { font-size: clamp(40px, 5.4vw, 56px); }
    .hire-me-btn { font-size: 18px; padding: 16px 36px; }
    .projects-btn { font-size: 18px; padding: 16px 36px; }
    .form-wrapper { padding: 40px 36px; }
    .form-row { grid-template-columns: 1fr 1fr; }
    .available-badge { font-size: 14px; }
}

/* ================================================================
   ACCESSIBILITY + PERFORMANCE: Reduced Motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================================
   CROSS-BROWSER FIXES
   ================================================================ */

/* Safari: fix position:fixed inside transformed elements */
@supports (-webkit-touch-callout: none) {
    nav {
        /* Force hardware acceleration on Safari iOS */
        -webkit-transform: translateZ(0);
    }
    .bg-animation {
        /* Safari needs explicit -webkit-backdrop-filter */
        -webkit-backdrop-filter: none;
    }
}

/* Touch devices: improve tap responsiveness */
@media (hover: none) and (pointer: coarse) {
    /* Instant feedback on touch — no delay */
    a, button, .main-btn, .hire-me-btn, .projects-btn, .hero-btn, .send-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(56, 189, 248, 0.2);
    }

    /* Disable shimmer/shine effects on touch devices (save CPU) */
    .skill-fill::before,
    .btn-shine,
    .social-icons a::before {
        display: none !important;
    }

    /* Disable grid animation on touch devices */
    .bg-animation::before {
        animation: none !important;
    }

    /* Reduce orb animation duration to save battery */
    .bg-animation::after {
        animation-duration: 30s !important;
    }
}
