/* ==========================================================================
   GLOBAL VARIABLES & IMPORTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    /* Color Tokens - Default Dark Mode Theme Base */
    --bg-primary: #060b12;
    --bg-secondary: #0a1220;
    --surface: #0f1a27;
    --surface-2: #14212f;
    --accent-primary: #ff6b4a;
    --accent-secondary: #ff9473;
    --text-primary: #f5f7fb;
    --text-secondary: #c8d3e3;
    --text-muted: #8a9ab5;

    /* Effects and Custom Engine Properties */
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(15, 26, 39, 0.65);
    --shadow-main: rgba(2, 4, 7, 0.5);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables Override mapping */
[data-theme="light"] {
    --bg-primary: #f4f6fb;
    --bg-secondary: #ebeef7;
    --surface: #ffffff;
    --surface-2: #eef1f8;
    --accent-primary: #e8512a;
    --accent-secondary: #ff7a55;
    --text-primary: #0f1a27;
    --text-secondary: #2a3a52;
    --text-muted: #5c6f88;

    --glass-border: rgba(15, 26, 39, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --shadow-main: rgba(42, 58, 82, 0.08);
}

/* ==========================================================================
   RESET & SYSTEM CONTROLS
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Respect reduced motion while keeping anchor scrolling usable */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

/* Custom System Components */
.glass-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 var(--shadow-main);
    transition: var(--transition);
}

/* ==========================================================================
   SCROLL BAR & CURSOR ANIMATION
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

.custom-cursor {
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, opacity 0.3s ease;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-secondary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* When custom cursor is active, hide default mouse cursor */
body.has-custom-cursor {
    cursor: none;
}
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor .filter-btn,
body.has-custom-cursor .project-card {
    cursor: none;
}

/* ==========================================================================
   NAVIGATION ENGINE
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 24px 0;
}

.header.scrolled {
    padding: 14px 0;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.nav-list {
    display: flex;
    gap: 32px;
}

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

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

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-btn {
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-btn:hover {
    color: var(--accent-primary);
    transform: rotate(15deg);
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
}

.hamburger .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .hamburger {
        display: flex;
    }
}

.hamburger.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO FRAMEWORK (CANVAS & BG)
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.gradient-blob {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
    animation: blobAnimation 12s infinite alternate ease-in-out;
}

.blob-1 {
    background: var(--accent-primary);
    top: -10%;
    right: 5%;
}

.blob-2 {
    background: var(--accent-secondary);
    bottom: -10%;
    left: 5%;
    animation-delay: 4s;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-greeting {
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.typing-text {
    color: var(--accent-primary);
    border-right: 2px solid var(--accent-primary);
    padding-right: 4px;
    animation: blink 0.75s step-end infinite;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 40px;
}

/* Scroll Down Mouse Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 3;
    pointer-events: none;
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.6s infinite ease-in-out;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* Buttons Engine */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 74, 0.4);
}

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

.btn-secondary:hover {
    background: var(--surface-2);
    transform: translateY(-3px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-socials {
    display: flex;
    gap: 20px;
}

.hero-socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.hero-socials a:hover {
    color: #ffffff;
    background: var(--accent-primary);
    transform: translateY(-5px);
}

/* Hero Illustration Geometry */
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-illustration {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(45deg, var(--surface-2), var(--accent-primary));
    animation: liquidMorph 8s ease-in-out infinite alternate;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background-image: url("assets/images/profile.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 1;
}

/* Empty Sphere Styling - Glow effect behind morphing profile blob */
.sphere {
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.45) 0%, transparent 70%);
    border-radius: 50%;
    top: -20px;
    left: -20px;
    filter: blur(15px);
    opacity: 0.7;
    animation: floatSphere 6s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes floatSphere {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-15px) scale(1.1); }
}

/* ==========================================================================
   SECTIONS ARCHITECTURE (GLOBAL COMPONENT SETUP)
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    margin: 0 auto;
    border-radius: 2px;
}

.section {
    position: relative;
    z-index: 5;
    scroll-margin-top: 100px;
}

/* About Layout Mechanics */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-text-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.about-text-card p {
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 107, 74, 0.05), transparent 60%);
    pointer-events: none;
}

.stat-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 12px;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: translateY(-4px) scale(1.1);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    display: inline-block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ==========================================================================
   SKILLS PROGRESS MATRIX
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.skill-category {
    padding: 30px;
}

.skill-category h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.skill-category h3 i {
    color: var(--accent-primary);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--surface-2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

/* ==========================================================================
   EDUCATION TIMELINE ENGINE
   ========================================================================== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-left: 2px solid var(--surface-2);
    padding-left: 32px;
}

.timeline-item {
    padding: 32px;
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -42px;
    top: 42px;
    width: 18px;
    height: 18px;
    background: var(--bg-primary);
    border: 4px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-date {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-institution {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.timeline-university {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

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

/* ==========================================================================
   PROJECTS MATRIX & GRID FILTERS
   ========================================================================== */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 107, 74, 0.2);
}

/* Spotlight Mouse Glow Hover Layer */
.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(350px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 107, 74, 0.08), transparent 80%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--surface-2);
    overflow: hidden;
}

