/* ==========================================================================
   CSS CUSTOM PROPERTIES (THEME DESIGN TOKENS)
   ========================================================================== */
:root {
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Transition Speeds */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout metrics */
    --nav-height: 72px;
    --container-width: 1140px;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
}

/* Mature Dark Theme (Matte Slate & Emerald Accent) */
body.dark-theme {
    --bg-primary: #080b11;      /* Matte background */
    --bg-secondary: #0f131c;    /* Card base background */
    --bg-tertiary: #161c28;     /* Inner background/borders */
    --bg-alt: #05070b;          /* Section contrast background */
    
    --text-primary: #f8fafc;    /* Off-white primary */
    --text-secondary: #94a3b8;  /* Cool grey secondary */
    --text-muted: #475569;      /* Border tone contrast */

    --accent-primary: #10b981;   /* Emerald */
    --accent-secondary: #3b82f6; /* Executive Blue */
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    --accent-glow: rgba(16, 185, 129, 0.06);

    --border-color: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(255, 255, 255, 0.12);
    --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
    --glass-bg: rgba(8, 11, 17, 0.8);
    
    --pre-bg: #05070c;
    --keyword: #f472b6;
    --string: #34d399;
    --comment: #64748b;
    --number: #fbbf24;
}

/* Mature Light Theme (Clean Workspace) */
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-alt: #f1f5f9;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-primary: #059669;
    --accent-secondary: #2563eb;
    --accent-gradient: linear-gradient(135deg, #059669 0%, #2563eb 100%);
    --accent-glow: rgba(5, 150, 105, 0.05);

    --border-color: rgba(15, 23, 42, 0.06);
    --border-hover: rgba(15, 23, 42, 0.12);
    --card-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.06);
    --glass-bg: rgba(248, 250, 252, 0.85);

    --pre-bg: #f8fafc;
    --keyword: #c084fc;
    --string: #059669;
    --comment: #94a3b8;
    --number: #ea580c;
}

/* ==========================================================================
   RESET, CANVAS BACKGROUND & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.625;
    font-weight: 400;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Interactive Network Canvas Background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* Let clicks pass through */
    opacity: 0.6;
}

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

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.section {
    padding: 6.5rem 0;
}

.bg-alt {
    background-color: var(--bg-alt);
    position: relative;
    z-index: 2;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient {
    color: var(--accent-primary);
}

.highlight-text {
    color: var(--accent-primary);
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-badge {
    background: var(--accent-glow);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
}

.duration-badge {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.section-tag {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 3.5rem;
    position: relative;
    letter-spacing: -0.01em;
}

.section-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 1.5px;
    margin-top: 0.5rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.68rem 1.45rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
    font-family: var(--font-primary);
    font-size: 0.88rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px 0 rgba(16, 185, 129, 0.15);
}

.btn-primary:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px 0 rgba(16, 185, 129, 0.25);
}

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

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.02);
}

.btn-sm {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-icon:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ==========================================================================
   CARDS (PREMIUM HOVER GLOW & INTERACTIVITY)
   ========================================================================== */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    box-shadow: var(--card-shadow);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 35px -10px rgba(16, 185, 129, 0.12);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (INTERSECTION OBSERVER SYSTEM)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered transition delay items */
.card-delay-1 { transition-delay: 0.08s; }
.card-delay-2 { transition-delay: 0.16s; }
.card-delay-3 { transition-delay: 0.24s; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.nav-container {
    max-width: var(--container-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo-accent {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.35rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-normal);
}

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

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

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

/* Theme Toggle Icons */
body.dark-theme .sun-icon { display: block; }
body.dark-theme .moon-icon { display: none; }
body.light-theme .sun-icon { display: none; }
body.light-theme .moon-icon { display: block; }

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Nav Menu Drawer */
.mobile-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--bg-primary);
    z-index: 99;
    padding: 2.5rem 1.5rem;
    display: none;
    flex-direction: column;
    animation: fadeIn var(--transition-fast) forwards;
    border-top: 1px solid var(--border-color);
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: block;
}

.mobile-link:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 2rem);
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    height: 36px;
}

