﻿:root {
    --primary-red: #cc0000;
    --lime-accent: #c6ff00;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow-soft: 0 15px 35px rgba(0, 0, 0, 0.12);
    --scrollbar-track: #f1f1f1;
    --surface-overlay: rgba(255, 255, 255, 0.08);
    --gradient-primary-start: #b91c1c;
    --gradient-primary-mid: #991b1b;
    --gradient-primary-end: #7f1d1d;
    --gradient-primary-dark-start: #450a0a;
    --gradient-primary-dark-mid: #1e1b18;
    --gradient-primary-dark-end: #020617;
}

[data-theme="dark"] {
    --bg-primary: #080b13;
    --bg-secondary: #111726;
    --text-primary: #f5f7ff;
    --text-secondary: #c5ccdf;
    --text-muted: #9aa3bd;
    --card-bg: #121a2b;
    --border-color: #2a3244;
    --shadow-soft: 0 25px 55px rgba(0, 0, 0, 0.55);
    --scrollbar-track: #111726;
    --surface-overlay: rgba(255, 255, 255, 0.04);
    --gradient-primary-start: #9c1d1d;
    --gradient-primary-mid: #3b1519;
    --gradient-primary-end: #0f0b12;
    --gradient-primary-dark-start: #431213;
    --gradient-primary-dark-mid: #1c1118;
    --gradient-primary-dark-end: #04060c;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
}

body,
nav,
section,
footer,
.card-hover-effect,
.project-card,
.timeline-experience-item > div > div {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html.no-transition,
html.no-transition * {
    transition: none !important;
}

[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

#navbar {
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(190, 24, 93, 0.75));
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] #navbar {
    background: rgba(5, 8, 15, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] #navbar.scrolled {
    background: rgba(2, 4, 10, 0.98);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}

.section-gradient {
    background: linear-gradient(135deg, var(--gradient-primary-start), var(--gradient-primary-mid), var(--gradient-primary-end));
    color: #fff;
    position: relative;
    isolation: isolate;
}

[data-theme="dark"] .section-gradient {
    background: linear-gradient(135deg, var(--gradient-primary-dark-start), var(--gradient-primary-dark-mid), var(--gradient-primary-dark-end));
}

.hero-section {
    position: relative;
}

.hero-content {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-actions a {
    min-width: 180px;
    text-align: center;
}

.hero-accent {
    position: absolute;
    border-radius: 999px;
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
}

.hero-accent-one {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #fcd34d, transparent 60%);
    top: 10%;
    left: 8%;
}

.hero-accent-two {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
    bottom: -10%;
    right: 5%;
}

[data-theme="dark"] .hero-accent-two {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
}

.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1px, transparent 1px);
    background-size: 80px 80px;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-section .btn-shine {
    backdrop-filter: blur(4px);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: linear-gradient(90deg, var(--primary-red), var(--lime-accent));
    z-index: 60;
    transition: width 0.2s ease;
}

.loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    z-index: 70;
}

.loader-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-red);
    animation: spin 1s linear infinite;
}

.theme-toggle-circle {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

[data-theme="dark"] .theme-toggle-circle {
    transform: translateX(28px);
    background-color: #fdfdfd;
}

[data-theme="light"] .theme-icon-moon,
[data-theme="dark"] .theme-icon-sun {
    display: none;
}

.reveal,
.fade-in-up,
.timeline-experience-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active,
.timeline-experience-item.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 0.9s ease forwards;
}

.slide-in-bottom {
    animation: slideInBottom 0.6s ease forwards;
}

.bounce-in {
    animation: bounceIn 0.8s ease forwards;
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-shine:hover::before {
    transform: translateX(100%);
}

.float-animation {
    animation: float 3.5s ease-in-out infinite;
}

.glow-on-hover {
    transition: box-shadow 0.3s ease;
}

.glow-on-hover:hover {
    animation: glowPulse 2s ease-in-out infinite;
}

.card-hover-effect {
    position: relative;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-hover-effect::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--primary-red), var(--lime-accent)) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.card-hover-effect:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-soft);
}

.card-hover-effect:hover::after {
    opacity: 1;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .glass-effect {
    background: rgba(8, 11, 19, 0.7);
    border-color: rgba(255, 255, 255, 0.06);
}

.icon-hover {
    transition: transform 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.15);
}

.underline-animate {
    position: relative;
}

.underline-animate::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--lime-accent);
    transition: width 0.3s ease;
}

.underline-animate:hover::after {
    width: 100%;
}

.filter-btn {
    border-color: rgba(204, 0, 0, 0.4);
}

[data-theme="dark"] .filter-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: transparent;
}

.filter-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
    box-shadow: 0 15px 30px rgba(204, 0, 0, 0.25);
}

.project-card {
    background-color: var(--card-bg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .project-card {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.timeline-experience-item > div > div {
    background-color: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.typing-line {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    min-height: 1.2em;
    min-width: var(--typing-min-width, auto);
    padding-right: 0.2em;
}

.typing-line::after {
    content: attr(data-cursor-symbol);
    margin-left: 0.2em;
    color: currentColor;
    animation: cursorBlink 0.8s steps(1) infinite;
    opacity: 1;
}

.typing-line[data-cursor-blink="false"]::after {
    animation: none;
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .typing-line::after {
        animation: none;
    }
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-red), var(--lime-accent));
    border-radius: 999px;
}

[data-theme="dark"] .text-gray-900,
[data-theme="dark"] .text-gray-800,
[data-theme="dark"] .text-gray-700 {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-gray-600,
[data-theme="dark"] .text-gray-500,
[data-theme="dark"] .text-gray-400 {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .border-gray-100,
[data-theme="dark"] .border-gray-200,
[data-theme="dark"] .border-gray-300 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .bg-gray-50,
[data-theme="dark"] .bg-gray-100,
[data-theme="dark"] .bg-white {
    background-color: var(--card-bg) !important;
    color: var(--text-primary);
}

[data-theme="dark"] footer {
    background-color: #04060b !important;
    color: var(--text-secondary);
}

[data-theme="dark"] footer p {
    color: var(--text-secondary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    60% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes cursorBlink {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    }
}

[data-theme="dark"] .bg-gradient-to-br {
    background-image: linear-gradient(135deg, rgba(10, 14, 24, 0.94), rgba(5, 8, 15, 0.98)) !important;
}

[data-theme="dark"] .bg-gradient-to-r {
    background-image: linear-gradient(90deg, rgba(12, 16, 28, 0.92), rgba(7, 10, 18, 0.96)) !important;
}

[data-theme="dark"] .bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .bg-white\/20 {
    background-color: rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .text-white\/90 {
    color: var(--text-primary) !important;
}

/* Portfolio Card Hover - Consistent with Profile Photo */
.project-card {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.project-card:hover {
    transform: scale(1.05);
}