/* Modern Vector Mockups Inside Projects */
.project-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--surface-2);
    overflow: hidden;
}

.project-placeholder-img::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, var(--surface) 0%, transparent 100%);
    bottom: 0;
    left: 0;
    z-index: 1;
}

/* Abstract Mockup Windows styling replacing simple icons */
.project-mockup {
    width: 82%;
    height: 72%;
    background: rgba(8, 14, 24, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    font-family: 'Courier New', Courier, monospace;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transform: translateY(12px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    box-sizing: border-box;
}

.project-card:hover .project-mockup {
    transform: translateY(2px) scale(1.02);
}

/* Code Editor mockup styles */
.code-editor .editor-header {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 8px;
    width: 100%;
}

.code-editor .editor-header .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.code-editor .editor-header .dot.red { background: #ff5f56; }
.code-editor .editor-header .dot.yellow { background: #ffbd2e; }
.code-editor .editor-header .dot.green { background: #27c93f; }

.code-editor .editor-header .file-name {
    margin-left: 6px;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.code-editor .editor-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 6px;
    text-align: left;
}

.code-editor .code-line {
    white-space: nowrap;
}

.code-editor .code-line .keyword { color: #f472b6; }
.code-editor .code-line .string { color: #34d399; }
.code-editor .code-line .function { color: #60a5fa; }
.code-editor .code-line.indent { padding-left: 12px; }

/* Database Schematic Mockup */
.database-nodes {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent;
    border: none;
    box-shadow: none;
    height: 100%;
}

.database-nodes .node {
    background: rgba(15, 26, 39, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--text-primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.database-nodes .node i {
    color: var(--accent-primary);
}

.database-nodes .node-line {
    height: 2px;
    width: 30px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    position: relative;
}

.database-nodes .node-line::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-secondary);
    top: -2px;
    left: 0;
    animation: pulseLine 2s infinite linear;
}

@keyframes pulseLine {
    0% { left: 0; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* AI Neural Mockup */
.ai-neural {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    height: 100%;
}

.ai-neural .neural-nodes {
    position: relative;
    background: rgba(255, 107, 74, 0.1);
    color: var(--accent-primary);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    border: 1px solid rgba(255, 107, 74, 0.3);
}

.ai-neural .pulse-ring {
    position: absolute;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    opacity: 0.6;
}

@keyframes pulseRing {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.project-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 3;
}

.project-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.project-tech span {
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.project-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Project Cards Animation States for Filtering */
.project-card.hide {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.show {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ==========================================================================
   CERTIFICATIONS & SERVICES STRUCTURAL BLOCKS
   ========================================================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.cert-card {
    padding: 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.cert-card:hover {
    border-color: var(--accent-primary);
    transform: scale(1.01);
}

.cert-icon-wrapper {
    background: rgba(255, 107, 74, 0.1);
    color: var(--accent-primary);
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cert-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.cert-provider {
    color: var(--accent-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

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

/* Services Design Scheme */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background: var(--surface-2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   CONTACT DISPATCH INTERACTIVE DESIGN
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card-item {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-card-item:hover {
    transform: translateX(5px);
    border-color: var(--accent-primary);
}

.contact-card-item i {
    width: 50px;
    height: 50px;
    background: var(--surface-2);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.contact-card-item:hover i {
    background: var(--accent-primary);
    color: #ffffff;
}

.contact-card-item h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

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

.contact-card-item a:hover {
    color: var(--accent-primary);
}

.contact-form-wrapper {
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(255, 107, 74, 0.15);
}

.form-group.error input,
.form-group.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.error-msg {
    position: absolute;
    bottom: -18px;
    left: 0;
    font-size: 0.75rem;
    color: #ef4444;
    display: none;
}

.form-group.error .error-msg {
    display: block;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   FOOTER ARCHITECTURE
   ========================================================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer .logo {
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-socials {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

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

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

/* Back to Top Design */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    background: var(--accent-primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

#back-to-top.visible {
    right: 30px;
}

#back-to-top:hover {
    transform: translateY(-3px);
}

/* ==========================================================================
   ENGINE MECHANICS (SCROLL TRANSITIONS & ANIMATIONS)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes blobAnimation {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(40px, -60px) scale(1.15);
    }
}

@keyframes liquidMorph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    100% {
        border-radius: 65% 35% 45% 55% / 55% 55% 35% 45%;
    }
}

/* ==========================================================================
   RESPONSIVE DESIGN ADAPTABILITY (MOBILE FIRST COMPLIANT)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

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

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

    .section-padding {
        padding: 80px 0;
    }

    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px 0;
        background: var(--bg-secondary);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-150%);
        transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
        z-index: 999;
        visibility: hidden;
        opacity: 0;
    }

    .nav-menu.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .hamburger.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.open .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .hero-container {
        gap: 30px;
    }

    .hero-illustration {
        width: 220px;
        height: 220px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .cert-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px;
    }

    .cert-icon-wrapper {
        width: 50px;
        height: 50px;
    }

    .cert-card h3 {
        font-size: 1.2rem;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .cert-provider {
        display: block;
        margin-bottom: 10px;
    }

    .cert-details {
        line-height: 1.8;
        word-break: break-word;
    }

    .scroll-indicator {
        display: none;
    }
}
