/* ============================================================
   MAZEN IBRAHIM — DEVOPS PORTFOLIO
   Dark theme · Glassmorphism · Neon accents · Cyber aesthetic
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1520;
    --bg-card: rgba(15, 25, 45, 0.65);
    --bg-card-hover: rgba(20, 35, 65, 0.75);
    --glass-border: rgba(0, 224, 255, 0.12);
    --glass-shadow: rgba(0, 0, 0, 0.4);

    --accent: #00e0ff;
    --accent-dim: #008fa3;
    --accent-glow: rgba(0, 224, 255, 0.25);
    --accent-2: #7b61ff;
    --accent-3: #00ffa3;

    --text-primary: #e8ecf1;
    --text-secondary: #8892a4;
    --text-dim: #4a5568;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;

    --radius: 14px;
    --radius-sm: 8px;
    --radius-pill: 50px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-dim) var(--bg-secondary);
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-dim);
    border-radius: 4px;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #fff;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Particles Canvas ---------- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Glass Card Utility ---------- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px var(--glass-shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 224, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 224, 255, 0.08), 0 8px 32px var(--glass-shadow);
}

/* ---------- Section Common ---------- */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section--alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 56px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--glass-border), transparent);
    max-width: 300px;
}

.section-number {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0e17;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 224, 255, 0.4);
    color: #0a0e17;
}

.btn--outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn--outline:hover {
    background: rgba(0, 224, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ---------- Tags ---------- */
.tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(0, 224, 255, 0.08);
    border: 1px solid rgba(0, 224, 255, 0.15);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 500;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.logo-bracket {
    color: var(--accent);
    transition: text-shadow 0.4s ease;
}

.nav-logo:hover .logo-bracket {
    text-shadow: 0 0 12px var(--accent-glow), 0 0 24px rgba(0, 224, 255, 0.15);
}

.logo-short {
    display: inline-block;
    max-width: 40px;
    overflow: hidden;
    transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    white-space: nowrap;
}

.logo-full {
    display: inline-block;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease 0.1s;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoTextFlow 4s ease-in-out infinite;
}

.nav-logo:hover .logo-short {
    max-width: 0;
    opacity: 0;
}

.nav-logo:hover .logo-full {
    max-width: 220px;
    opacity: 1;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: rgba(0, 224, 255, 0.06);
}

.nav-link--cta {
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    border-radius: var(--radius-pill);
}

.nav-link--cta:hover {
    background: var(--accent);
    color: #0a0e17 !important;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 120px 24px 60px;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 224, 255, 0.06) 0%, transparent 60%);
}

.hero-content {
    max-width: 720px;
}

/* Hero Photo */
.hero-photo-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 28px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
    animation: fadeInDown 0.8s ease-out, photoGlow 4s ease-in-out infinite alternate;
    position: relative;
}

.hero-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 3px solid var(--bg-primary);
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease-out;
}

.hero-name {
    font-size: clamp(2.8rem, 7vw, 4.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Terminal */
.hero-terminal {
    background: rgba(10, 14, 23, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 0 auto 24px;
    max-width: 520px;
    text-align: left;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.terminal-bar {
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot--red {
    background: #ff5f57;
}

.terminal-dot--yellow {
    background: #ffbd2e;
}

.terminal-dot--green {
    background: #28c840;
}

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 16px 18px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent-3);
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-prompt {
    color: var(--accent);
    font-weight: 600;
}

.terminal-cursor {
    display: inline-block;
    color: var(--accent);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-socials {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 1s both;
    margin-bottom: 60px;
}

.hero-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all var(--transition);
}

.hero-socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 1px;
    animation: fadeInUp 1.2s ease-out 1.2s both;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--text-dim);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 1.8s ease-in-out infinite;
}

/* ============================================================
   DEVOPS TOOLS MARQUEE BAR
   ============================================================ */
.tools-marquee-section {
    position: relative;
    z-index: 1;
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.marquee-label {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(0, 224, 255, 0.04);
    border: 1px solid rgba(0, 224, 255, 0.08);
    border-radius: var(--radius-pill);
    white-space: nowrap;
    transition: all var(--transition);
    cursor: default;
}

.marquee-item:hover {
    background: rgba(0, 224, 255, 0.12);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.marquee-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(0, 224, 255, 0.2));
}

.marquee-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--accent);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.stat-card {
    text-align: center;
    padding: 20px 12px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.about-info-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.info-item:hover {
    border-color: rgba(0, 224, 255, 0.25);
}

.info-item i {
    font-size: 1.3rem;
    color: var(--accent);
    margin-top: 4px;
}

.info-item h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.info-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
    line-height: 1.5;
}

.info-sub {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 28px;
    width: 18px;
    height: 18px;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-content {
    padding: 28px;
}

.timeline-header {
    margin-bottom: 16px;
}

.timeline-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-company,
.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-right: 20px;
}

.timeline-company i,
.timeline-date i {
    color: var(--accent);
    font-size: 0.8rem;
}

.timeline-details {
    list-style: none;
    margin-bottom: 16px;
}

.timeline-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-details li::before {
    content: '▹';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.project-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 224, 255, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--accent);
}

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition);
}

.project-link:hover {
    color: var(--accent);
}

/* Featured project card */
.project-card--featured {
    border-color: rgba(0, 224, 255, 0.3);
    background: rgba(0, 224, 255, 0.04);
    grid-column: 1 / -1;
}

.project-card--featured::before {
    background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-2));
    transform: scaleX(1);
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0e17;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
}

.project-bullets {
    list-style: none;
    margin-bottom: 16px;
    flex: 1;
}