.typing-cursor {
    color: var(--accent-primary);
    animation: blink 0.7s infinite;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-socials {
    display: flex;
    gap: 1.25rem;
}

.hero-socials a {
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.hero-socials a:hover {
    color: var(--accent-primary);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* Dynamic Interactive Dashboard Terminal Card */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    animation: fadeIn 1.2s ease forwards;
}

.visual-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.dashboard-card {
    padding: 0;
    overflow: hidden;
    background-color: var(--pre-bg);
    border: 1px solid var(--border-color);
}

.dashboard-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--card-shadow);
}

.dashboard-header {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 0.6rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.dots-wrapper {
    display: flex;
    gap: 0.45rem;
}

.tabs-container {
    display: flex;
    gap: 0.25rem;
}

.console-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border-radius: 3px;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.console-tab:hover {
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.04);
}

.console-tab.active {
    color: var(--accent-primary);
    background-color: rgba(16, 185, 129, 0.08);
    font-weight: 600;
}

.dashboard-body {
    padding: 1.25rem;
    font-family: monospace;
    font-size: 0.78rem;
    overflow-x: auto;
    line-height: 1.5;
    min-height: 180px; /* Preserve height on tab switch */
}

/* Tab Switch Display states */
.console-block {
    display: none;
}
.console-block.active {
    display: block;
    animation: fadeIn var(--transition-fast) forwards;
}

.dashboard-body code {
    color: var(--text-primary);
}

.keyword { color: var(--keyword); font-weight: bold; }
.comment { color: var(--comment); font-style: italic; }
.string { color: var(--string); }
.number { color: var(--number); }

.metric-mini-card {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-primary);
    border-radius: var(--border-radius-sm);
    padding: 0.85rem 1.25rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    animation: hoverPulse 4s infinite alternate ease-in-out;
}

