/* ==========================================================================
   CSS Variables & Global Styles
   ========================================================================== */
   :root {
    --primary-color: #00f2fe;
    --secondary-color: #4facfe;
    --accent-color: #ff0844;
    --dark-bg: #0a0a0a;
    --light-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --neon-glow: 0 0 10px rgba(79, 172, 254, 0.5), 0 0 20px rgba(79, 172, 254, 0.3);
}

/* Light Theme Variables */
[data-bs-theme="light"] {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #dc2626;
    --dark-bg: #f8fafc;
    --light-bg: #ffffff;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --neon-glow: 0 0 10px rgba(37, 99, 235, 0.3), 0 0 20px rgba(37, 99, 235, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: #ffffff;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-bs-theme="light"] body {
    color: #1e293b;
}

/* Light Mode Glass Elements */
[data-bs-theme="light"] .glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

[data-bs-theme="light"] .glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .glass-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15);
}

[data-bs-theme="light"] .glass-badge {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

[data-bs-theme="light"] .glass-btn {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1e293b;
}

[data-bs-theme="light"] .glass-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

[data-bs-theme="light"] .glass-input {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1e293b !important;
}

[data-bs-theme="light"] .glass-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

[data-bs-theme="light"] .glass-input:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--secondary-color) !important;
}

/* Light Mode Text Colors */
[data-bs-theme="light"] .text-light {
    color: #1e293b !important;
}

[data-bs-theme="light"] .text-light.opacity-75 {
    color: rgba(30, 41, 59, 0.75) !important;
}

[data-bs-theme="light"] .text-light.opacity-50 {
    color: rgba(30, 41, 59, 0.5) !important;
}

[data-bs-theme="light"] .navbar-dark .navbar-nav .nav-link {
    color: #1e293b;
}

[data-bs-theme="light"] .navbar-dark .navbar-brand {
    color: #1e293b;
}

[data-bs-theme="light"] .btn-link.text-light {
    color: #1e293b !important;
}

/* Light Mode Footer */
[data-bs-theme="light"] footer {
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Light Mode Borders */
[data-bs-theme="light"] .border-secondary {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Light Mode Floating Icons */
[data-bs-theme="light"] .floating-icons {
    opacity: 0.1;
}

/* Light Mode Progress Bars */
[data-bs-theme="light"] .progress {
    background-color: rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .hover-glow:hover {
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* Light Mode Bootstrap Badges */
[data-bs-theme="light"] .badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

[data-bs-theme="light"] .badge.bg-secondary {
    background-color: #6b7280 !important;
    color: #ffffff !important;
}

/* Light Mode Bootstrap Buttons */
[data-bs-theme="light"] .btn-outline-light {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

[data-bs-theme="light"] .btn-outline-light:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Outfit', sans-serif;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.text-gradient {
    background: linear-gradient(270deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    animation: gradientText 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
}

.bg-dark-gradient {
    background: radial-gradient(circle at center, #1a1a1a 0%, var(--dark-bg) 100%);
}

[data-bs-theme="light"] .bg-dark-gradient {
    background: radial-gradient(circle at center, #ffffff 0%, #f8fafc 100%);
}

.shadow-glow {
    box-shadow: var(--neon-glow) !important;
}

.hover-glow:hover {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

/* ==========================================================================
   Glassmorphism
   ========================================================================== */
.glass-nav {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: 0.6s ease;
}

.glass-card:hover::before {
    left: 150%;
}
.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 242, 254, 0.2);
}

.glass-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 500;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.glass-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    backdrop-filter: blur(5px);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(79, 172, 254, 0.25) !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-gradient {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-gradient:hover::before {
    opacity: 1;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(79, 172, 254, 0.4);
    color: #fff;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes floatReverse {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(20px) rotate(-5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

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

.animate-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1.0s; }

.hover-up:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Sections styling
   ========================================================================== */
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
}

.floating-icons {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 0;
    opacity: 0.2;
}

.icon-float {
    position: absolute;
    font-size: 4rem;
    color: #fff;
    animation: float 6s ease-in-out infinite;
}

.floating-icons .fa-react { top: 20%; left: 10%; color: #61DAFB; }
.floating-icons .fa-angular { top: 60%; left: 85%; color: #DD0031; animation: floatReverse 7s infinite; }
.floating-icons .fa-java { top: 70%; left: 15%; color: #f89820; animation-delay: 1s; }
.floating-icons .fa-python { top: 15%; left: 80%; color: #3776AB; animation: floatReverse 8s infinite; }
.floating-icons .fa-database { top: 85%; left: 50%; color: #336791; animation-delay: 2s; }

/* Skills Section */
.progress {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

img.tech-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

ul.core-concepts-list li {
    margin-bottom: 0.8rem;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.3);
}

/* Timeline */
.timeline-item {
    transition: all 0.4s ease;
}
.timeline-item:hover {
    transform: translateX(10px) scale(1.01);
}
.timeline-date h5 {
    background: linear-gradient(270deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    animation: gradientText 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}
.timeline-dot {
    display: none;
}
@media (max-width: 767.98px) {
    .timeline-date {
        text-align: left !important;
        margin-bottom: 1rem;
    }
}

/* Projects Section */
.project-card .btn {
    opacity: 0.9;
}
.project-card:hover .btn {
    opacity: 1;
}

/* Contact Section */
.social-icon {
    width: 45px;
    height: 45px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white !important;
    transform: translateY(-3px) scale(1.1);
    border-color: transparent;
}

/* Hero Profile Image */
.profile-img-container {
    position: relative;
    display: inline-block;
    padding: 10px;
}

@media (max-width: 991.98px) {
    .profile-img-container {
        margin-top: 3rem;
    }
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    background: radial-gradient(circle, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 30px;
    filter: blur(40px);
    opacity: 0.4;
    z-index: 0;
    transition: all 0.3s ease;
    animation: pulseGlow 3s infinite;
}

.profile-img {
    position: relative;
    z-index: 1;
    border-radius: 30px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    height: 400px;
    width: 100%;
    max-width: 320px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease;
}

.profile-img-container:hover .profile-img {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-color);
}

.profile-img-container:hover .profile-glow {
    opacity: 0.7;
    filter: blur(50px);
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.3; }
}
