:root {
    --bg-color: #020202;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #0fa4af; /* Requested Teal */
    --accent-glow: rgba(15, 164, 175, 0.3);
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --overlay: rgba(2, 2, 2, 0.7);
    --glare-gradient: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.4) 25%, transparent 30%);
}

body.light-mode {
    --bg-color: #ffffff; /* Clean stark white instead of silver */
    --text-primary: #111111;
    --text-secondary: #444444;
    --accent: #0fa4af; /* Requested Teal */
    --accent-glow: rgba(15, 164, 175, 0.3);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-border: rgba(0, 0, 0, 0.1);
    --overlay: rgba(255, 255, 255, 0.6);
    --glare-gradient: linear-gradient(105deg, transparent 20%, rgba(0,0,0,0.05) 25%, transparent 30%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.8s ease, color 0.8s ease, border-color 0.8s ease; 
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    cursor: none; /* Hide default cursor */
}

a, button {
    cursor: none;
}

.accent-dot {
    color: var(--accent);
}

/* CUSTOM CURSOR GHOST TRAIL */
.cursor-trail {
    position: fixed;
    top: 0; left: 0;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 0 10px var(--accent-glow);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.cursor-trail.hover-active {
    background: #ffffff;
    box-shadow: 0 0 25px #ffffff;
    transform: scale(3) !important; /* Makes the head of the snake pop */
}

#webgl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0; 
}

#loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Dynamic Shifting Gradient */
    background: linear-gradient(
        -45deg, 
        #050505, 
        #1a0014, 
        #001a1a, 
        #0a0a0a
    );
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    overflow: hidden;
}

/* Endless 3D Moving Grid */
#loading-screen::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(var(--accent) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.15;
    transform: perspective(600px) rotateX(60deg) translateY(0);
    animation: gridMove 2s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gridMove {
    0% { transform: perspective(600px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(600px) rotateX(60deg) translateY(50px); }
}

.loading-ui {
    width: 90%;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 10;
}

.brand { margin-bottom: 20px; }

.portfolio-name {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: 12px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--text-primary), #888, var(--text-primary));
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: textShine 3s linear infinite;
}

.portfolio-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 24px;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
    margin-top: 10px;
}

@keyframes textShine { to { background-position: 200% center; } }

.loading-title {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 6px;
    color: var(--text-secondary);
}

.loading-title .glow {
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

.loading-center {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 40px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circular-progress {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress circle {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
}

.circular-progress .bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.circular-progress .fg {
    stroke: var(--accent);
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    transition: stroke-dashoffset 0.1s linear;
}

.loading-percentage {
    position: relative;
    z-index: 2;
    font-family: 'Syncopate', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 0 20px var(--accent-glow);
}

.loading-details {
    display: flex;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ---- MAIN CONTENT ---- */
#main-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    display: none; 
    opacity: 0;
    flex-direction: column;
    pointer-events: auto; /* Allow scrolling */
    overflow-y: auto; /* Allow scrolling */
    overflow-x: hidden;
    background: var(--overlay); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.8s ease;
}

#main-content > * { 
    pointer-events: auto; 
    flex-shrink: 0; /* Prevents flexbox from crushing sections to 0 height when content overflows */
}

/* ---- EDITORIAL HERO SECTION ---- */
#hero-editorial {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 20px 20px; /* Added top padding for fixed header */
}

/* Editorial Navigation */
.editorial-nav {
    position: fixed; /* Made permanent on scroll */
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5vw; /* Slimmer padding for fixed header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    background: rgba(2, 2, 2, 0.75); /* Differentiated background */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.5s ease, border-color 0.5s ease;
    opacity: 0;
    visibility: hidden;
}

body.light-mode .editorial-nav {
    background: rgba(240, 244, 248, 0.75);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.editorial-nav .logo {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: none;
    color: var(--text-primary);
    text-decoration: none;
}

.editorial-nav nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.editorial-nav nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s;
}

.editorial-nav nav a:hover {
    opacity: 0.5;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
}

.theme-btn:hover {
    background: var(--accent);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Massive Typography & Profile Grid */
/* Massive Typography & Profile Grid */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1600px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 0 5vw;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.hero-badges-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.greeting-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

body.light-mode .greeting-badge {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #10b981;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.availability-badge.busy {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulseDot 2s infinite ease-in-out;
}

.availability-badge.busy .status-dot {
    background-color: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 15px currentColor; }
    100% { transform: scale(0.95); opacity: 0.8; }
}


.hero-name {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-primary);
    margin: 0;
}

