/* ==========================================================================
   1. VARIABLES & THEME (Cyberpunk / Glassmorphism)
   ========================================================================== */
:root {
    /* Fluid Typography (Min, Max, Preferred) */
    --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --fs-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --fs-md: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --fs-lg: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --fs-xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
    --fs-xxl: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);

    /* Fluid Spacing */
    --space-xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
    --space-sm: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
    --space-md: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-lg: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --space-xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
    --space-xxl: clamp(4rem, 3rem + 5vw, 8rem);

    /* Colors */
    --bg-main: #0a0a0f;
    --bg-alt: #111116;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;
    
    --primary: hsl(210, 100%, 55%);      /* Neon Blue */
    --primary-glow: rgba(26, 140, 255, 0.4);
    
    --secondary: hsl(270, 100%, 60%);    /* Neon Purple */
    --secondary-glow: rgba(153, 51, 255, 0.4);
    
    --accent: #00ffcc;                   /* Cyan Accent */
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(12px);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Z-Index */
    --z-negative: -1;
    --z-normal: 1;
    --z-tooltip: 100;
    --z-nav: 1000;
    --z-nav-overlay: 999;
    --z-cursor: 9998;
    --z-loader: 9999;
}

/* ==========================================================================
   2. UTILITIES & RESETS
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-main);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 10px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: none; /* Custom cursor */
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

button, input, textarea, select {
    font: inherit;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.accent { color: var(--primary); }
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.flex-grow-1 { flex-grow: 1; }

.section-padding { padding: var(--space-xxl) 0; }
.bg-alt { background-color: var(--bg-alt); }

/* Focus Indicators */
:focus-visible {
    outline: 2px dashed var(--primary);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

/* ==========================================================================
   4. COMPONENTS
   ========================================================================== */
/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: var(--space-lg);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.hover-glow:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
    transform: translateY(-5px);
}

/* Tilt effect applied via JS or CSS hover */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}
.tilt-card:hover {
    border-color: rgba(26, 140, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px var(--primary-glow);
}

/* Badges & Tags */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(26, 140, 255, 0.1);
    border: 1px solid rgba(26, 140, 255, 0.2);
    color: var(--primary);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.status-live { background: rgba(0, 184, 148, 0.2); color: #00b894; border: 1px solid #00b894; }
.status-dev { background: rgba(253, 203, 110, 0.2); color: #fdcb6e; border: 1px solid #fdcb6e; }
.category { background: rgba(0,0,0,0.6); color: #fff; }

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--fs-sm);
    border-radius: 8px;
    cursor: none; /* custom cursor */
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
}
.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    opacity: 0;
    transition: var(--transition-fast);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover {
    box-shadow: 0 6px 20px var(--secondary-glow);
    transform: translateY(-2px);
}
.btn-primary i, .btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    cursor: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}
.section-title {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-sm);
    display: inline-block;
}
.title-line {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary), transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==========================================================================
   5. NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: var(--z-nav);
    padding: var(--space-md) 0;
    transition: var(--transition-smooth);
}
.navbar.scrolled {
    padding: var(--space-sm) 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    font-weight: 800;
    letter-spacing: 1px;
    z-index: calc(var(--z-nav) + 2);
}

/* Desktop Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: var(--fs-sm);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color: var(--text-muted);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}
.nav-link:hover, .nav-link.active { color: var(--text-main); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-btn {
    border: 1px solid var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    color: var(--primary);
    font-weight: 500;
    font-size: var(--fs-sm);
}
.nav-btn:hover {
    background: rgba(26, 140, 255, 0.1);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Hamburger Menu (Mobile/Tablet) */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: none;
    z-index: calc(var(--z-nav) + 2);
    padding: 10px;
}
.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}
.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 4px;
    position: absolute;
    transition: transform 0.15s ease;
}
.hamburger-inner::before, .hamburger-inner::after { content: ""; display: block; }
.hamburger-inner::before { top: -10px; }
.hamburger-inner::after { bottom: -10px; }

