/* CSS VARIABLES & ROOT                       */

:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 26, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    /* Neon Colors */
    --neon-blue: #00f0ff;
    --neon-purple: #a855f7;
    --neon-cyan: #22d3ee;
    --neon-pink: #ec4899;
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
    --gradient-text: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 50%, var(--neon-cyan) 100%);
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    /* Borders & Shadows */
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1320px;
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}


/* ========================================== */


/* RESET & BASE                               */


/* ========================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: auto;
}


/* Custom Scrollbar */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-blue));
}

::selection {
    background: rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}


/* ========================================== */


/* PRELOADER                                  */


/* ========================================== */

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(0, 240, 255, 0.1);
    border-top-color: var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.preloader-text {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.dots {
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dots {
    0%,
    20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%,
    100% {
        content: '...';
    }
}


/* ========================================== */


/* CUSTOM CURSOR                              */


/* ========================================== */

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 240, 255, 0.3);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.05);
}


/* Hide custom cursor on touch devices */

@media (hover: none) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
    body {
        cursor: auto;
    }
}


/* ========================================== */


/* NAVIGATION                                 */


/* ========================================== */

#navbar {
    padding: 20px 0;
    background: transparent;
    transition: all 0.4s ease;
    z-index: 1000;
}

#navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
}

.navbar-brand {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    padding: 0;
}

.logo-text {
    color: var(--text-primary);
    letter-spacing: -1px;
}

.logo-accent {
    color: var(--neon-blue);
    font-size: 2.5rem;
    line-height: 0;
}

.nav-link {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 8px 20px !important;
    margin: 0 5px;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--neon-blue) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.btn-nav {
    background: transparent;
    border: 2px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 8px 24px;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--neon-blue);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}


/* Mobile Toggle */

.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    background: transparent !important;
}

.toggler-icon {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.toggler-icon:nth-child(1) {
    top: 0;
}

.toggler-icon:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.toggler-icon:nth-child(3) {
    bottom: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


/* ========================================== */


/* HERO SECTION                               */


/* ========================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-primary);
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particles-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 15, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 100px;
}


/* Hero Badge */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    color: var(--neon-cyan);
    margin-bottom: 30px;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}


/* Hero Title */

.hero-title {
    font-family: var(--font-secondary);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Typing Animation */

.hero-typing {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 25px;
    min-height: 40px;
}

.typing-prefix {
    color: var(--text-secondary);
}

.typing-text {
    color: var(--neon-blue);
    font-weight: 600;
}

.typing-cursor {
    color: var(--neon-blue);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}


/* Hero Description */

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 35px;
    line-height: 1.8;
}


/* Hero Buttons */

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-primary-glow {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-primary-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary-glow:hover::before {
    left: 100%;
}

.btn-primary-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
}

.btn-outline-glow {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-glass);
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
}


/* Hero Social */

.hero-social {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.social-icon:hover::before {
    opacity: 1;
}


/* Hero Image */

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-image {
    position: relative;
    z-index: 2;
    width: 350px;
    height: 350px;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid rgba(0, 240, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.1);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Floating Icons */

.floating-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 18, 26, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    font-size: 1.5rem;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.floating-icon.icon-1 {
    top: 10%;
    left: 0;
    color: #e34c26;
    animation-delay: 0s;
}

.floating-icon.icon-2 {
    top: 5%;
    right: 10%;
    color: #264de4;
    animation-delay: 1s;
}

.floating-icon.icon-3 {
    bottom: 20%;
    left: -5%;
    color: #f7df1e;
    animation-delay: 2s;
}

.floating-icon.icon-4 {
    bottom: 10%;
    right: 0;
    color: #61dafb;
    animation-delay: 3s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(15px) rotate(-5deg);
    }
}


/* Scroll Down */

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.scroll-down-link:hover {
    color: var(--neon-blue);
}

.scroll-text {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 20px;
        opacity: 0;
    }
}


/* Hero Decorations */

.hero-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

.decoration-1 {
    width: 500px;
    height: 500px;
    background: var(--neon-blue);
    top: -10%;
    left: -10%;
    animation: moveDecoration 20s infinite alternate;
}

.decoration-2 {
    width: 400px;
    height: 400px;
    background: var(--neon-purple);
    bottom: -10%;
    right: -5%;
    animation: moveDecoration 25s infinite alternate-reverse;
}

.decoration-3 {
    width: 300px;
    height: 300px;
    background: var(--neon-cyan);
    top: 50%;
    left: 50%;
    animation: moveDecoration 15s infinite alternate;
}

@keyframes moveDecoration {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(50px, -50px) scale(1.1);
    }
}


/* ========================================== */


/* SECTION STYLES                             */


