/* ==========================================================================
   Sadique Shaikh — Modern DevOps & InfoSec Portfolio Design System
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    --bg-main: #070a13;
    --bg-card: rgba(14, 22, 38, 0.72);
    --bg-card-hover: rgba(20, 31, 54, 0.85);
    --bg-card-border: rgba(56, 189, 248, 0.14);
    --bg-card-border-hover: rgba(56, 189, 248, 0.45);
    
    --primary: #06b6d4;         /* Electric Cyan */
    --primary-glow: rgba(6, 182, 212, 0.35);
    --secondary: #8b5cf6;       /* Cyber Violet */
    --secondary-glow: rgba(139, 92, 246, 0.35);
    --accent: #3b82f6;          /* Royal Blue */
    --accent-emerald: #10b981;  /* Terminal Green */
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Base & Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* --- Background Ambient Canvas & Glow Orbs --- */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.75;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.28;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%);
    top: 40%;
    left: 30%;
    animation-delay: -14s;
    opacity: 0.18;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.6;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
}

.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--primary) !important; }
.text-purple { color: var(--secondary) !important; }
.text-green { color: var(--accent-emerald) !important; }
.text-yellow { color: var(--accent-yellow) !important; }
.text-blue { color: var(--accent) !important; }

/* --- Glassmorphism Panels --- */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: var(--transition-bounce);
}

.glass-panel:hover {
    border-color: var(--bg-card-border-hover);
    box-shadow: 0 20px 45px -12px rgba(6, 182, 212, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* --- Buttons & UI Elements --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
    color: #ffffff;
}

.btn-outline {
    background: rgba(14, 22, 38, 0.6);
    border: 1px solid var(--primary);
    color: var(--primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--primary);
    color: #070a13;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.1rem 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(7, 10, 19, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(7, 10, 19, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(6, 182, 212, 0.2);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.brand-bracket {
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition-fast);
}

/* --- Section Layouts --- */
.section {
    padding: 6.5rem 0;
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.8rem auto;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    padding-top: 8.5rem;
    padding-bottom: 4rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.4rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-size: 3.4rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.typewriter-container {
    font-family: var(--font-mono);
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.typewriter-prefix {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.typewriter-text {
    color: #38bdf8;
    font-weight: 600;
}

.cursor {
    animation: blinkCursor 1s step-end infinite;
    color: var(--primary);
    font-weight: bold;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.8rem;
    max-width: 620px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin-bottom: 2.2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--primary);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.2rem;
}

.hero-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-bounce);
}

.social-btn:hover {
    transform: translateY(-4px);
}

.social-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}

.social-btn.github:hover {
    background: #333333;
    border-color: #555555;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.social-btn.email:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(234, 67, 53, 0.4);
}

.social-btn.phone:hover {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* --- Hero Terminal Graphic --- */
.hero-graphic {
    position: relative;
}

.tech-card-wrapper {
    position: relative;
}

.tech-glow-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(139, 92, 246, 0.2));
    filter: blur(50px);
    border-radius: 50%;
    z-index: 0;
}

.profile-card {
    position: relative;
    z-index: 1;
    padding: 1.8rem;
    border-radius: var(--radius-lg);
    background: rgba(11, 17, 31, 0.88);
}