.animated-title-container {
    overflow: hidden; /* For smooth reveal animations */
    height: 40px; /* Fixed height so layout doesn't jump */
    display: flex;
    align-items: center;
    margin-top: 20px; /* Space between name and profession */
    margin-bottom: 25px; /* Space between profession and description */
}

.animated-title {
    font-size: clamp(1rem, 4vw, 2.5rem);
    font-weight: 500;
    color: var(--accent); /* Uses the Amber/Gold theme color */
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    white-space: nowrap; /* Prevents long titles from wrapping and clipping */
}

.hero-right {
    display: flex;
    justify-content: flex-end;
}

.editorial-profile {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4/5;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 20px var(--accent-glow);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Animated Glowing Border Effect */
.editorial-profile::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(transparent, transparent, transparent, var(--accent));
    animation: rotateBorder 4s linear infinite;
    z-index: 0;
}

/* Inner Background Mask to hide the middle of the conic gradient */
.editorial-profile::after {
    content: '';
    position: absolute;
    inset: 4px; /* Thickness of the animated border */
    background: var(--bg-color);
    border-radius: 10px;
    z-index: 1;
}

.editorial-profile img {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    object-fit: cover;
    border-radius: 10px;
    z-index: 2;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.editorial-profile:hover img {
    transform: scale(1.05);
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-subtext-container {
    display: flex;
    align-items: center;
}

.hero-subtext {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-primary);
    opacity: 0.9;
    text-align: justify;
    max-width: 750px;
}

.hero-actions {
    margin-top: 35px;
    display: flex;
}

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--accent);
    color: var(--bg-color);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

body.light-mode .cv-download-btn {
    color: #ffffff; /* Keep white text inside colored button for light mode */
}

.cv-download-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: all 0.6s ease;
}

.cv-download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.5);
}

.cv-download-btn:hover::before {
    left: 100%;
}

.btn-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

/* ---- EDITORIAL SKILLS SECTION ---- */
#skills-section {
    background-color: transparent;
    padding: 120px 5vw;
    width: 100%;
    position: relative;
    z-index: 20;
    min-height: 50vh;
}

.section-heading-container {
    max-width: 1400px;
    margin: 0 auto 60px auto;
    text-align: left;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.massive-section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.skill-category {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.category-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-transform: uppercase;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

/* Light mode inversion fix */
body.light-mode .category-title {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: default;
}

body.light-mode .skill-tag {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 0 15px var(--accent-glow);
}

/* ---- PROFESSIONAL EXPERIENCE SECTION ---- */
#experience-section {
    background-color: transparent;
    padding: 20px 5vw 120px 5vw;
    width: 100%;
    position: relative;
    z-index: 20;
}

.experience-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.experience-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.light-mode .experience-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.experience-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3), 0 0 20px rgba(0, 240, 255, 0.1);
}