/* ========================================== */

.section-padding {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%), radial-gradient(ellipse at 80% 50%, rgba(0, 240, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--neon-blue);
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle::before,
.section-subtitle::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--neon-blue);
    vertical-align: middle;
    margin: 0 15px;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.section-line::before,
.section-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--neon-blue);
    border-radius: 50%;
}

.section-line::before {
    left: -15px;
}

.section-line::after {
    right: -15px;
}

.subsection-title {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}


/* Glass Card */

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}


/* ========================================== */


/* ABOUT SECTION                              */


/* ========================================== */

.about-section {
    background: var(--bg-secondary);
}

.about-image-wrapper {
    position: relative;
    display: inline-block;
}

.about-image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-glass);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 10, 15, 0.8) 100%);
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--gradient-primary);
    padding: 20px 25px;
    border-radius: 15px;
    text-align: center;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.exp-number {
    display: block;
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

.about-title {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.detail-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 10px;
    color: var(--neon-blue);
    font-size: 1rem;
    flex-shrink: 0;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}


/* ========================================== */


/* SKILLS SECTION                             */


/* ========================================== */

.skills-grid {
    margin-top: 50px;
}

.skill-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 240, 255, 0.1);
}

.skill-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--neon-blue);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    background: var(--gradient-primary);
    color: var(--text-primary);
    transform: scale(1.1);
}

.skill-name {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.skill-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
    position: relative;
}

.skill-percent {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-blue);
    opacity: 0;
    transition: opacity 0.5s ease 1s;
}

.skill-bar.animate .skill-percent {
    opacity: 1;
}

.skill-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.skill-card:hover .skill-glow {
    opacity: 1;
}


/* ========================================== */


/* PROJECTS SECTION                           */


/* ========================================== */

.projects-section {
    background: var(--bg-primary);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.2);
}

.project-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-link:nth-child(2) {
    transition-delay: 0.1s;
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.3);
}

.project-content {
    padding: 25px;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    padding: 4px 12px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--neon-cyan);
}

