/* ===== CSS VARIABLES ===== */
:root {
    /* Default Theme Colors (Light) */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --primary-color: #818cf8;
    --primary-hover: #6366f1;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --border-color: #374151;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Light Theme Colors (default) */
[data-theme="light"] {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Theme transition styles */
body.theme-transitioning * {
    transition: background-color var(--transition-normal), 
                color var(--transition-normal), 
                border-color var(--transition-normal), 
                box-shadow var(--transition-normal) !important;
}

/* Ensure all elements inherit theme colors properly */
* {
    transition: background-color var(--transition-normal), 
                color var(--transition-normal), 
                border-color var(--transition-normal);
}

/* Smooth theme switching for specific elements */
.navbar,
.navbar-brand,
.navbar-nav .nav-link,
.theme-toggle,
.hero-section,
.about-section,
.portfolio-section,
.testimonials-section,
.contact-section,
.footer {
    transition: all var(--transition-normal);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== PRELOADER ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6); /* White background with 60% opacity */
    backdrop-filter: blur(10px); /* Add subtle blur effect */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out; /* Faster, smoother transition */
    will-change: opacity, visibility; /* Performance optimization */
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    color: var(--text-primary); /* Use theme text color instead of white */
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(99, 102, 241, 0.3); /* Use primary color with opacity */
    border-top: 4px solid var(--primary-color); /* Use primary color */
    border-radius: 50%;
    animation: spin 0.8s linear infinite; /* Faster rotation */
    margin: 0 auto 20px;
    will-change: transform; /* Performance optimization */
}

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

.loading-text {
    font-size: 18px;
    font-weight: 500;
}

.typing-text {
    border-right: 2px solid var(--primary-color); /* Use primary color for cursor */
    animation: typing 1.5s steps(20) infinite; /* Faster cursor blink */
    will-change: border-color; /* Performance optimization */
}

@keyframes typing {
    0%, 90%, 100% { border-color: transparent; }
    50% { border-color: white; }
}

/* ===== CUSTOM MOUSE POINTER ===== */
.custom-mouse-pointer {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: all 0.15s ease;
    mix-blend-mode: difference;
    backdrop-filter: blur(2px);
    transform: translate(-50%, -50%);
    opacity: 0;
}

.custom-mouse-pointer.hover {
    transform: translate(-50%, -50%) scale(1.5);
    background: var(--secondary-color);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.custom-mouse-pointer.click {
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--accent-color, #f59e0b);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.8);
}

/* Hide default cursor on interactive elements */
button, a, input, textarea, select, .btn, .nav-link, .portfolio-card, .filter-btn, .portfolio-item {
    cursor: none;
}

/* Show default cursor on mobile/touch devices */
@media (max-width: 768px) {
    .custom-mouse-pointer {
        display: none;
    }
    
    button, a, input, textarea, select, .btn, .nav-link, .portfolio-card, .filter-btn, .portfolio-item {
        cursor: pointer;
    }
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9998;
    transition: width var(--transition-fast);
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    padding: 1rem 0;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar {
    background: rgba(17, 24, 39, 0.95);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
}

.navbar.scrolled {
    background: var(--bg-primary);
    box-shadow: var(--shadow-medium);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    transform: translateY(-2px);
    color: var(--primary-hover);
}

.navbar-brand .brand-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand .brand-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-normal);
}

.navbar-brand:hover .brand-text::after {
    width: 100%;
}

.navbar-brand:hover .brand-icon {
    filter: drop-shadow(0 0 8px var(--primary-color));
    transform: scale(1.1);
}

.navbar-brand .brand-icon {
    font-size: 2rem;
    color: var(--primary-color);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-5px) rotate(5deg) scale(1.1); }
}

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

.navbar-brand .brand-icon {
    font-size: 2rem;
    color: var(--primary-color);
    animation: logoFloat 3s ease-in-out infinite, logoPulse 2s ease-in-out infinite;
}

.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.theme-toggle {
    border-radius: 50%;
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Theme indicator */
.theme-toggle::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.8;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-toggle i {
    font-size: 1.2rem;
    transition: transform var(--transition-normal);
}

.theme-toggle:hover i {
    transform: rotate(180deg);
}

/* Theme toggle animation */
.theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.theme-toggle:hover::before {
    opacity: 0.1;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.gradient-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.1) 50%, transparent 70%);
    animation: wave 8s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: heroContentFadeIn 1.5s ease-out 0.5s both;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: heroTitleSlideIn 1s ease-out 0.8s both;
}

@keyframes heroTitleSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: highlightUnderline 1.5s ease-out 1.5s forwards;
}

@keyframes highlightUnderline {
    to {
        transform: scaleX(1);
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    min-height: 2.5rem;
    font-weight: 500;
    animation: heroSubtitleFadeIn 1s ease-out 1.2s both;
}

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

.cursor-hero {
    animation: blink 1s infinite;
}

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

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: heroDescriptionFadeIn 1s ease-out 1.4s both;
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroButtonsFadeIn 1s ease-out 1.6s both;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* ===== SECTION STYLES ===== */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */

/* About Section Buttons Enhancement */
.about-buttons {
    position: relative;
    z-index: 100;
}

.about-buttons .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 100;
    min-height: 50px;
    padding: 12px 24px;
}

