/**
 * Muhammad Naeem Qureshi - Personal Portfolio
 * Custom Styles with Bootstrap Enhancements
 */

/* ========================================
   CSS Custom Properties (Variables)
======================================== */
:root {
    /* Color Palette - Light Mode */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    
    /* Neutral Colors */
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-dark: #111827;
    
    /* Border & Shadow */
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-primary: #f9fafb;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --text-light: #6b7280;
    
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --bg-dark: #030712;
    
    --border-color: #374151;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}

/* ========================================
   Base Styles
======================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

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

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

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

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Focus Styles for Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   Section Styles
======================================== */
.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 20px auto 0;
    border-radius: var(--radius-full);
}

/* Consultation / Calendly Section */
.consultation-section .consultation-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.consultation-section .section-header {
    margin-bottom: 1rem;
}
.calendly-embed-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-primary);
}
.calendly-inline-embed {
    width: 100%;
    height: 700px;
    min-height: 700px;
    border: 0;
}

/* Background Variations */
.bg-light {
    background-color: var(--bg-secondary) !important;
}

/* ========================================
   Navbar Styles
======================================== */
.navbar {
    padding: 1rem 0;
    background-color: transparent;
    transition: all var(--transition-normal);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

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

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-primary);
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color var(--transition-fast);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236366f1' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Theme Toggle Button */
.btn-theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-theme-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: rotate(15deg);
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
    min-height: 100vh;
    padding-top: 5.5rem;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 50%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.hero-particles::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

.hero-content {
    color: #ffffff;
    z-index: 1;
}

.hero-greeting {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(90deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-headline {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    min-height: 36px;
}

.typed-text {
    font-weight: 600;
}

.cursor {
    animation: blink 0.7s infinite;
}

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

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.hero-cta .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.hero-cta .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.hero-cta .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.hero-cta .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
}

.hero-cta .btn-cv {
    background: linear-gradient(135deg, #0d9488, #0f766e);
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.hero-cta .btn-cv:hover {
    background: linear-gradient(135deg, #14b8a6, #0d9488);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.4);
}

.hero-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-social a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 1.25rem;
    transition: all var(--transition-normal);
}

.hero-social a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 1;
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.image-wrapper img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-xl);
}

.image-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-2xl);
    opacity: 0.5;
    animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.02); opacity: 0.8; }
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.hero-scroll a:hover {
    color: #ffffff;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 20px;
    position: relative;
    margin-bottom: 0.5rem;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: currentColor;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================================
   About Section
======================================== */
.about-image {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--radius-2xl);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.experience-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.experience-badge .years {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
}

.experience-badge .text {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    opacity: 0.95;
}

.about-content h3 {
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.about-content .lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    padding-left: 1.25rem;
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
}

.about-content > p,
.about-content .about-description {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Read More toggle */
.about-read-more-actions {
    margin-bottom: 1rem;
}

.about-read-more-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.45s ease-out, opacity 0.35s ease-out;
}

.about-read-more-content.is-expanded {
    max-height: 120em;
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.4s ease-in;
}

.about-read-more-content .about-description {
    padding-top: 0.25rem;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-read-more:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-read-more:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-read-more-icon {
    font-size: 1.125rem;
    transition: transform var(--transition-normal);
}

.btn-read-more.is-expanded .btn-read-more-icon {
    transform: rotate(180deg);
}

/* About Highlights */
.about-highlights {
    margin-bottom: 2rem;
}

.highlight-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.highlight-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.highlight-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.highlight-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.highlight-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* About Stats */
.about-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ========================================
   Skills Section
======================================== */
.skill-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.skill-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.skill-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ========================================
   Services Section
======================================== */
.service-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05), transparent);
}