.card-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.2rem;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.terminal-dots .red { background: #ef4444; }
.terminal-dots .yellow { background: #f59e0b; }
.terminal-dots .green { background: #10b981; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-dim);
}

.terminal-body {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.6;
}

.terminal-line {
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cmd-prompt { color: var(--primary); font-weight: 700; }
.cmd-text { color: #f1f5f9; }

.terminal-output {
    margin-left: 1rem;
    margin-top: 0.25rem;
}

.text-json {
    color: #94a3b8;
    white-space: pre;
    font-size: 0.82rem;
}

.json-key { color: #38bdf8; }
.json-val { color: #a78bfa; }

/* Floating Badges on Hero Card */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    background: rgba(14, 22, 38, 0.95);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: var(--radius-full);
    backdrop-filter: blur(12px);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    animation: floatingBob 4s ease-in-out infinite;
}

.badge-top-right {
    top: -20px;
    right: -15px;
    color: #38bdf8;
    animation-delay: 0s;
}

.badge-bottom-left {
    bottom: -20px;
    left: -20px;
    color: #10b981;
    animation-delay: -1.5s;
}

.badge-bottom-right {
    bottom: 25px;
    right: -25px;
    color: #f59e0b;
    animation-delay: -2.5s;
}

@keyframes floatingBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- Stats Bar --- */
.stats-bar-container {
    max-width: 1240px;
    margin: 3.5rem auto 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
}

.about-story {
    padding: 2.5rem;
}

.about-story h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #38bdf8;
}

.about-story p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1.02rem;
}

.about-highlights {
    margin-top: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.highlight-item i {
    color: var(--accent-emerald);
    margin-top: 0.25rem;
}

.about-pillars {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.pillar-card {
    padding: 1.4rem 1.6rem;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pillar-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.pillar-content p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skill-category-card {
    padding: 2.2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.cat-icon {
    font-size: 1.5rem;
}

.category-header h3 {
    font-size: 1.35rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.skill-pill:hover {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.35);
    color: #38bdf8;
    transform: translateY(-2px);
}

.skill-pill i {
    color: var(--primary);
}

/* --- Certifications Section --- */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.cert-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.cert-card.featured-cert {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(14, 22, 38, 0.9), rgba(15, 28, 52, 0.8));
    border-color: rgba(6, 182, 212, 0.4);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px 0 0 4px;
}

.cert-badge-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
}

.cert-issuer {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.cert-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.cert-description {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    line-height: 1.55;
}

.cert-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-tag {
    font-size: 0.82rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cert-status.verified {
    color: var(--accent-emerald);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- Projects Section --- */
.projects-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.6rem 1.3rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #070a13;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition-bounce);
}

.project-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.8rem;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 600;
}

.project-stars {
    color: var(--accent-yellow);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-type {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--secondary);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.project-title {
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.6rem;
}

.tech-tag {
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-sm);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.18);
    color: #7dd3fc;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.project-links {
    display: flex;
    gap: 0.8rem;
}

.projects-cta {
    text-align: center;
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.projects-cta p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- Experience Timeline --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    top: 24px;
    left: -2.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    box-shadow: 0 0 15px var(--primary-glow);
}

.timeline-content {
    padding: 2rem;
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.role-title {
    font-size: 1.28rem;
    color: var(--text-main);
}

.company-name {
    font-size: 0.95rem;
    color: #38bdf8;
    font-weight: 500;
    margin-top: 0.2rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.timeline-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.timeline-list li {
    position: relative;
    padding-left: 1.3rem;
    color: var(--text-muted);
    font-size: 0.93rem;
}

.timeline-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.timeline-note {
    color: var(--text-muted);
    font-size: 0.93rem;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
}

.contact-info-panel {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.contact-info-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.contact-info-panel > p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.method-icon {
    font-size: 1.35rem;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-content {
    flex-grow: 1;
    overflow: hidden;
}

.method-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 600;
}

.method-val {
    font-size: 0.92rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    display: block;
    word-break: break-all;
}

.method-val:hover {
    color: var(--primary);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    color: var(--primary);
    background: rgba(6, 182, 212, 0.1);
}

.domain-callout {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    font-size: 0.9rem;
    color: var(--text-main);
}

.domain-callout i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Contact Form */
.contact-form-panel {
    padding: 2.5rem;
}

.contact-form-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.form-subheading {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group label i {
    color: var(--primary);
    font-size: 0.8rem;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(11, 17, 31, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.form-input::placeholder {
    color: var(--text-dim);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}

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

.form-status {
    font-size: 0.9rem;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 0.6rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}

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

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(4, 7, 14, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 0 2rem 0;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-top: 0.4rem;
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    background: var(--primary);
    color: #070a13;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.8rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- ATS Resume Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: #0f172a;
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.95);
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-title-wrap h3 {
    font-size: 1.2rem;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.3rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--accent-red);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    background: #f8fafc;
    color: #1e293b;
}

/* Printable ATS Resume Styling */
.ats-resume-document {
    font-family: Arial, Helvetica, sans-serif;
    color: #111827;
    line-height: 1.5;
}

.ats-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.ats-header h1 {
    font-size: 1.8rem;
    color: #0f172a;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
    font-family: Arial, Helvetica, sans-serif;
}

.ats-contact-info {
    font-size: 0.88rem;
    color: #4b5563;
}

.ats-contact-info a {
    color: #0284c7;
    text-decoration: none;
}

.ats-section {
    margin-bottom: 1.4rem;
}

.ats-section h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.2rem;
    font-family: Arial, Helvetica, sans-serif;
}

.ats-section hr {
    border: none;
    border-top: 1.5px solid #0f172a;
    margin-bottom: 0.6rem;
}

.ats-section p {
    font-size: 0.88rem;
    color: #374151;
    text-align: justify;
}

.ats-section ul {
    margin-left: 1.2rem;
    font-size: 0.88rem;
    color: #374151;
}

.ats-section li {
    margin-bottom: 0.35rem;
}

.ats-job {
    margin-bottom: 0.85rem;
}

.ats-job-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #1f2937;
}

/* Print Media Query */
@media print {
    body * {
        visibility: hidden;
    }
    #printableResume, #printableResume * {
        visibility: visible;
    }
    #printableResume {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 0 !important;
    }
}

/* --- Toast Container --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-md);
    background: rgba(14, 22, 38, 0.96);
    border: 1px solid var(--primary);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-meta, .hero-buttons, .hero-socials, .typewriter-container {
        justify-content: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cert-card.featured-cert {
        grid-column: span 2;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(7, 10, 19, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2.5rem;
        gap: 1.8rem;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navbar .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

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

    .cert-card.featured-cert {
        grid-column: span 1;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top, .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
}