.project-title {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.project-tech {
    display: flex;
    gap: 12px;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.project-tech i {
    transition: color 0.3s ease;
}

.project-tech i:hover {
    color: var(--neon-blue);
}

.project-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-glow {
    opacity: 1;
}


/* Filter Animation */

.project-item {
    transition: all 0.4s ease;
}

.project-item.hidden {
    display: none;
}

.project-item.animate {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ========================================== */


/* EXPERIENCE SECTION                         */


/* ========================================== */

.experience-section {
    background: var(--bg-secondary);
}


/* Timeline */

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 0;
}

.marker-dot {
    width: 14px;
    height: 14px;
    background: var(--bg-primary);
    border: 3px solid var(--neon-blue);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.marker-line {
    position: absolute;
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 40px);
    background: rgba(0, 240, 255, 0.2);
}

.timeline-item:last-child .marker-line {
    display: none;
}

.timeline-content {
    padding: 25px;
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    color: var(--neon-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.timeline-info {
    flex: 1;
}

.timeline-title {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.timeline-company {
    display: block;
    color: var(--neon-cyan);
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.timeline-duration {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.timeline-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.timeline-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-sm {
    padding: 4px 12px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--neon-purple);
}


/* Certificates */

.certificates-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.certificate-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateX(10px);
    border-color: rgba(0, 240, 255, 0.2);
}

.certificate-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.btn-view {
    padding: 6px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
}

.certificate-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.certificate-title {
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.certificate-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.certificate-org,
.certificate-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.certificate-org i,
.certificate-date i {
    color: var(--neon-blue);
}


/* ========================================== */


/* CONTACT SECTION                            */


/* ========================================== */

.contact-section {
    background: var(--bg-primary);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 50%, rgba(0, 240, 255, 0.03) 0%, transparent 50%), radial-gradient(ellipse at 70% 50%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.contact-subtitle {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 15px;
    color: var(--neon-blue);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-icon {
    background: var(--gradient-primary);
    color: var(--text-primary);
    transform: scale(1.1);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.contact-value {
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--neon-blue);
}


/* Contact Social */

.contact-social {
    padding-top: 30px;
    border-top: 1px solid var(--border-glass);
}

.social-title {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}


/* Contact Form */

.contact-form-wrapper {
    padding: 40px;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 14px 20px 14px 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.03);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-icon {
    position: absolute;
    left: 18px;
    bottom: 14px;
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.form-group:focus-within .form-icon {
    color: var(--neon-blue);
}

.btn-submit {
    padding: 16px;
    font-size: 1rem;
}


/* Map */

.map-wrapper {
    padding: 10px;
    overflow: hidden;
}

.map-wrapper iframe {
    border-radius: 15px;
    filter: grayscale(0.8) invert(0.9) contrast(1.2);
}


/* ========================================== */


/* FOOTER                                     */


/* ========================================== */

.footer-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
}

.footer-top {
    padding: 80px 0 50px;
}

.footer-logo {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 20px;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-title {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--neon-blue);
    transform: translateX(5px);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-newsletter .input-group {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    overflow: hidden;
}

.footer-newsletter .form-control {
    border: none;
    background: transparent;
    padding: 12px 20px;
    color: var(--text-primary);
    flex: 1;
}

.footer-newsletter .form-control:focus {
    box-shadow: none;
}

.btn-newsletter {
    padding: 12px 20px;
    background: var(--gradient-primary);
    border: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    filter: brightness(1.2);
}


/* Footer Bottom */

.footer-bottom {
    padding: 25px 0;
    border-top: 1px solid var(--border-glass);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.copyright span {
    color: var(--neon-blue);
}

.credits {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.credits i {
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}


/* ========================================== */


/* BACK TO TOP                                */


/* ========================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}


/* ========================================== */


/* UTILITY CLASSES                            */


/* ========================================== */

.mt-6 {
    margin-top: 5rem;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ========================================== */


/* ANIMATIONS                                 */


/* ========================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ========================================== */


/* RESPONSIVE STYLES                          */


/* ========================================== */


/* Tablet Large (991px and below) */

@media (max-width: 991.98px) {
     :root {
        --section-padding: 80px;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-image {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    .hero-image-glow {
        width: 350px;
        height: 350px;
    }
    .floating-icon {
        display: none;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .about-experience-badge {
        right: 0;
        bottom: -10px;
    }
    .timeline {
        padding-left: 25px;
    }
    .timeline-marker {
        left: -31px;
    }
    .certificate-card {
        flex-direction: column;
    }
    .certificate-image {
        width: 100%;
        height: 180px;
    }
    .navbar-collapse {
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-radius: 20px;
        margin-top: 15px;
        border: 1px solid var(--border-glass);
    }
    .nav-item {
        margin: 5px 0;
    }
    .btn-nav {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}


/* Tablet Small (767px and below) */

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-typing {
        font-size: 1.2rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .btn-primary-glow,
    .btn-outline-glow {
        width: 100%;
        justify-content: center;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .about-details {
        grid-template-columns: 1fr;
    }
    .filter-buttons {
        gap: 10px;
    }
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    .timeline-header {
        flex-direction: column;
        gap: 10px;
    }
    .contact-info-list {
        gap: 20px;
    }
    .footer-top {
        padding: 60px 0 30px;
    }
    .footer-brand,
    .footer-links,
    .footer-newsletter {
        text-align: center;
    }
    .footer-description {
        max-width: 100%;
    }
    .footer-social {
        justify-content: center;
    }
}


/* Mobile (575px and below) */

@media (max-width: 575.98px) {
     :root {
        --section-padding: 60px;
    }
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }
    .hero-typing {
        font-size: 1rem;
        min-height: 30px;
    }
    .hero-description {
        font-size: 0.95rem;
    }
    .hero-image {
        width: 250px;
        height: 250px;
    }
    .hero-image-glow {
        width: 300px;
        height: 300px;
    }
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 15px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 0.8rem;
    }
    .section-subtitle::before,
    .section-subtitle::after {
        width: 20px;
        margin: 0 10px;
    }
    .about-title {
        font-size: 1.4rem;
    }
    .skill-card {
        padding: 25px 15px;
    }
    .skill-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    .project-image {
        height: 180px;
    }
    .timeline-content {
        padding: 20px;
    }
    .timeline-title {
        font-size: 1.1rem;
    }
    .contact-form-wrapper {
        padding: 25px;
    }
    .contact-subtitle {
        font-size: 1.4rem;
    }
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    .map-wrapper iframe {
        height: 250px;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
    .scroll-down {
        bottom: 20px;
    }
    .scroll-text {
        font-size: 0.7rem;
    }
}


/* Extra Small Mobile (375px and below) */

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.9rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
    .btn-primary-glow,
    .btn-outline-glow {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .detail-item {
        gap: 10px;
    }
    .detail-icon {
        width: 38px;
        height: 38px;
    }
    .detail-value {
        font-size: 0.85rem;
    }
}


/* Large Desktop (1400px and above) */

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    .hero-title {
        font-size: 5rem;
    }
    .hero-image {
        width: 400px;
        height: 400px;
    }
    .hero-image-glow {
        width: 450px;
        height: 450px;
    }
}


/* Landscape Mobile */

@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 120px 0 80px;
    }
    .scroll-down {
        display: none;
    }
    .hero-image-wrapper {
        display: none;
    }
}


/* High DPI / Retina */

@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .hero-image img,
    .about-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}


/* Reduced Motion */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .preloader-spinner {
        animation: none;
    }
    .scroll-wheel {
        animation: none;
    }
    .floating-icon {
        animation: none;
    }
    .hero-decoration {
        animation: none;
    }
}


/* Print Styles */

@media print {
    .hero-section,
    .about-section,
    .projects-section,
    .experience-section,
    .contact-section {
        background: white !important;
        color: black !important;
    }
    .gradient-text {
        -webkit-text-fill-color: black !important;
    }
    .btn-primary-glow,
    .btn-outline-glow,
    .back-to-top,
    .scroll-down,
    #navbar,
    .footer-section {
        display: none !important;
    }
}


/* ========================================== */


/* FIXES - MISSING CLASSES                    */


/* ========================================== */


/* Fix #3: Contact Form */

.contact-form {
    display: block;
}


/* Fix #4: Contact Info Wrapper */

.contact-info-wrapper {
    padding-right: 20px;
}


/* Fix #9: Text Scramble Character */

.scramble-char {
    color: var(--neon-blue);
    font-weight: 600;
}


/* Fix #10: Projects Grid */

.projects-grid {
    margin-top: 30px;
}


/* Fix #14: Scroll Progress Bar */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--neon-blue);
}


/* Fix #8: Three.js fallback background enhancement */

.hero-section.three-fallback {
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%), linear-gradient(135deg, #0a0a0f 0%, #12121a 100%);
}


/* Fix #12: Floating Icons - prevent JS from breaking CSS animation */

.floating-icon {
    will-change: transform;
}


/* Fix #11: Magnetic Effect - preserve hover state */

.social-icon.magnetic-active,
.project-link.magnetic-active {
    transition: transform 0.1s ease;
}


/* Fix #13: Certificate Card - preserve hover translateX */

.certificate-card.tilt-active {
    transition: transform 0.1s ease;
}


/* Fix #15: Particle Overlay Particles */

.particle {
    will-change: transform, opacity;
}


/* Additional: Form validation styles */

.form-control:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #22c55e;
}


/* About content and info fixes */

.about-content {
    position: relative;
}

.about-info {
    padding-left: 20px;
}

@media (max-width: 991.98px) {
    .about-info {
        padding-left: 0;
        margin-top: 40px;
    }
}


/* ========================================== */


/* HERO TITLE VISIBILITY FIX                  */


/* ========================================== */

.hero-title {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.hero-title .gradient-text {
    display: inline !important;
    opacity: 1 !important;
    visibility: visible !important;
}


/* Ensure hero content is always visible */

.hero-content {
    opacity: 1 !important;
    visibility: visible !important;
}


/* Fix for typing animation visibility */

.hero-typing {
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 40px;
    display: block !important;
}

#typing-text {
    display: inline !important;
    opacity: 1 !important;
    color: var(--neon-blue) !important;
}


/* No-js fallback */

.no-js .hero-section {
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.15) 0%, transparent 50%), radial-gradient(ellipse at 80% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 50%), linear-gradient(135deg, #0a0a0f 0%, #12121a 100%);
}


/* ========================================== */


/* IMAGE FALLBACK STYLES                      */


/* ========================================== */

img {
    background: linear-gradient(135deg, #12121a, #1a1a2e);
    min-height: 50px;
}

img[src*="ui-avatars.com"],
img[src*="picsum.photos"] {
    background: transparent;
}

.hero-image img,
.about-image img {
    object-fit: cover;
}

.project-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.certificate-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}


/* ========================================== */


/* ADDITIONAL SKILL ICON COLORS               */


/* ========================================== */

.skill-icon .fa-python {
    color: #3776ab;
}

.skill-icon .fa-flask {
    color: #00f0ff;
}

.skill-icon .fa-react {
    color: #61dafb;
}

.skill-icon .fa-database {
    color: #a855f7;
}


/* Education badge styling */

.about-experience-badge {
    background: linear-gradient(135deg, #00f0ff, #a855f7);
}


/* Certificate org icon colors */

.certificate-org .fa-university {
    color: var(--neon-blue);
}

.certificate-org .fa-graduation-cap {
    color: var(--neon-purple);
}

.certificate-org .fa-laptop-code {
    color: var(--neon-cyan);
}


/* Teaching highlight */

.teaching-highlight {
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid var(--neon-blue);
    padding: 15px 20px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
}


/* Freelancer badge */

.freelancer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--neon-purple);
    margin-top: 10px;
}

.freelancer-badge i {
    color: var(--neon-purple);
}