.service-card.featured::before {
    transform: scaleX(1);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.service-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.service-card > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.service-features li i {
    color: var(--secondary-color);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: gap var(--transition-normal);
}

.service-link:hover {
    gap: 0.75rem;
}

/* ========================================
   Projects Section
======================================== */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.filter-btn {
    background: none;
    border: 2px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.project-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all var(--transition-normal);
}

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

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.project-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 1.5rem;
    transform: translateY(20px);
    transition: all var(--transition-normal);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-link:hover {
    background-color: var(--primary-dark);
    color: #ffffff;
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-content > p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.project-role {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.project-tech span {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

/* Project Item Hidden State */
.project-item {
    transition: all var(--transition-normal);
}

.project-item.hidden {
    display: none;
}

/* ========================================
   Projects Carousel
======================================== */
.projects-carousel-wrapper {
    position: relative;
    padding: 0 60px;
}

.projects-carousel {
    overflow: hidden;
    position: relative;
}

.projects-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    gap: 1.5rem;
}

.projects-track .project-item {
    flex: 0 0 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
}

/* Carousel Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.carousel-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.carousel-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-nav-btn:disabled:hover {
    transform: translateY(-50%) scale(1);
    box-shadow: var(--shadow-lg);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding: 0;
}

.carousel-indicator:hover {
    background-color: var(--primary-light);
}

.carousel-indicator.active {
    background-color: var(--primary-color);
    width: 32px;
}

/* Auto-play indicator */
.carousel-autoplay-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-autoplay-btn {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.carousel-autoplay-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.carousel-autoplay-btn.playing {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive Carousel */
@media (max-width: 1199.98px) {
    .projects-track .project-item {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 767.98px) {
    .projects-carousel-wrapper {
        padding: 0 15px;
    }
    
    .projects-track .project-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-prev {
        left: -5px;
    }
    
    .carousel-next {
        right: -5px;
    }
}

@media (max-width: 575.98px) {
    .carousel-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}

/* ========================================
   Education Section
======================================== */
.education-wrapper {
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-xl);
    height: 100%;
}

.education-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

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

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 14px;
    height: 14px;
    background-color: var(--primary-color);
    border: 3px solid var(--bg-secondary);
    border-radius: var(--radius-full);
    transform: translateX(-6px);
}

.timeline-content {
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.timeline-date {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.institution {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-content > p:last-child {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

/* Certifications Grid */
.certifications-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.cert-card:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
}

.cert-icon {
    flex-shrink: 0;
}

.cert-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.cert-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cert-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ========================================
   Contact Section
======================================== */
.contact-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
    color: #ffffff;
}

.contact-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.contact-text a,
.contact-text p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

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

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.contact-form .form-control {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: all var(--transition-normal);
}

.contact-form .form-control:focus {
    background-color: var(--bg-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact-form .form-floating > label {
    padding: 1rem;
    color: var(--text-muted);
}

.contact-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.form-message {
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius-lg);
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

.form-message.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Map Wrapper */
.map-wrapper {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Footer
======================================== */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-about p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: #ffffff;
    font-size: 1.125rem;
    transition: all var(--transition-normal);
}

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

.footer-links h4,
.footer-contact h4 {
    color: #ffffff;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
}

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

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.footer-contact p i {
    color: var(--primary-light);
    font-size: 1rem;
    margin-top: 0.25rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    margin-top: 60px;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
}

.designed-by {
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Back to Top Button
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* ========================================
   Responsive Styles
======================================== */
@media (max-width: 1199.98px) {
    .hero-name {
        font-size: 3rem;
    }
    
    .image-wrapper img {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 991.98px) {
    .section-padding {
        padding: 80px 0;
    }
    
    .navbar {
        background: rgba(17, 24, 39, 0.95);
        backdrop-filter: blur(12px);
    }
    
    [data-theme="light"] .navbar {
        background: rgba(255, 255, 255, 0.95);
    }
    
    .hero-section {
        text-align: center;
        padding-top: 5rem;
    }
    
    .hero-content {
        margin-bottom: 3rem;
        text-align: center;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1.5rem;
    }
    
    .hero-greeting {
        font-size: 1.125rem;
        color: rgba(255, 255, 255, 0.98);
        margin-top: 0;
        margin-bottom: 0.75rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        gap: 0.625rem;
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0.65rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .navbar-collapse {
        background-color: var(--bg-primary);
        padding: 1rem;
        border-radius: var(--radius-lg);
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    [data-theme="dark"] .navbar-collapse {
        background-color: var(--bg-secondary);
    }
    
    .about-stats {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding-top: 4.5rem;
    }
    
    .hero-content {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-top: 1.25rem;
    }
    
    .hero-name {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-greeting {
        font-size: 1.125rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.98);
    }
    
    .hero-headline {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 0.9375rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0.6rem 1.125rem;
        font-size: 0.875rem;
        justify-content: center;
    }
    
    .image-wrapper img {
        width: 250px;
        height: 250px;
    }
    
    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1.5rem;
        display: inline-block;
    }
    
    .about-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex: 1 1 calc(50% - 0.75rem);
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding-top: 4rem;
    }
    
    .hero-content {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 1rem;
    }
    
    .hero-greeting {
        font-size: 1.0625rem;
        color: rgba(255, 255, 255, 0.98);
    }
    
    .hero-name {
        font-size: 1.75rem;
        line-height: 1.25;
    }
    
    .project-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.375rem 1rem;
        font-size: 0.875rem;
    }
}

/* ========================================
   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;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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

/* ========================================
   CAPTCHA Styles
======================================== */
.captcha-wrapper {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    transition: all var(--transition-normal);
}

.captcha-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.captcha-question {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.captcha-question i {
    color: var(--secondary-color);
    font-size: 1.125rem;
}

.captcha-question strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    padding: 0 0.5rem;
}

.btn-refresh-captcha {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem;
    margin-left: 0.5rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh-captcha:hover {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
}

.btn-refresh-captcha:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-refresh-captcha i {
    font-size: 1rem;
    transition: transform var(--transition-normal);
}

.btn-refresh-captcha:hover i {
    transform: rotate(180deg);
}

.btn-refresh-captcha.refreshing i {
    animation: spin 0.5s ease;
}

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

.captcha-wrapper .form-floating {
    margin-top: 0.75rem;
}

.captcha-wrapper .form-control {
    background-color: var(--bg-primary);
}

.captcha-wrapper .form-control::-webkit-outer-spin-button,
.captcha-wrapper .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.captcha-wrapper .form-control[type=number] {
    -moz-appearance: textfield;
}

/* Captcha Error State */
.captcha-wrapper.error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.captcha-wrapper.error .captcha-question {
    color: #ef4444;
}

/* Captcha Success State */
.captcha-wrapper.success {
    border-color: var(--secondary-color);
    background-color: rgba(16, 185, 129, 0.05);
}

/* Print Styles */
@media print {
    .navbar,
    .hero-scroll,
    .back-to-top,
    .btn-theme-toggle {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
}