.about-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.about-buttons .btn:active {
    transform: translateY(-1px);
}

.about-buttons .btn-primary::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;
}

.about-buttons .btn-primary:hover::before {
    left: 100%;
}

/* Force button interactivity */
.about-buttons .btn:hover,
.about-buttons .btn:focus,
.about-buttons .btn:active {
    cursor: pointer !important;
    pointer-events: auto !important;
}
.about-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.profile-container {
    position: relative;
    display: inline-block;
    z-index: 2;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    opacity: 0.1;
    animation: profileGlow 4s ease-in-out infinite;
    z-index: -1;
}

@keyframes profileGlow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.profile-frame {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    transition: all var(--transition-normal);
    border: 4px solid var(--bg-primary);
}

.profile-frame:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.profile-frame:hover .profile-image {
    transform: scale(1.05);
}

.profile-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: -1;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}

.about-content {
    padding-left: 2rem;
    z-index: 50;
    position: relative;
}

.about-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0.05;
    z-index: -1;
}

.about-subtitle {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.about-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.about-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Achievements */
.achievement-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.achievement-item:hover::before {
    transform: scaleX(1);
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.achievement-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
    position: relative;
}

.achievement-number::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.achievement-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills */
.skills-title {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skill-item {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    transition: transform var(--transition-normal);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
}

.skill-percentage {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    width: 0;
    transition: width 2s ease-in-out;
}

/* ===== JOURNEY SECTION ===== */
.journey-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.journey-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Section Title */
.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.title-icon {
    font-size: 2.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin-bottom: 4rem;
    font-weight: 500;
}

/* Journey Grid */
.journey-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Section Groups */
.journey-section-group {
    background: var(--bg-primary);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.journey-section-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), #f59e0b);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.section-header h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

/* Experience Cards */
.experience-cards {
    display: grid;
    gap: 2rem;
}

.experience-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color), #059669);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.experience-card:hover::before {
    transform: scaleY(1);
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--secondary-color);
}

/* Card Headers */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.role-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.duration i {
    color: var(--primary-color);
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.current {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.status-badge.ongoing {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Card Content */
.description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-item {
    background: var(--bg-primary);
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.3s ease;
}

.tech-item:hover::before {
    left: 100%;
}

.tech-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

/* Achievements */
.achievements h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.achievements li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Education Cards */
.education-cards {
    display: grid;
    gap: 2rem;
}

.education-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.education-card:hover::before {
    transform: scaleY(1);
}

.education-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.degree-info h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.institution {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Specializations */
.specializations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.specialization {
    background: var(--bg-primary);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.specialization:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

/* Achievement Tags */
.achievement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.achievement-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.achievement-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    position: relative;
    overflow: hidden;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.portfolio-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: portfolioGlow 8s ease-in-out infinite;
}

@keyframes portfolioGlow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

/* Debug: Make sure portfolio buttons are clickable */
.portfolio-actions .btn {
    position: relative;
    z-index: 10;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.portfolio-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.portfolio-filters {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: 30px;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left var(--transition-normal);
}

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

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.portfolio-card {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all var(--transition-normal);
    height: 100%;
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(16, 185, 129, 0.02));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.02) 50%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

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

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

.portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-tertiary);
    border-radius: 12px 12px 0 0;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(90deg, #ff5f57, #ffbd2e, #28ca42);
    border-radius: 12px 12px 0 0;
    z-index: 1;
}

.portfolio-image img {
    transition: transform var(--transition-normal);
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.portfolio-image img {
    transition: transform var(--transition-normal);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(16, 185, 129, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-normal);
    backdrop-filter: blur(2px);
    border-radius: 12px 12px 0 0;
}

.portfolio-overlay::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transform: scale(0.8);
    transition: transform var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay::before {
    transform: scale(1);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-links {
    display: flex;
    gap: 1rem;
}

.portfolio-link {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.portfolio-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    transform: scale(0);
    transition: transform var(--transition-normal);
    z-index: -1;
}

.portfolio-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.15);
    border-color: var(--primary-color);
}

.portfolio-link:hover::before {
    transform: scale(1);
}

.portfolio-content {
    padding: 2rem;
    position: relative;
}

.portfolio-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.portfolio-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
    position: relative;
}

.portfolio-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.portfolio-card:hover .portfolio-title::after {
    transform: scaleX(1);
}

/* Portfolio Action Buttons */
.portfolio-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 576px) {
    .portfolio-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .portfolio-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.portfolio-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.portfolio-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border: none;
    color: white;
    box-shadow: var(--shadow-light);
}

.portfolio-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.portfolio-actions .btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.portfolio-actions .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.portfolio-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-item {
    padding: 2rem;
}

.testimonial-content {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.testimonial-quote {
    position: absolute;
    top: -15px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 4rem;
    color: var(--primary-color);
    font-family: serif;
}

.testimonial-rating {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-name {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-position {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    border: none;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.contact-form-container {
    background: var(--bg-primary);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 2;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.contact-form-container:hover {
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1rem 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
    min-height: 3rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: var(--text-muted);
    transition: all var(--transition-normal);
    pointer-events: none;
    z-index: 1;
    background: var(--bg-primary);
    padding: 0 0.25rem;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1;
}

.form-control:focus + .form-label,
.form-control.has-content + .form-label {
    top: 0.5rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--bg-primary);
    padding: 0 0.25rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-normal);
}

.form-group:focus-within::after {
    width: 100%;
}

.contact-info {
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.contact-item:hover::before {
    transform: scaleX(1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.contact-item h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}



/* ===== PROJECT DEMO MODAL ===== */
.demo-modal .modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-heavy);
}

.demo-modal .modal-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
}

.demo-modal .modal-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.demo-modal .modal-body {
    padding: 2rem;
    background: var(--bg-primary);
}

.demo-modal .modal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 16px 16px;
    padding: 1.5rem;
}

/* Demo Content Styling */
.demo-project-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.75rem;
}

.demo-project-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.demo-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.demo-project-tags .tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Demo Tabs */
.demo-modal .nav-tabs {
    border-bottom: 2px solid var(--border-color);
    gap: 0.5rem;
}

.demo-modal .nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px 8px 0 0;
    transition: all var(--transition-fast);
}