body.light-mode .experience-card:hover {
    background: rgba(0, 0, 0, 0.04);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.exp-role {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.exp-duration {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 1px;
}

.exp-company {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

body.light-mode .exp-company {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.exp-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    opacity: 0.9;
    margin-bottom: 20px;
}

.exp-bullets {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.exp-bullets li {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.exp-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ---- FEATURED PROJECTS SECTION ---- */
#projects-section {
    background-color: transparent;
    padding: 20px 5vw 120px 5vw;
    width: 100%;
    position: relative;
    z-index: 20;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

body.light-mode .project-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 25px var(--accent-glow);
}

body.light-mode .project-card:hover {
    background: rgba(0, 0, 0, 0.04);
}

.project-header {
    margin-bottom: 20px;
}

.project-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.project-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

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

.project-tech-tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(15, 164, 175, 0.1);
    color: var(--accent);
    border: 1px solid rgba(15, 164, 175, 0.25);
    transition: all 0.3s ease;
}

.project-card:hover .project-tech-tag {
    background: rgba(15, 164, 175, 0.2);
    border-color: var(--accent);
}

.project-bullets {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.project-bullets li {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
}

.project-bullets li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 0.85rem;
}

/* ---- EDITORIAL CREDENTIALS SECTION ---- */
#credentials-section {
    background-color: transparent;
    padding: 20px 5vw 120px 5vw;
    width: 100%;
    position: relative;
    z-index: 20;
}

.credentials-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.credential-box {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.credential-type {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 20px;
}

.credential-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.credential-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 20px var(--accent-glow);
}

.credential-year {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.credential-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
}

.credential-issuer {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.credential-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* ---- CONTACT SECTION ---- */
#contact-section {
    background-color: transparent;
    padding: 20px 5vw 150px 5vw;
    width: 100%;
    position: relative;
    z-index: 20;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.contact-profile-card {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

body.light-mode .contact-profile-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.contact-avatar-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border: 4px solid var(--bg-color); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-avatar-wrapper::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(transparent, transparent, transparent, var(--accent));
    animation: rotateBorder 4s linear infinite;
    z-index: 0;
}
.contact-avatar-wrapper::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--bg-color);
    border-radius: 50%;
    z-index: 1;
}
.contact-avatar-wrapper img {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
}

.contact-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.contact-role {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-details-grid {
    flex: 2;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.light-mode .contact-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2), 0 0 15px rgba(0, 240, 255, 0.15);
}

body.light-mode .contact-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-text {
    font-size: 1.1rem;
    font-weight: 500;
    word-break: break-all;
}

/* ---- PROFESSIONAL FOOTER ---- */
.professional-footer {
    width: 100%;
    background: rgba(10, 15, 20, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 5vw 20px 5vw;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
    z-index: 20;
    margin-top: auto;
    color: var(--text-primary);
}

body.light-mode .professional-footer {
    background: rgba(245, 247, 250, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-top {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .footer-top {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-brand {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.footer-brand h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
}

.footer-brand .accent-dot {
    color: var(--accent);
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

body.light-mode .footer-socials a {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-socials a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,240,255,0.2);
}

.footer-socials a svg {
    width: 18px;
    height: 18px;
}

.footer-links-group {
    flex: 2;
    display: flex;
    justify-content: flex-end;
    gap: 50px;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 25px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
}

.footer-legal a:hover {
    opacity: 0.7;
}


@media (max-width: 768px) {
    /* Hide custom cursor on touch devices */
    .cursor-trail { display: none !important; }
    
    /* Mobile Header Layout */
    .editorial-nav { 
        flex-wrap: wrap; 
        padding: 12px 16px;
    }
    .editorial-nav .logo {
        font-size: 1rem;
    }
    .header-controls {
        gap: 8px;
    }
    .theme-btn { 
        font-size: 0.75rem; 
        padding: 6px 12px; 
    }
    .mobile-menu-btn {
        display: flex;
        padding: 2px;
    }
    .editorial-nav nav { 
        order: 3;
        flex: 1 1 100%;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 15px;
        padding-bottom: 10px;
        display: none;
    }
    .editorial-nav nav.active {
        display: flex;
    }
    .editorial-nav nav a { 
        font-size: 1rem;
        padding: 10px;
        width: 100%;
        text-align: center;
        display: block;
    }

    /* Hero Section Mobile Spacing */
    #hero-editorial { 
        justify-content: flex-start; 
        padding-top: 95px; 
        padding-bottom: 40px;
        padding-left: 16px;
        padding-right: 16px;
        height: auto;
        min-height: auto;
        margin-bottom: 20px;
    }

    .hero-content-wrapper { 
        grid-template-columns: 1fr; 
        gap: 25px;
        align-items: flex-start;
        padding: 0;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Constrain Profile Image on Mobile and Move to Top */
    .hero-right { 
        justify-content: center; 
        width: 100%; 
        margin-bottom: 10px; 
        order: -1;
    }
    .editorial-profile { 
        max-width: 220px; 
        aspect-ratio: 4/5;
        margin: 0 auto; 
    }
    
    /* Greeting & Availability Badge on Mobile */
    .hero-badges-container {
        gap: 8px;
        margin-bottom: 12px;
        width: 100%;
        max-width: 100%;
    }

    .greeting-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        border-radius: 16px;
        max-width: 100%;
    }

    .availability-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
        border-radius: 16px;
        white-space: nowrap;
    }

    /* Hero Typography on Mobile */
    .hero-name { 
        font-size: clamp(2rem, 7.5vw, 3rem); 
        letter-spacing: -0.5px; 
        line-height: 1.15;
    }

    .animated-title-container {
        height: auto;
        min-height: 32px;
        margin-top: 10px;
        margin-bottom: 15px;
    }

    .animated-title {
        font-size: clamp(1.1rem, 4.5vw, 1.6rem);
        white-space: normal;
        letter-spacing: 1px;
    }
    
    .hero-subtext { 
        font-size: 0.92rem; 
        line-height: 1.65; 
        text-align: left;
        max-width: 100%;
    }

    .hero-actions {
        margin-top: 25px;
        width: 100%;
    }

    .cv-download-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.85rem;
    }
    
    /* Section Spacing & Titles on Mobile */
    #skills-section,
    #experience-section,
    #projects-section,
    #credentials-section,
    #contact-section {
        padding: 40px 16px 60px 16px;
    }

    .massive-section-title { 
        font-size: clamp(2rem, 7vw, 3rem); 
        letter-spacing: -1px;
    }

    .section-heading-container {
        margin-bottom: 35px;
    }

    /* Skills Grid */
    .skills-container { grid-template-columns: 1fr; gap: 30px; }
    .category-title { font-size: 1.4rem; padding-bottom: 12px; }
    .skill-tag { font-size: 0.85rem; padding: 10px 18px; }

    /* Credentials Grid */
    .credentials-container { grid-template-columns: 1fr; gap: 40px; }
    .credential-type { font-size: 1.6rem; padding-bottom: 15px; }
    .credential-card { padding: 20px; }
    .credential-title { font-size: 1.3rem; }
    
    /* Experience Cards */
    .experience-card { padding: 22px; }
    .exp-header { flex-direction: column; align-items: flex-start; gap: 5px; }
    .exp-role { font-size: 1.4rem; }
    .exp-bullets li { font-size: 0.95rem; }

    /* Project Cards */
    .projects-container { grid-template-columns: 1fr; gap: 25px; }
    .project-card { padding: 22px; }
    .project-title { font-size: 1.3rem; }
    .project-bullets li { font-size: 0.95rem; }

    /* Contact Form & Profile */
    .contact-container { gap: 30px; }
    .contact-profile-card { padding: 25px; }
    .contact-avatar-wrapper { width: 120px; height: 120px; margin-bottom: 15px; }
    .contact-name { font-size: 1.8rem; }
    .contact-role { font-size: 1rem; }
    .contact-details-grid { grid-template-columns: 1fr; gap: 15px; }
    .contact-item { padding: 18px; }
    .contact-text { font-size: 0.95rem; }
    .contact-form-wrapper { padding: 24px 16px; margin-top: 30px; border-radius: 16px; }
    .contact-form-title { font-size: 1.4rem; margin-bottom: 18px; }

    /* Scroll To Top Button */
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    /* Footer Layout */
    .footer-top { flex-direction: column; text-align: center; gap: 30px; padding-bottom: 30px; }
    .footer-brand { margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
    .footer-links-group { justify-content: center; gap: 30px; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
}

/* ---- SCROLL ANIMATIONS (Intersection Observer) ---- */
.scroll-anim {
    opacity: 0;
    will-change: transform, opacity;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-slide-up { transform: translateY(40px); }
.anim-fade-up { transform: translateY(30px) scale(0.98); }
.anim-pop-in { transform: scale(0.5); }
.anim-slide-left { transform: translateX(-40px); }

/* When element intersects */
.scroll-anim.in-view {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* ---- CONTACT FORM STYLES ---- */
.contact-form-wrapper {
    max-width: 1400px;
    margin: 50px auto 0 auto;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.light-mode .contact-form-wrapper {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 25px var(--accent-glow);
}

.contact-form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

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

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

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    background: rgba(255, 255, 255, 0.06);
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.06);
}

.contact-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent);
    color: var(--bg-color);
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 25px var(--accent-glow);
}

body.light-mode .contact-submit-btn {
    color: #ffffff;
}

.contact-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--accent-glow);
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-response {
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 10px;
    padding: 12px 18px;
    border-radius: 8px;
    display: none;
}

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

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---- SCROLL TO TOP FLOATING BUTTON ---- */
.scroll-top-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 164, 175, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

body.light-mode .scroll-top-btn {
    background: rgba(15, 164, 175, 0.1);
}

.scroll-top-btn:hover {
    background: var(--accent);
    color: var(--bg-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px var(--accent-glow);
}

body.light-mode .scroll-top-btn:hover {
    color: #ffffff;
}

.scroll-top-btn svg {
    width: 20px;
    height: 20px;
}

/* ---- ACTIVE NAV LINK HIGHLIGHTING ---- */
.editorial-nav nav a.nav-active {
    color: var(--accent) !important;
    position: relative;
}

.editorial-nav nav a.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* ---- SKILL TAG ENHANCEMENTS ---- */
.skill-tag {
    position: relative;
    overflow: hidden;
}

.skill-tag::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.4s ease;
}

.skill-tag:hover::after,
.skill-tag.in-view::after {
    width: 100%;
}