.metric-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin: 0.15rem 0;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mouse {
    width: 20px;
    height: 32px;
    border: 1.5px solid var(--text-muted);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.wheel {
    width: 3px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 1.5px;
    animation: scrollMouse 1.5s infinite;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.96rem;
}

.cta-mini {
    margin-top: 1.75rem;
    padding: 1.25rem;
    border-radius: var(--border-radius-sm);
    border: 1px dashed var(--border-color);
    background-color: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cta-mini strong {
    font-size: 0.88rem;
    font-weight: 600;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.feature-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.card-icon {
    font-size: 1.75rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.6rem;
}

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

.skill-tag {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 0.45rem 0.85rem;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   EXPERIENCE SECTION (TIMELINE)
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 1px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 100px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
}

.timeline-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-primary);
    left: 95px;
    top: 20px;
    z-index: 5;
}

.timeline-date {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding-top: 14px;
    text-align: right;
    line-height: 1.3;
}

.timeline-content {
    position: relative;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0.35rem 0 0.15rem 0;
}

.company-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.timeline-bullets {
    padding-left: 1.15rem;
    list-style-type: disc;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.9rem;
}

.timeline-bullets li strong {
    color: var(--text-primary);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.45rem 1.15rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.82rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-icon {
    font-size: 1.75rem;
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

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

.project-details {
    margin-bottom: 1.25rem;
    padding-left: 1rem;
    list-style-type: disc;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.tech-tag {
    background-color: var(--bg-alt);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.project-links {
    margin-top: auto;
}

.project-card.hide {
    display: none;
}

/* ==========================================================================
   CERTIFICATIONS SECTION
   ========================================================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.cert-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.25rem;
}

.cert-logo {
    font-size: 1.75rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-info h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.cert-issuer {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.cert-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cert-skill {
    display: block;
    font-size: 0.75rem;
    background-color: var(--bg-alt);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    width: fit-content;
    margin-top: 0.45rem;
    color: var(--text-secondary);
}

.cert-link {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-secondary);
    text-decoration: underline;
    margin-top: 0.45rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-item .icon {
    font-size: 1.25rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.contact-item p {
    font-weight: 500;
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.contact-form-container {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    font-size: 0.9rem;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scrollMouse {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(4px); opacity: 0.5; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes hoverPulse {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE, TABLET AND MOBILE GRID FIXES)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta, .hero-socials {
        justify-content: center;
    }
    .hero-visual {
        order: -1;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }
    .section-title {
        font-size: 1.85rem;
        margin-bottom: 2.5rem;
    }
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .navbar .resume-btn {
        display: none;
    }
    
    /* Perfect Mobile Timeline Shift */
    .timeline::after {
        left: 15px;
    }
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 2.5rem;
    }
    .timeline-dot {
        left: 9px;
        top: 2px;
    }
    .timeline-date {
        text-align: left;
        padding-left: 32px;
        padding-top: 0;
        font-size: 0.78rem;
        font-weight: 700;
    }
    .timeline-content {
        padding-left: 12px;
    }
    .timeline-content h3 {
        font-size: 1.15rem;
    }
    .company-name {
        margin-bottom: 0.75rem;
        font-size: 0.88rem;
    }
    .timeline-bullets {
        font-size: 0.85rem;
        padding-left: 1rem;
    }

    .hero-title {
        font-size: 2.3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        height: 28px;
    }
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.75rem;
    }
    .hero-cta {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    .hero-cta .btn {
        width: 100%;
    }

    /* Terminal on Mobile scale fixes */
    .visual-card-wrapper {
        max-width: 100%;
    }
    .dashboard-header {
        padding: 0.5rem 0.75rem;
    }
    .console-tab {
        font-size: 0.68rem;
        padding: 0.2rem 0.35rem;
    }
    .dashboard-body {
        padding: 1rem;
        font-size: 0.72rem;
        min-height: 150px;
    }
    .metric-mini-card {
        right: 0;
        bottom: -20px;
        padding: 0.6rem 1rem;
    }
    .metric-value {
        font-size: 1.25rem;
    }

    .about-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.25rem;
    }
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .contact-form-container {
        padding: 1.25rem;
    }
    .cta-mini {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ==========================================================================
   PRINT STYLES (FLAWLESS RESUME EXPORT)
   ========================================================================== */
.print-only {
    display: none;
}

@media print {
    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        font-family: 'Times New Roman', Times, serif;
    }
    
    .no-print, main, nav, footer, .scroll-indicator, #particle-canvas {
        display: none !important;
    }

    .print-only {
        display: block !important;
        max-width: 750px;
        margin: 0 auto;
        padding: 0;
    }

    .print-header {
        text-align: center;
        margin-bottom: 12px;
    }

    .print-header h1 {
        font-size: 24pt;
        font-weight: bold;
        margin-bottom: 2px;
        color: #000;
    }

    .print-subtitle {
        font-size: 11pt;
        font-style: italic;
        margin-bottom: 6px;
        color: #333;
    }

    .print-meta {
        font-size: 9.5pt;
        margin-bottom: 12px;
        color: #444;
    }

    .print-sec {
        margin-bottom: 12px;
    }

    .print-sec h2 {
        font-size: 11pt;
        font-weight: bold;
        text-transform: uppercase;
        border-bottom: 1px solid #000000;
        margin-bottom: 6px;
        padding-bottom: 2px;
        color: #000;
    }

    .print-sec p {
        font-size: 9.5pt;
        line-height: 1.3;
        margin-bottom: 4px;
        text-align: justify;
    }

    .print-skills-list {
        font-size: 9.5pt;
        margin-bottom: 4px;
        padding-left: 0;
        list-style: none;
    }

    .print-skills-list li {
        margin-bottom: 3px;
    }

    .print-job, .print-project {
        margin-bottom: 8px;
    }

    .print-job-title {
        font-size: 9.5pt;
        display: flex;
        justify-content: space-between;
        font-weight: normal;
    }

    .print-job-date {
        float: right;
        font-weight: normal;
        font-size: 9.5pt;
        margin-top: -16px;
    }

    .print-bullets {
        font-size: 9.5pt;
        margin-top: 3px;
        padding-left: 15px;
        line-height: 1.3;
    }

    .print-bullets li {
        margin-bottom: 2px;
    }

    .print-date-align {
        float: right;
    }

    .print-cert-list {
        padding-left: 15px;
        font-size: 9.5pt;
    }

    .print-cert-list li {
        margin-bottom: 2px;
    }
}