/* Hamburger Active State */
.mobile-menu-btn[aria-expanded="true"] .hamburger-inner {
    transform: rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-inner::before {
    top: 0;
    opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
}

/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(100px + var(--space-xl));
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.greeting {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    font-weight: 500;
    margin: var(--space-sm) 0;
    letter-spacing: 2px;
}

.hero-name {
    font-size: var(--fs-xxl);
    margin-bottom: var(--space-sm);
    background: linear-gradient(to right, #fff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-container {
    font-size: var(--fs-lg);
    font-family: var(--font-heading);
    margin-bottom: var(--space-md);
    color: var(--text-muted);
}
.typing-text {
    color: var(--secondary);
    font-weight: 600;
}

.hero-description {
    font-size: var(--fs-base);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    font-size: var(--fs-md);
}
.social-icon:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* Responsive Stats */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}
.stat-box {
    padding: var(--space-sm);
    text-align: center;
}
.stat-box h3 {
    font-size: var(--fs-lg);
    color: var(--primary);
}
.stat-box p {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Code Editor Visual */
.hero-visual {
    position: relative;
    width: 100%;
    perspective: 1000px;
}
.editor-window {
    background: #1e1e24; /* VS Code dark theme look */
    border: 1px solid #333;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}
.editor-window:hover {
    transform: rotateY(0) rotateX(0);
}
.editor-header {
    background: #2d2d3b;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #111;
}
.editor-dots span {
    display: inline-block;
    width: 12px; height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}
.editor-dots span:nth-child(1) { background: #ff5f56; }
.editor-dots span:nth-child(2) { background: #ffbd2e; }
.editor-dots span:nth-child(3) { background: #27c93f; }

.editor-title {
    flex-grow: 1;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    font-family: var(--font-body);
}

.editor-body {
    padding: 20px;
    font-family: var(--font-code);
    font-size: var(--fs-sm);
    line-height: 1.5;
    overflow-x: auto;
}

/* Syntax Highlighting */
.keyword { color: #c678dd; }
.variable { color: #e5c07b; }
.property { color: #e06c75; }
.string { color: #98c379; }
.method { color: #61afef; }
.param { color: #d19a66; }
.comment { color: #5c6370; font-style: italic; }

.float-icon {
    position: absolute;
    width: 60px; height: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite alternate;
}
.icon-react { top: -10px; right: 10px; color: #61dafb; }
.icon-python { bottom: -10px; left: 10px; color: #3776ab; animation-delay: -2s; }

/* ==========================================================================
   7. ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}
.about-subtitle {
    font-size: var(--fs-md);
    color: var(--text-main);
    margin-bottom: var(--space-sm);
}
.about-content p {
    color: var(--text-muted);
}
.quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.fact-item {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    font-weight: 500;
}

.soft-skills-container {
    padding: var(--space-lg);
}
.soft-skills-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
}
.soft-skills-list li:last-child { border-bottom: none; }
.icon-wrap {
    width: 35px; height: 35px;
    background: rgba(26, 140, 255, 0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}

/* ==========================================================================
   8. TIMELINES (Experience, Education, Activities)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 20px;
    height: 100%; width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: var(--space-lg);
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
    position: absolute;
    top: 20px; left: 11px;
    width: 20px; height: 20px;
    background: var(--bg-main);
    border: 4px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
    z-index: 2;
}

.timeline-content {
    padding: var(--space-lg);
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.company-logo-placeholder {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.timeline-info { flex-grow: 1; }
.timeline-title {
    font-size: var(--fs-md);
    color: var(--text-main);
}
.timeline-company {
    font-size: var(--fs-sm);
    color: var(--primary);
    font-weight: 500;
}
.timeline-date {
    margin-left: auto; /* push to right */
}

.timeline-desc {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    margin-bottom: 1rem;
}

details {
    width: 100%;
}
.details-list {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
    color: var(--text-muted);
    font-size: var(--fs-sm);
}
.details-list li {
    margin-bottom: 0.3rem;
}

/* ==========================================================================
   9. PROJECTS SECTION
   ========================================================================== */
.project-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}
.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    margin-bottom: 4rem;
}
.search-box input {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 100%;
    outline: none;
}
.search-box i { color: var(--text-muted); }

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}
.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    cursor: none;
    transition: var(--transition-fast);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.project-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.project-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-img { transform: scale(1.1); }

.project-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 15, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay { opacity: 1; }

.project-badges {
    position: absolute;
    top: 10px; left: 10px;
    display: flex;
    gap: 0.5rem;
}

.project-info {
    padding: var(--space-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.project-title { font-size: var(--fs-md); margin-bottom: 0.5rem; }
.project-desc {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}
.tech-badge { background: rgba(255,255,255,0.02); }

/* ==========================================================================
   10. SKILLS DASHBOARD
   ========================================================================== */
.skills-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}
.skill-group {
    padding: var(--space-md);
}
.skill-cat-title {
    font-size: var(--fs-base);
    margin-bottom: var(--space-sm);
    display: flex; align-items: center; gap: 0.5rem;
}
.skill-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: var(--transition-fast);
}
.skill-icon {
    font-size: 1.5rem;
    color: var(--primary);
}
.skill-info h4 { font-size: var(--fs-sm); font-weight: 500; }
.skill-info .level { font-size: 0.7rem; color: var(--text-muted); }

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.8rem 0;
}
   11. CERTIFICATIONS DASHBOARD
   ========================================================================== */
.cert-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: var(--space-lg);
}
.certs-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    align-items: start;
}
.cert-dashboard-card {
    padding: var(--space-md);
    text-align: left;
}
.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.cert-provider-icon {
    font-size: 2rem;
    color: var(--primary);
}
.cert-title { font-size: var(--fs-base); margin-bottom: 0.2rem; }
.cert-provider { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 400; }

/* ==========================================================================
   12. CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}
.contact-item i { font-size: 1.5rem; color: var(--primary); }
.contact-item h4 { font-size: var(--fs-base); margin-bottom: 0.2rem; }
.contact-item a, .contact-item p { color: var(--text-muted); font-size: var(--fs-sm); word-break: break-all;}
.contact-item a:hover { color: var(--primary); }

.copy-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    width: 40px; height: 40px;
    border-radius: 8px;
    cursor: none;
    transition: var(--transition-fast);
}
.copy-btn:hover { background: var(--primary); color: #fff; }

.toast {
    position: fixed;
    bottom: 20px; left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    background: var(--primary);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    z-index: 10000;
    transition: all 0.3s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

.form-group { position: relative; margin-bottom: 2rem; }
.form-control {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: none;
    border-bottom: 2px solid var(--glass-border);
    padding: 1rem 0.5rem;
    color: var(--text-main);
    transition: var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-bottom-color: var(--primary);
    background: rgba(255,255,255,0.05);
}
.form-group label {
    position: absolute;
    top: 1rem; left: 0.5rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
}
.form-control:focus ~ label, .form-control:not(:placeholder-shown) ~ label {
    top: -10px; font-size: 0.8rem; color: var(--primary);
}
.error-msg {
    display: none;
    color: #ff5f56;
    font-size: 0.8rem;
    position: absolute;
    bottom: -20px; left: 0;
}
.form-group.invalid .form-control { border-bottom-color: #ff5f56; }
.form-group.invalid .error-msg { display: block; }
textarea.form-control { resize: vertical; min-height: 120px; }
.btn-block { width: 100%; }

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--glass-border);
    background: var(--bg-alt);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}
.footer-brand h2 { font-size: var(--fs-lg); margin-bottom: 0.5rem; }
.developer-quote { color: var(--text-muted); font-style: italic; font-size: var(--fs-sm); }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a { font-size: 1.5rem; color: var(--text-muted); }
.footer-social a:hover { color: var(--primary); transform: translateY(-3px); }
.footer-bottom {
    text-align: center; color: var(--text-muted); font-size: 0.85rem;
    padding-top: var(--space-lg); border-top: 1px solid rgba(255,255,255,0.05);
}

.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    background: var(--primary); color: #fff;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: all 0.3s ease; z-index: 99;
}
.back-to-top.active { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--secondary); transform: translateY(-5px); }

/* ==========================================================================
   14. ANIMATIONS & REVEALS
   ========================================================================== */
.reveal-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal-left { opacity: 0; transform: translateX(-30px); transition: all 0.8s ease-out; }
.reveal-right { opacity: 0; transform: translateX(30px); transition: all 0.8s ease-out; }
.reveal-scale { opacity: 0; transform: scale(0.9); transition: all 0.8s ease-out; }

.reveal-up.active, .reveal-left.active, .reveal-right.active, .reveal-scale.active {
    opacity: 1; transform: translate(0) scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Custom Cursor & Loader */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: var(--z-cursor);
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
.cursor-dot { width: 8px; height: 8px; background-color: var(--primary); border-radius: 50%; }
.cursor-outline {
    width: 40px; height: 40px; border: 1px solid var(--primary); border-radius: 50%;
    transition-property: top, left, width, height; transition-duration: 0.1s; transition-timing-function: ease-out;
}
.cursor-hover .cursor-dot { width: 0; height: 0; }
.cursor-hover .cursor-outline { width: 60px; height: 60px; background-color: var(--primary-glow); border-color: transparent; }

#particles, .background-animation {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: var(--z-negative); pointer-events: none; overflow: hidden;
}
.glow-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: float 20s infinite ease-in-out alternate; }
.orb-1 { width: 40vw; height: 40vw; background: var(--primary-glow); top: -10%; left: -10%; }
.orb-2 { width: 50vw; height: 50vw; background: var(--secondary-glow); bottom: -20%; right: -10%; animation-delay: -5s; }
.orb-3 { width: 30vw; height: 30vw; background: rgba(0, 255, 204, 0.15); top: 40%; left: 50%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

.loader-wrapper {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg-main); display: flex; justify-content: center; align-items: center;
    z-index: var(--z-loader); transition: opacity 0.6s ease, visibility 0.6s;
}
.loader-logo { font-size: 3rem; font-family: var(--font-heading); font-weight: 800; margin-bottom: 2rem; animation: pulse 2s infinite; }
.loader-bar-container { width: 200px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin: 0 auto 1rem; }
.loader-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 4px; animation: loadBar 2s ease forwards; }
.loader-text { font-size: 0.8rem; letter-spacing: 4px; color: var(--text-muted); }

@keyframes loadBar { 0% { width: 0%; } 50% { width: 60%; } 100% { width: 100%; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.95); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.pulse-dot {
    display: inline-block; width: 8px; height: 8px; background: var(--primary); border-radius: 50%;
    box-shadow: 0 0 10px var(--primary); animation: pulse 1.5s infinite;
}

.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 10000; width: 0%;
}

/* ==========================================================================
   15. MEDIA QUERIES (Mobile-First approach via overrides)
   ========================================================================== */

/* Laptop (1440px and below) */
@media screen and (max-width: 1440px) {
    .container { width: 95%; }
}

/* Small Laptop / Tablet Landscape (1024px and below) */
@media screen and (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-actions { justify-content: center; }
    .hero-stats-grid { justify-content: center; }
    .hero-description { margin: 0 auto var(--space-lg); }
    .hero-visual { height: 400px; margin-top: var(--space-xl); }
    
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-dashboard { grid-template-columns: repeat(2, 1fr); }
    .certs-dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    
    .timeline::before { left: 20px; }
}

/* Tablet Portrait (768px and below) */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none; /* Hide default nav */
    }
    .mobile-menu-btn {
        display: block; /* Show hamburger */
    }
    
    /* Fullscreen Overlay Nav */
    .nav-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0; visibility: hidden;
        transition: all 0.4s ease;
        z-index: var(--z-nav-overlay);
    }
    .nav-overlay.active { opacity: 1; visibility: visible; }
    
    .nav-overlay .nav-links {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }
    .nav-overlay .nav-link { font-size: var(--fs-lg); }
    
    .about-grid { grid-template-columns: 1fr; }
    .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
    
    .timeline-header { flex-direction: column; align-items: flex-start; }
    .timeline-date { margin-left: 0; }
    
    .footer-content { flex-direction: column; text-align: center; gap: 1.5rem; }
    
    /* Hide custom cursor on touch devices */
    .cursor-dot, .cursor-outline { display: none; }
    body { cursor: auto; }
    .btn, a, button, summary { cursor: pointer; }
}

/* Mobile Large (425px and below) */
@media screen and (max-width: 425px) {
    .project-grid { grid-template-columns: 1fr; }
    .skills-dashboard { grid-template-columns: 1fr; }
    .certs-dashboard-grid { grid-template-columns: 1fr; }
    .hero-stats-grid { grid-template-columns: 1fr; }
    
    .timeline-item { padding-left: 40px; }
    .timeline::before { left: 10px; }
    .timeline-dot { left: 1px; width: 16px; height: 16px; top: 22px; }
    
    .contact-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* Mobile Small (320px and below) handled implicitly by fluid typography */

/* ==========================================
   PROJECT M BOOT SCREEN
   ========================================== */
#project-m-boot {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #050505;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    font-family: 'Courier New', Courier, monospace;
    color: #00d2ff;
}

#project-m-boot.active {
    opacity: 1;
    visibility: visible;
}

.boot-terminal {
    width: 80%;
    max-width: 600px;
}

.boot-line {
    font-size: 1.2rem;
    margin-bottom: 10px;
    min-height: 1.5rem;
    text-shadow: 0 0 5px rgba(0, 210, 255, 0.5);
}

.boot-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    display: none;
}

.boot-progress-fill {
    height: 100%;
    width: 0%;
    background: #00d2ff;
    box-shadow: 0 0 10px #00d2ff;
    transition: width 2s linear;
}