.demo-modal .nav-tabs .nav-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.05);
}

.demo-modal .nav-tabs .nav-link.active {
    color: var(--primary-color);
    background: transparent;
    border-bottom: 3px solid var(--primary-color);
}

/* Demo Frame Container */
.demo-frame-container {
    position: relative;
    min-height: 500px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.demo-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-secondary);
}

.demo-iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 12px;
}

/* Features and Tech Stack */
.features-list, .tech-stack {
    padding: 1rem 0;
}

.features-list ul, .tech-stack ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li, .tech-stack li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.features-list li:last-child, .tech-stack li:last-child {
    border-bottom: none;
}

.features-list li::before, .tech-stack li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Demo Links */
.demo-links {
    display: flex;
    gap: 0.75rem;
}

.demo-links .btn {
    transition: all var(--transition-fast);
}

.demo-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Responsive Demo Modal */
@media (max-width: 768px) {
    .demo-modal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .demo-modal .modal-body {
        padding: 1rem;
    }
    
    .demo-frame-container {
        min-height: 400px;
    }
    
    .demo-iframe {
        height: 400px;
    }
    
    .demo-modal .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .demo-project-tags {
        justify-content: center;
    }
}

/* ===== ENHANCED SIMPLE FOOTER ===== */
.simple-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.05);
}

.simple-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.simple-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.simple-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    position: relative;
}

.simple-footer a:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}

.simple-footer a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.simple-footer a:hover::before {
    width: 100%;
}

.simple-footer .copyright {
    color: var(--text-primary);
    font-weight: 600;
}

.simple-footer .legal-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

.simple-footer .legal-links a {
    position: relative;
    font-size: 0.85rem;
}

.simple-footer .separator {
    color: var(--text-muted);
    font-weight: 300;
    margin: 0 0.5rem;
}

.simple-footer .legal-links a:first-child {
    margin-right: 0;
}

.simple-footer .legal-links a:last-child {
    margin-left: 0;
}

/* Simple Footer Responsive */
@media (max-width: 768px) {
    .simple-footer .row {
        text-align: center;
    }
    
    .simple-footer .col-md-6:first-child {
        margin-bottom: 0.5rem;
    }
    
    .simple-footer .legal-links {
        justify-content: center;
        gap: 1.5rem;
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.back-to-top.show {
    display: flex;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Journey Section Mobile */
    .section-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .title-icon {
        font-size: 2rem;
    }
    
    .journey-section-group {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .section-header h3 {
        font-size: 1.5rem;
    }
    
    .section-line {
        display: none;
    }
    
    .experience-card,
    .education-card {
        padding: 2rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .role-info h4,
    .degree-info h4 {
        font-size: 1.3rem;
    }
    
    .tech-stack,
    .specializations {
        gap: 0.5rem;
    }
    
    .tech-item,
    .specialization {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .achievement-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .profile-frame {
        width: 250px;
        height: 250px;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .portfolio-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-form-container {
        padding: 2rem 1.5rem;
    }
    
    .testimonial-content {
        padding: 2rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .profile-frame {
        width: 200px;
        height: 200px;
    }
    
    .achievement-number {
        font-size: 2rem;
    }
    
    .portfolio-card {
        margin-bottom: 2rem;
    }
    
    .contact-form-container {
        padding: 1.5rem 1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.shadow-custom {
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

/* ===== SELECTION STYLING ===== */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
}

/* ===== FOCUS STYLES ===== */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .preloader,
    .scroll-progress-bar,
    .back-to-top,
    .hero-background {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
}