.project-bullets li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-bullets li::before {
    content: '▹';
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.skill-category {
    padding: 28px;
}

.skill-category--soft {
    grid-column: 1 / -1;
}

.skill-cat-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.skill-cat-header i {
    font-size: 1.3rem;
    color: var(--accent);
}

.skill-cat-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 224, 255, 0.04);
    border: 1px solid rgba(0, 224, 255, 0.06);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.skill-item:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(0, 224, 255, 0.08);
    transform: translateX(4px);
}

.skill-item i {
    font-size: 1.1rem;
    color: var(--accent);
    width: 20px;
    text-align: center;
}

.soft-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.soft-tag {
    padding: 10px 22px;
    background: rgba(123, 97, 255, 0.08);
    border: 1px solid rgba(123, 97, 255, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    color: var(--accent-2);
    font-weight: 500;
    transition: all var(--transition);
}

.soft-tag:hover {
    background: rgba(123, 97, 255, 0.18);
    transform: translateY(-2px);
}

/* ============================================================
   CERTIFICATES
   ============================================================ */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.cert-card {
    padding: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.cert-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 224, 255, 0.08);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 1.2rem;
    color: var(--accent);
}

.cert-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cert-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 12px;
}

.cert-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.cert-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(0, 255, 163, 0.1);
    border: 1px solid rgba(0, 255, 163, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    color: var(--accent-3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.cert-badge--progress {
    background: rgba(255, 189, 46, 0.1);
    border-color: rgba(255, 189, 46, 0.2);
    color: #ffbd2e;
}

/* ============================================================
   ACHIEVEMENTS
   ============================================================ */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

.achievement-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    align-items: flex-start;
}

.achievement-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.12), rgba(123, 97, 255, 0.12));
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    color: #ffd700;
    flex-shrink: 0;
}

.achievement-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.achievement-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.achievement-date {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-secondary);
}

.contact-card i {
    font-size: 1.3rem;
    color: var(--accent);
    width: 24px;
    text-align: center;
}

.contact-card h4 {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-card span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-form {
    padding: 36px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    position: relative;
    z-index: 1;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--text-dim);
    font-size: 1.1rem;
    transition: color var(--transition);
}

.footer-socials a:hover {
    color: var(--accent);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.3;
    }
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes photoGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 224, 255, 0.2), 0 0 40px rgba(0, 224, 255, 0.1);
    }

    100% {
        box-shadow: 0 0 30px rgba(123, 97, 255, 0.3), 0 0 60px rgba(0, 224, 255, 0.15);
    }
}

@keyframes logoTextFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .certs-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-dot {
        left: -30px;
        width: 14px;
        height: 14px;
    }

    .timeline-content {
        padding: 22px;
    }

    .hero-name {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .certs-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .achievement-card {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: #070b12;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.loader-overlay.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo-wrap {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 40px;
    letter-spacing: -1px;
    animation: loaderPulse 1.1s ease-in-out infinite;
    font-family: var(--font-main);
}

.loader-bar-track {
    width: 260px;
    height: 3px;
    background: rgba(0, 224, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 18px;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
    background-size: 300% 100%;
    border-radius: 3px;
    box-shadow: 0 0 14px var(--accent-glow);
    animation: loaderShimmer 1.5s linear infinite;
    transition: width 0.1s linear;
}

.loader-status {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    min-height: 1.2em;
    transition: opacity 0.3s;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 20px rgba(0, 224, 255, 0.4); }
    50% { opacity: 0.5; text-shadow: none; }
}

@keyframes loaderShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    z-index: 1001;
    box-shadow: 0 0 8px var(--accent-glow);
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ============================================================
   CURSOR SPOTLIGHT
   ============================================================ */
.cursor-spotlight {
    position: fixed;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle at center,
        rgba(0, 224, 255, 0.055) 0%,
        rgba(123, 97, 255, 0.02) 40%,
        transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    will-change: left, top;
    left: -350px;
    top: -350px;
}

/* ============================================================
   3D CARD TILT
   ============================================================ */
.project-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow var(--transition),
                border-color var(--transition),
                background var(--transition) !important;
    will-change: transform;
    transform-style: preserve-3d;
}

.project-card.is-tilting {
    transition: none !important;
}

/* ============================================================
   FEATURED CARD — ANIMATED SCAN LINE
   ============================================================ */
.project-card--featured::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent) 30%,
        var(--accent-3) 60%,
        transparent 100%);
    animation: scanLine 3.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    opacity: 0.5;
    pointer-events: none;
    top: 0;
}

@keyframes scanLine {
    0%   { top: 0%; opacity: 0; }
    5%   { opacity: 0.6; }
    95%  { opacity: 0.6; }
    100% { top: 100%; opacity: 0; }
}

/* ============================================================
   SKILL ITEM — FULL WIDTH
   ============================================================ */
.skill-item--full {
    grid-column: 1 / -1;
}

/* ============================================================
   BUTTON RIPPLE
   ============================================================ */
.btn {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    transform: scale(0);
    animation: btnRipple 0.65s linear forwards;
    pointer-events: none;
}

@keyframes btnRipple {
    to { transform: scale(4); opacity: 0; }
}

/* ============================================================
   STAT COUNTER GLOW
   ============================================================ */
.stat-number {
    transition: text-shadow 0.3s ease;
}

.stat-card:hover .stat-number {
    text-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(0, 224, 255, 0.2);
}

/* ============================================================
   SECTION TITLE ACCENT UNDERLINE ANIMATE
   ============================================================ */
.section-title .section-number {
    position: relative;
}

/* ============================================================
   HERO NAME GLOW ON HOVER
   ============================================================ */
.hero-name {
    transition: filter 0.4s ease;
    cursor: default;
}

.hero-name:hover {
    filter: drop-shadow(0 0 24px rgba(0, 224, 255, 0.45));
}