/* ================================
   PORTFOLIO STYLESHEET - PROFESSIONAL DESIGN
   ================================ */

/* CSS Custom Properties for consistent theming and accessibility */
:root {
    /* Purple Palette - Primary Colors */
    --royal-purple: #5f43b2;
    --deep-purple: #4a3485;
    --light-purple: #725CAD;
    --purple-accent: #6c52a3;
    
    /* Complementary Colors */
    --gold-accent: #d4af37;
    --warm-gold: #e6c200;
    --plum: #8b5a8c;
    --deep-blue: #2c3e50;
    --midnight-blue: #1a252f;
    
    /* Light Theme Colors - True light theme with proper contrast */
    --bg-light: #ffffff;
    --text-light: #2c3e50; /* Darker for better contrast */
    --text-contrast-light: #1a252f;
    --surface-light: rgba(95, 67, 178, 0.05);
    --surface-elevated-light: rgba(95, 67, 178, 0.08);
    --border-light: rgba(95, 67, 178, 0.15);
    --nav-bg-light: rgba(255, 255, 255, 0.95);
    --card-bg-light: #fafafa;
    
    /* Dark Theme Colors */
    --bg-dark: #1a252f;
    --text-dark: #ffffff;
    --text-contrast-dark: #f8f9fa;
    --surface-dark: rgba(255, 255, 255, 0.1);
    --surface-elevated-dark: rgba(255, 255, 255, 0.15);
    --border-dark: rgba(255, 255, 255, 0.15);
    --nav-bg-dark: rgba(26, 37, 47, 0.95);
    --card-bg-dark: #2c3e50;
    
    /* Neutral Colors */
    --pure-white: #ffffff;
    --soft-white: #fafafa;
    --light-gray: #f8f9fa;
    --lavender: #b8a9d9;
    --medium-gray: #6c757d;
    --dark-gray: #343a40;
    
    /* Interactive States */
    --focus-ring: 0 0 0 3px rgba(95, 67, 178, 0.3);
    --hover-bg: rgba(255, 255, 255, 0.1);
    --active-bg: rgba(255, 255, 255, 0.2);
    
    /* Gradients */
    --purple-gradient: linear-gradient(135deg, var(--royal-purple) 0%, var(--deep-purple) 100%);
    --royal-gradient: linear-gradient(135deg, var(--royal-purple) 0%, var(--purple-accent) 50%, var(--gold-accent) 100%);
    --subtle-gradient: linear-gradient(135deg, var(--light-purple) 0%, var(--royal-purple) 100%);
    
    /* Professional Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.18);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.22);
    --soft-shadow: 0 2px 6px rgba(114, 92, 173, 0.15);
    
    /* Typography - Professional font stacks */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: Georgia, 'Times New Roman', serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    
    /* Font Sizes - Responsive scale */
    --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 0.95rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.6rem + 1vw, 2.5rem);
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions - Professional timing */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================
   GLOBAL STYLES & ACCESSIBILITY
   ================================ */

/* CSS Reset with accessibility improvements */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Improved focus management */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--gold-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Enhanced body styling with theme-aware colors */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    font-size: var(--text-base);
    background: var(--bg-light);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1, "liga" 1;
}

/* Dark theme implementation */
body.dark-theme {
    background: var(--bg-dark);
    color: var(--text-dark);
}

/* Light theme implementation - explicit for clarity */
body:not(.dark-theme), 
body.light-theme {
    background: var(--bg-light);
    color: var(--text-light);
    
}

/* Smooth scrolling with reduced motion respect */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Skip to content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--gold-accent);
    color: var(--deep-purple);
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-to-content:focus {
    top: 6px;
}

/* Improved heading hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: inherit;
}

h1 { font-size: var(--text-3xl); margin-bottom: var(--space-lg); }
h2 { font-size: var(--text-2xl); margin-bottom: var(--space-md); }
h3 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
h4 { font-size: var(--text-lg); margin-bottom: var(--space-sm); }
h5 { font-size: var(--text-base); margin-bottom: var(--space-xs); }
h6 { font-size: var(--text-sm); margin-bottom: var(--space-xs); }

/* Enhanced paragraph styling */
p {
    margin-bottom: var(--space-md);
    line-height: 1.7;
    text-align: left;
}

/* Better spacing for list items */
li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}


/* Professional link styling */
a {
    color: var(--gold-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--warm-gold);
    text-decoration: underline;
}

/* Improved list styling */
ul, ol {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
}

/* Professional button base styles */
button,
input[type="submit"],
input[type="button"],
.btn {
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-lg);
    background: var(--gold-accent);
    color: var(--deep-purple);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    min-height: 44px; /* Accessibility: minimum touch target */
    position: relative;
    overflow: hidden;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover {
    background: var(--warm-gold);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form controls styling */
input,
textarea,
select {
    font-family: inherit;
    font-size: var(--text-base);
    line-height: 1.5;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--surface-light);
    color: var(--text-light);
    transition: all var(--transition-normal);
    min-height: 44px; /* Accessibility: minimum touch target */
}

body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
    border-color: var(--border-dark);
    background: var(--surface-dark);
    color: var(--text-dark);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--gold-accent);
    box-shadow: var(--focus-ring);
    background: var(--surface-elevated-light);
}

body.dark-theme input:focus,
body.dark-theme textarea:focus,
body.dark-theme select:focus {
    background: var(--surface-elevated-dark);
}

/* ================================
   CONTAINER & LAYOUT
   ================================ */

.container {
    max-width: min(1200px, calc(100vw - 2rem));
    margin: 0 auto;
    padding: clamp(15px, 4vw, var(--space-lg));
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Professional scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-accent), var(--warm-gold));
    z-index: 1000;
    transition: width var(--transition-fast);
    border-radius: 0 2px 2px 0;
}

/* Enhanced section styling */
.section {
    background: var(--surface-light);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

body.dark-theme .section {
    background: var(--surface-dark);
    border-color: var(--border-dark);
}

body:not(.dark-theme) .section,
body.light-theme .section {
    background: var(--surface-light);
    border-color: var(--border-light);
    color: var(--text-light);
}

/* Reduced spacing for project sections */
.projects-page .section {
    margin-bottom: 20px;
    padding: 30px;
}

.projects-page .section h2 {
    margin-bottom: 20px;
}

/* Light theme specific styles for better readability */
body:not(.dark-theme) h1,
body:not(.dark-theme) h2, 
body:not(.dark-theme) h3,
body:not(.dark-theme) h4,
body:not(.dark-theme) h5,
body:not(.dark-theme) h6,
body.light-theme h1,
body.light-theme h2,
body.light-theme h3,
body.light-theme h4,
body.light-theme h5,
body.light-theme h6 {
    color: var(--text-contrast-light);
}

body:not(.dark-theme) .subtitle,
body.light-theme .subtitle {
    color: var(--medium-gray);
    opacity: 0.8;
}

body:not(.dark-theme) .nav-menu,
body.light-theme .nav-menu {
    background: var(--nav-bg-light);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

body:not(.dark-theme) .nav-item,
body.light-theme .nav-item {
    color: var(--text-light);
}

body:not(.dark-theme) .nav-item:hover,
body:not(.dark-theme) .nav-item.active,
body.light-theme .nav-item:hover,
body.light-theme .nav-item.active {
    color: var(--royal-purple);
    background: var(--surface-light);
}

body:not(.dark-theme) .project-card,
body.light-theme .project-card {
    background: var(--card-bg-light);
    border: 1px solid var(--border-light);
    color: var(--text-contrast-light);
}

body:not(.dark-theme) .project-card h3,
body.light-theme .project-card h3 {
    color: var(--text-contrast-light);
}

body:not(.dark-theme) .contact-card,
body.light-theme .contact-card {
    background: var(--card-bg-light);
    border: 1px solid var(--border-light);
    color: var(--text-light);
}

body:not(.dark-theme) .tech-tag,
body:not(.dark-theme) .skill-tag,
body.light-theme .tech-tag,
body.light-theme .skill-tag {
    background: var(--surface-elevated-light);
    color: var(--text-contrast-light);
    border: 1px solid var(--border-light);
}

body:not(.dark-theme) .filter-btn,
body.light-theme .filter-btn {
    background: var(--surface-light);
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

body:not(.dark-theme) .filter-btn.active,
body:not(.dark-theme) .filter-btn:hover,
body.light-theme .filter-btn.active,
body.light-theme .filter-btn:hover {
    background: var(--royal-purple);
    color: var(--pure-white);
}

body:not(.dark-theme) .theme-toggle,
body.light-theme .theme-toggle {
    background: var(--surface-light);
    color: var(--text-light);
    border: 1px solid var(--border-light);
}

body:not(.dark-theme) .back-to-top,
body.light-theme .back-to-top {
    background: var(--surface-elevated-light);
    color: var(--text-contrast-light);
    border: 1px solid var(--border-light);
}

/* Ensure proper contrast for interactive elements in light theme */
body:not(.dark-theme) .project-link,
body.light-theme .project-link {
    color: var(--text-contrast-light);
    border-color: var(--border-light);
}

body:not(.dark-theme) .project-link:hover,
body.light-theme .project-link:hover {
    background: var(--royal-purple);
    color: var(--pure-white);
}

body:not(.dark-theme) .contact-link,
body.light-theme .contact-link {
    color: var(--royal-purple);
}

body:not(.dark-theme) .social-link,
body.light-theme .social-link {
    color: var(--text-light);
    background: var(--surface-light);
    border: 1px solid var(--border-light);
}

body:not(.dark-theme) .social-link:hover,
body.light-theme .social-link:hover {
    background: var(--royal-purple);
    color: var(--pure-white);
}

/* Improved fade-in animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Background decoration */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(157, 123, 216, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ================================
   HEADER STYLES
   ================================ */

header {
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(114, 92, 173, 0.1);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--purple-gradient);
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--purple-gradient);
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pure-white);
    font-size: 52px;
    font-weight: bold;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-md);
    border: 4px solid var(--gold-accent);
    position: relative;
}

.profile-img::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--gold-accent), var(--royal-purple), var(--gold-accent));
    z-index: -1;
    animation: rotate 3s linear infinite;
}

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

h1 {
    color: var(--deep-purple);
    margin-bottom: 15px;
    font-size: 3em;
    font-family: var(--font-heading);
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(114, 92, 173, 0.1);
}

.subtitle {
    text-align: center;
    color: var(--royal-purple);
    font-size: 1.3em;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-contrast-light);
    background: var(--lavender);
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(114, 92, 173, 0.1);
    position: relative;
    overflow: hidden;
}

/* ================================
   SECTION STYLES
   ================================ */

.section {
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 35px;
    box-shadow: var(--medium-shadow);
    border: 1px solid rgba(114, 92, 173, 0.1);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--subtle-gradient);
}

.section h2 {
    color: var(--deep-purple);
    border-bottom: 3px solid var(--royal-purple);
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-family: var(--font-heading);
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gold-accent);
}

/* ================================
   SKILLS GRID
   ================================ */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
    align-items: start;
}

.skill-category {
    background: var(--lavender);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid var(--royal-purple);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.skill-category h3 {
    color: var(--deep-purple);
    margin-bottom: 18px;
    font-size: 1.3em;
    font-weight: 600;
    line-height: 1.2;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 15px;
}

/* Responsive skill tag adjustments */
@media (max-width: 768px) {
    .skill-tags {
        gap: 10px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .skill-tags {
        gap: 8px;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

.skill-tag {
    background: var(--lavender);
    color: var(--text-contrast-light);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: clamp(0.8rem, 0.85rem + 0.2vw, 0.95rem);
    font-weight: 500;
    transition: all 0.4s ease;
    border: 1px solid rgba(114, 92, 173, 0.2);
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(114, 92, 173, 0.15);
    position: relative;
    min-width: fit-content;
    max-width: 100%;
    display: inline-block;
    word-break: keep-all;
}

/* Dark mode skill tag styles */
body.dark-theme .skill-tag {
    background: #3a3153 !important;
    color: #ffffff !important;
    border: 1px solid rgba(58, 49, 83, 0.4) !important;
    box-shadow: 0 3px 10px rgba(58, 49, 83, 0.4) !important;
}

/* Dark mode tech tag styles */
body.dark-theme .tech-tag {
    background: #3a3153 !important;
    color: #ffffff !important;
    border: 1px solid rgba(58, 49, 83, 0.4) !important;
    box-shadow: 0 2px 8px rgba(58, 49, 83, 0.3) !important;
}

/* ================================
   PROJECT GRID
   ================================ */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.project-card {
    background: var(--lavender);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.github-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.github-stat-card {
  background-color: rgba(180, 150, 255, 0.15); /* soft purple */
  border: 1px solid rgba(150, 100, 255, 0.3);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  min-width: 160px;
  max-width: 200px;
  text-align: center;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  margin: var(--space-sm);
}

.github-stat-card:hover {
  transform: translateY(-4px);
}

.github-stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--text-accent, #6a0dad);
  margin-bottom: var(--space-md);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.github-stat-label {
  font-size: 1rem;
  color: var(--text-muted, #444);
  font-weight: 500;
  line-height: 1.4;
  padding-top: var(--space-xs);
}



/* Ensure project cards are visible by default */
.project-card,
.featured-project {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.3s ease;
    padding: 2rem;
    border-radius: 1rem;
}

/* Only hide cards when explicitly filtered out */
.project-card.hidden,
.featured-project.hidden {
    display: none !important;
}

.project-card h3 {
    color: var(--deep-purple);
    margin-bottom: 15px;
    font-size: 1.4em;
    font-weight: 600;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    align-items: center;
}

.tech-tag {
    background: rgba(114, 92, 173, 0.1);
    color: var(--text-contrast-light);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: clamp(0.75rem, 0.8rem + 0.1vw, 0.85rem);
    font-weight: 500;
    border: 1px solid rgba(114, 92, 173, 0.2);
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    min-width: fit-content;
    max-width: 100%;
    display: inline-block;
    word-break: keep-all;
}

/* ================================
   EXPERIENCE TIMELINE
   ================================ */

.experience-item {
    border-left: 3px solid var(--royal-purple);
    padding-left: 25px;
    margin-bottom: 30px;
    position: relative;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--royal-purple);
    border: 3px solid var(--pure-white);
    box-shadow: var(--soft-shadow);
}

.experience-date {
    color: var(--royal-purple);
    font-weight: 600;
    font-size: 0.9em;
    background: rgba(114, 92, 173, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 8px;
}

/* ================================
   LEARNING GOALS
   ================================ */

.learning-goals {
    background: linear-gradient(135deg, #b8860b, #daa520);
    border-radius: 15px;
    padding: 25px;
    margin-top: 25px;
    border: 2px solid rgba(114, 92, 173, 0.1);
}

/* Light mode plum background for learning goals */
body:not(.dark-theme) .learning-goals {
    background: linear-gradient(135deg, var(--plum), #a0829a);
    border: 2px solid rgba(114, 92, 173, 0.2);
}

.learning-goals h3 {
    color: var(--deep-purple);
    margin-bottom: 20px;
    font-size: 1.3em;
}

/* Ensure h3 text is readable in light mode with plum background */
body:not(.dark-theme) .learning-goals h3 {
    color: var(--pure-white);
}

.goal-list {
    list-style: none;
}

.goal-list li {
    padding: var(--space-md) 0;
    position: relative;
    padding-left: 35px;
    color: var(--deep-purple);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

/* Ensure goal list text is readable in light mode with plum background */
body:not(.dark-theme) .learning-goals .goal-list li {
    color: var(--pure-white);
}

.goal-list li::before {
    content: '👑';
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

/* ================================
   CALL TO ACTION
   ================================ */

.cta-section {
    text-align: center;
    background: var(--purple-gradient);
    color: var(--pure-white);
    border-radius: 20px;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.cta-section h2 {
    margin-bottom: 20px;
    font-size: 2.5em;
    font-family: var(--font-heading);
}

.cta-button {
    display: inline-block;
    background: var(--lavender);
    color: var(--royal-purple);
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    margin: 15px 10px;
    transition: all 0.3s ease;
    border: 2px solid var(--pure-white);
    position: relative;
    overflow: hidden;
}

/* Add better focus indicators for accessibility */
.cta-button:focus,
.project-card:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* ================================
   PROFESSIONAL NAVIGATION
   ================================ */

.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg-light);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    padding-right: 80px; /* Extra space for theme toggle */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--royal-purple);
    transition: all var(--transition-normal);
}

.nav-logo:hover {
    transform: scale(1.05);
    color: var(--deep-purple);
}

.logo-text {
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-right: var(--space-md); /* Extra margin to avoid theme toggle */
}

/* Dark theme navigation */
[data-theme="dark"] .nav-container,
.dark-theme .nav-container {
    background: var(--nav-bg-dark);
    border-bottom-color: var(--border-dark);
}

[data-theme="dark"] .nav-logo,
.dark-theme .nav-logo {
    color: var(--gold-accent);
}

body.dark-theme .nav-menu {
    background: transparent;
}

/* Add top padding to body content to account for fixed nav */
body {
    padding-top: 60px;
}

.container {
    padding-top: var(--space-lg);
}

/* Responsive navigation adjustments */
@media (max-width: 768px) {
    .nav-content {
        padding-right: 60px; /* Less space on mobile */
    }

    .nav-menu {
        gap: var(--space-md); /* Smaller gaps on mobile */
        margin-right: var(--space-sm);
    }

    .nav-item {
        font-size: 0.9rem; /* Slightly smaller text on mobile */
    }
}

.nav-item {
    color: var(--text-light);
    text-decoration: none;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    transition: all var(--transition-normal);
    font-weight: 600;
    font-size: var(--text-sm);
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
}

body.dark-theme .nav-item {
    color: var(--text-dark);
}

.nav-item:hover {
    background: var(--hover-bg);
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.nav-item:focus-visible {
    border-color: var(--gold-accent);
    box-shadow: var(--focus-ring);
}

.nav-item.active {
    background: var(--gold-accent);
    color: var(--deep-purple);
    border-color: var(--gold-accent);
    font-weight: 700;
}

.nav-item.active:hover {
    background: var(--warm-gold);
    border-color: var(--warm-gold);
    color: var(--deep-purple);
}

/* Mobile navigation improvements */
@media (max-width: 768px) {
    .nav-menu {
        padding: var(--space-sm) var(--space-md);
        gap: var(--space-xs);
        margin-bottom: var(--space-lg);
    }
    
    .nav-item {
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-xs);
        min-width: 80px;
    }
}

/* ================================
   PROFESSIONAL PROJECT FILTERS
   ================================ */

.project-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin: var(--space-2xl) 0;
    padding: 0 var(--space-md);
}

.filter-btn {
    background: var(--surface-light);
    color: var(--text-light);
    border: 2px solid var(--border-light);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    letter-spacing: 0.025em;
    min-width: 120px;
    min-height: 44px;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-theme .filter-btn {
    background: var(--surface-dark);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

.filter-btn:hover {
    background: var(--hover-bg);
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.filter-btn:focus-visible {
    border-color: var(--gold-accent);
    box-shadow: var(--focus-ring), var(--shadow-sm);
}

.filter-btn.active {
    background: var(--gold-accent);
    color: var(--deep-purple);
    border-color: var(--gold-accent);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.filter-btn.active:hover {
    background: var(--warm-gold);
    border-color: var(--warm-gold);
    transform: translateY(-1px);
}

.filter-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Responsive filter buttons */
@media (max-width: 768px) {
    .project-filter {
        gap: var(--space-xs);
        margin: var(--space-xl) 0;
        padding: 0 var(--space-sm);
    }
    
    .filter-btn {
        min-width: 100px;
        padding: var(--space-xs) var(--space-md);
        font-size: var(--text-xs);
    }
}

@media (max-width: 480px) {
    .filter-btn {
        min-width: 90px;
        font-size: var(--text-xs);
    }
}

/* ================================
   DARK MODE CORE STYLES
   ================================ */

/* Dark mode body and background */
body.dark-theme {
    background: #3a3153 !important;
    color: #ffffff !important;
}

/* Dark mode containers */
body.dark-theme .main-container,
body.dark-theme .project-container,
body.dark-theme .projects-container,
body.dark-theme .resume-container,
body.dark-theme .contact-container,
body.dark-theme .contact-hero,
body.dark-theme .contact-card,
body.dark-theme .contact-form,
body.dark-theme .section {
    background: #3a3153 !important;
    color: #ffffff !important;
    border: 1px solid rgba(58, 49, 83, 0.3);
    box-shadow: 0 8px 25px rgba(58, 49, 83, 0.4);
}

/* Dark mode cards - same color for consistency */
body.dark-theme .project-card,
body.dark-theme .skill-card,
body.dark-theme .certification-card,
body.dark-theme .github-stat-card {
    background: #3a3153 !important;
    color: #ffffff !important;
    border: 1px solid rgba(58, 49, 83, 0.3);
    box-shadow: 0 8px 25px rgba(58, 49, 83, 0.4);
}

/* Dark mode text elements */
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme p,
body.dark-theme span,
body.dark-theme div,
body.dark-theme label,
body.dark-theme .subtitle,
body.dark-theme .contact-title,
body.dark-theme .contact-info,
body.dark-theme .project-title,
body.dark-theme .skill-name,
body.dark-theme .certification-name {
    color: #ffffff !important;
}

/* Dark mode form elements */
body.dark-theme .form-group input,
body.dark-theme .form-group textarea,
body.dark-theme .form-group select {
    background: #3a3153 !important;
    color: #ffffff !important;
    border: 1px solid rgba(58, 49, 83, 0.5);
}

body.dark-theme .form-group input::placeholder,
body.dark-theme .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Dark mode buttons */
body.dark-theme .submit-btn,
body.dark-theme .download-btn,
body.dark-theme .cta-button,
body.dark-theme .contact-link {
    background: #3a3153 !important;
    color: #ffffff !important;
    border: 1px solid #3a3153;
    box-shadow: 0 4px 12px rgba(58, 49, 83, 0.3);
}

/* Dark mode contact items */
body.dark-theme .contact-item {
    background: #3a3153 !important;
    color: #ffffff !important;
    border: 1px solid rgba(58, 49, 83, 0.4) !important;
    box-shadow: 0 2px 8px rgba(58, 49, 83, 0.3) !important;
}

/* Dark mode checkmark elements */
body.dark-theme .checkmark {
    background: #725CAD !important;
    border: 2px solid rgba(114, 92, 173, 0.4) !important;
}

body.dark-theme .checkbox-group input[type="checkbox"]:checked + .checkmark {
    background: #725CAD !important;
    border-color: #725CAD !important;
}

/* Dark mode form progress elements */
body.dark-theme .form-progress {
    background: #725CAD !important;
}

body.dark-theme .form-progress-bar {
    background: #725CAD !important;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 0;
        max-width: 100%;
    }
    
    .featured-project {
        padding: 20px;
        margin: 20px 0;
        border-radius: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .project-description {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
        text-justify: none;
    }
    
    header {
        padding: 30px 20px;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    .skills-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 25px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .section h2 {
        font-size: 1.8em;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    .skill-category h3 {
        font-size: 1.2em;
        margin-bottom: 15px;
    }
}

.project-description {
    color: var(--dark-gray);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05em;
    text-align: justify;
    text-justify: inter-word;
    width: 100%;
    max-width: 100%;
}

/* Improved text layout for projects */
.project-highlights,
.data-insights,
.tech-stack,
.algorithm-showcase,
.timeline-item{
    position: relative;
    padding: 1rem 0 1rem 1.5rem;
    margin-bottom: 1rem;
}

.timeline-item::before{
    position: absolute;
    left: -0.9rem;
    top: 1.2rem;
    width: 14px;
    height: 14px;
    background: lightgray;
    border-radius: 50%;
    border: 2px solid white;
    content: "";
}

.timeline-item.completed{
    background-color: rgba(76, 175, 80, 0.1);
    border-left-color: rgba(76, 175, 80, 0.6);
    border-radius: 6px;
}

.timeline-item.completed::before {
    background: #4caf50;
}

body.dark-theme .timeline-item.completed {
    background-color: #46ab7a;
    border-left-color: rgba(76, 175, 80, 0.8);
}
.highlight-list,
.timeline-description {
    text-align: left;
    width: 100%;
}

.highlight-list li {
    margin-bottom: 8px;
    line-height: 1.6;
    text-align: left;
}

/* Responsive text sizes */
@media (max-width: 480px) {
    .featured-project {
        padding: 15px;
        margin: 15px 0;
    }
    
    .project-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .project-highlights,
    .data-insights,
    .tech-stack {
        padding: 15px;
        margin: 15px 0;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.3em;
    }
}

/* Theme-specific overrides for project descriptions */
body:not(.dark-theme) .project-description,
body.light-theme .project-description {
    color: var(--text-light);
}

/* Project Links & GitHub Icons */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--royal-purple);
    color: var(--pure-white);
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--royal-purple);
    position: relative;
    overflow: hidden;
}

.github-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.project-link:hover {
    background: var(--gold-accent);
    color: var(--deep-purple);
    border-color: var(--gold-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ================================
   PROFESSIONAL UI CONTROLS
   ================================ */

/* Enhanced Theme Toggle - More Visible and Defined */
.theme-toggle {
    position: fixed;
    top: var(--space-xl);
    right: var(--space-xl);
    width: 64px;
    height: 64px;
    background: var(--surface-elevated-light);
    border: 3px solid var(--royal-purple);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    font-size: 1.8rem;
    color: var(--royal-purple);
    /* Add a subtle pulse animation */
    animation: theme-toggle-pulse 3s ease-in-out infinite;
}

/* Pulse animation to make it more noticeable */
@keyframes theme-toggle-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: var(--shadow-lg);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: var(--shadow-xl), 0 0 20px rgba(95, 67, 178, 0.3);
    }
}

body.dark-theme .theme-toggle {
    background: var(--surface-elevated-dark);
    border-color: var(--gold-accent);
    color: var(--gold-accent);
    box-shadow: var(--shadow-lg), 0 0 15px rgba(244, 208, 63, 0.2);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-xl), 0 0 25px rgba(95, 67, 178, 0.4);
    background: var(--gold-accent);
    color: var(--deep-purple);
    border-color: var(--gold-accent);
    animation: none; /* Stop pulse on hover */
}

body.dark-theme .theme-toggle:hover {
    box-shadow: var(--shadow-xl), 0 0 25px rgba(244, 208, 63, 0.4);
}

.theme-toggle:focus-visible {
    box-shadow: var(--focus-ring), var(--shadow-lg);
    outline: none;
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* Add tooltip-like label */
.theme-toggle::before {
    content: attr(aria-label);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-elevated-light);
    color: var(--text-light);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    z-index: 1001;
}

body.dark-theme .theme-toggle::before {
    background: var(--surface-elevated-dark);
    color: var(--text-dark);
    border-color: var(--border-dark);
}

.theme-toggle:hover::before {
    opacity: 1;
    visibility: visible;
    bottom: -45px;
}

/* Enhanced Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 56px;
    height: 56px;
    background: var(--gold-accent);
    color: var(--deep-purple);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    font-size: 1.2rem;
    font-weight: bold;
}

body.dark-theme .back-to-top {
    background: var(--surface-elevated-dark);
    color: var(--text-dark);
    border: 2px solid var(--border-dark);
}

.back-to-top:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--warm-gold);
    color: var(--deep-purple);
}

.back-to-top:focus-visible {
    box-shadow: var(--focus-ring), var(--shadow-md);
}

.back-to-top:active {
    transform: scale(0.95);
}

/* ================================
   PROJECT ICON STYLES
   ================================ */

/* Enhanced Theme toggle icon styles with better definition */
.theme-toggle-sun,
.theme-toggle-moon {
    transition: all var(--transition-normal);
    display: inline;
    font-size: inherit;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Light mode - show moon (click to go dark) */
body:not(.dark-theme) .theme-toggle-sun {
    display: none;
}

body:not(.dark-theme) .theme-toggle-moon {
    display: inline;
    filter: drop-shadow(0 2px 4px rgba(95, 67, 178, 0.3));
}

/* Dark mode - show sun (click to go light) */
body.dark-theme .theme-toggle-sun {
    display: inline;
    filter: drop-shadow(0 2px 4px rgba(244, 208, 63, 0.4));
}

body.dark-theme .theme-toggle-moon {
    display: none;
}

/* Add subtle rotation animation */
.theme-toggle-sun {
    animation: rotate-sun 8s linear infinite;
}

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

/* Enhance moon with a subtle glow */
.theme-toggle-moon {
    position: relative;
}

.theme-toggle-moon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 208, 63, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.project-icon {
    width: 85px;
    height: 65px;
    background: var(--purple-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pure-white);
    text-align: center;
    line-height: 1.1;
    flex-shrink: 0;
    margin-right: 15px;
    padding: 12px;
    box-sizing: border-box;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.project-title {
    flex: 1;
    min-width: 200px;
}

/* ================================
   LIGHT THEME SPECIFIC STYLES
   ================================ */

/* Light theme specific fixes for text contrast */
body:not(.dark-theme) .skill-tag,
body.light-theme .skill-tag {
    color: var(--text-contrast-light) !important;
    background: rgba(114, 92, 173, 0.15) !important;
}

body:not(.dark-theme) .tech-tag,
body.light-theme .tech-tag {
    color: var(--text-contrast-light) !important;
    background: rgba(114, 92, 173, 0.15) !important;
}

body:not(.dark-theme) .contact-item,
body.light-theme .contact-item {
    color: var(--text-contrast-light) !important;
    background: rgba(114, 92, 173, 0.2) !important;
}

body:not(.dark-theme) .skill-category,
body.light-theme .skill-category {
    background: rgba(114, 92, 173, 0.08) !important;
}

body:not(.dark-theme) .skill-category h3,
body.light-theme .skill-category h3 {
    color: var(--text-contrast-light) !important;
}

body:not(.dark-theme) .project-card,
body.light-theme .project-card {
    background: var(--card-bg-light) !important;
    color: var(--text-contrast-light) !important;
}

body:not(.dark-theme) .project-card h3,
body.light-theme .project-card h3 {
    color: var(--text-contrast-light) !important;
}

body:not(.dark-theme) .project-card p,
body.light-theme .project-card p {
    color: var(--text-light) !important;
}

body:not(.dark-theme) .tech-item,
body.light-theme .tech-item {
    color: var(--text-contrast-light) !important;
    background: rgba(114, 92, 173, 0.15) !important;
}

body:not(.dark-theme) .tech-category-card,
body.light-theme .tech-category-card {
    background: var(--surface-elevated-light) !important;
    color: var(--text-light) !important;
}

body:not(.dark-theme) .tech-category-card h5,
body.light-theme .tech-category-card h5 {
    color: var(--text-contrast-light) !important;
}

body:not(.dark-theme) .method-card,
body.light-theme .method-card {
    background: var(--surface-elevated-light) !important;
    color: var(--text-light) !important;
}

body:not(.dark-theme) .method-title,
body.light-theme .method-title {
    color: var(--text-contrast-light) !important;
}

body:not(.dark-theme) .metric-card,
body.light-theme .metric-card {
    background: var(--surface-elevated-light) !important;
    color: var(--text-light) !important;
}

body:not(.dark-theme) .metric-number,
body.light-theme .metric-number {
    color: var(--royal-purple) !important;
}

/* ================================
   PROFESSIONAL METRICS DASHBOARD
   ================================ */

.metrics-dashboard {
    background: var(--purple-gradient);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin: var(--space-2xl) 0;
    color: var(--pure-white);
    position: relative;
    overflow: hidden;
}

.metrics-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.metrics-dashboard h2 {
    text-align: center;
    margin-bottom: var(--space-2xl);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--pure-white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.metric-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.metric-card::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.6s ease;
}

.metric-card:hover::before {
    left: 100%;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.metric-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.metric-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold-accent);
    line-height: 1;
    margin-bottom: var(--space-xs);
    font-family: var(--font-mono);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: inline-block;
}

.metric-suffix {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-accent);
    margin-left: 2px;
}

.metric-label {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: var(--space-sm);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.metric-description {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .metrics-dashboard {
        padding: var(--space-xl);
        margin: var(--space-xl) 0;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .metric-card {
        padding: var(--space-lg);
    }

    .metric-number {
        font-size: 2.5rem;
    }
}

/* Animation for counting effect */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-number.counting {
    animation: countUp 0.6s ease-out;
}

/* ================================
   INTERACTIVE SKILLS ASSESSMENT
   ================================ */

.skills-assessment {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.skill-category-advanced {
    background: var(--card-bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.skill-category-advanced:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--royal-purple);
}

.skill-category-advanced h3 {
    color: var(--royal-purple);
    margin-bottom: var(--space-lg);
    font-size: var(--text-lg);
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid var(--gold-accent);
    padding-bottom: var(--space-sm);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.skill-item {
    position: relative;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: all var(--transition-normal);
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-1px);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
}

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

.skill-level {
    font-size: var(--text-sm);
    font-weight: 500;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--royal-purple);
    color: var(--pure-white);
}

.skill-bar {
    height: 10px;
    background: rgba(95, 67, 178, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-sm) 0;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-progress {
    height: 100%;
    background: var(--purple-gradient);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-details {
    font-size: var(--text-sm);
    color: var(--medium-gray);
    font-style: italic;
    margin-top: var(--space-xs);
    padding-left: var(--space-xs);
    line-height: 1.4;
}

/* Skill progress animation trigger */
.skill-item.animate .skill-progress {
    width: var(--progress-width, 0%);
}

/* Dark theme adjustments */
[data-theme="dark"] .skill-category-advanced,
.dark-theme .skill-category-advanced {
    background: var(--card-bg-dark);
    border-color: var(--border-dark);
}

[data-theme="dark"] .skill-name,
.dark-theme .skill-name {
    color: var(--text-dark);
}

[data-theme="dark"] .skill-bar,
.dark-theme .skill-bar {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .skill-item,
.dark-theme .skill-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .skill-item:hover,
.dark-theme .skill-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-assessment {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .skill-category-advanced {
        padding: var(--space-lg);
    }

    .skill-items {
        gap: var(--space-md);
    }
}

/* ================================
   PROFESSIONAL TESTIMONIALS
   ================================ */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.testimonial-card {
    background: var(--card-bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    position: relative;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--royal-purple);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--purple-gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.testimonial-content {
    margin-bottom: var(--space-lg);
}

.quote-icon {
    font-size: 3rem;
    color: var(--royal-purple);
    line-height: 1;
    margin-bottom: var(--space-md);
    font-family: Georgia, serif;
    opacity: 0.7;
}

.testimonial-content p {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 700;
    color: var(--royal-purple);
    font-size: var(--text-base);
    margin-bottom: var(--space-xs);
}

.author-title {
    font-weight: 600;
    color: var(--text-light);
    font-size: var(--text-sm);
    margin-bottom: 2px;
}

.author-company {
    color: var(--medium-gray);
    font-size: var(--text-sm);
}

/* Dark theme adjustments */
[data-theme="dark"] .testimonial-card,
.dark-theme .testimonial-card {
    background: var(--card-bg-dark);
    border-color: var(--border-dark);
}

[data-theme="dark"] .testimonial-content p,
.dark-theme .testimonial-content p {
    color: var(--text-dark);
}

[data-theme="dark"] .author-title,
.dark-theme .author-title {
    color: var(--text-dark);
}

[data-theme="dark"] .testimonial-author,
.dark-theme .testimonial-author {
    border-top-color: var(--border-dark);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .testimonial-card {
        padding: var(--space-lg);
    }

    .quote-icon {
        font-size: 2.5rem;
    }
}

/* ================================
   PROJECT CARDS GRID LAYOUT
   ================================ */

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--royal-purple);
}

.project-card .project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.project-card .project-icon {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--royal-purple);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(95, 67, 178, 0.3);
    text-transform: uppercase;
    padding: 0.5rem;
    line-height: 1;
}

.project-card .project-status {
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.project-card .status-active {
    background: #d4edda;
    color: #155724;
}

.project-card .status-completed {
    background: #cce5ff;
    color: #004085;
}

.project-card h3 {
    color: var(--royal-purple);
    margin: 0.75rem 0 0.5rem 0;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
}

.project-card .project-subtitle {
    color: var(--medium-gray);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
}

.project-card .project-description {
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    padding: 0 0.25rem;
}

.project-card .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.project-card .tech-tag {
    background: var(--royal-purple);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.project-card .tech-tag:hover {
    background: var(--deep-purple);
    transform: translateY(-1px);
}

.project-card .project-metrics {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(95, 67, 178, 0.1);
    margin-top: 0.5rem;
}

.project-card .metric {
    background: var(--gold-accent);
    color: var(--dark-purple);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Dark theme support for project cards */
[data-theme="dark"] .project-card {
    background: var(--card-bg-dark);
    border-color: var(--border-dark);
}

[data-theme="dark"] .project-card .project-description {
    color: var(--text-dark);
}

/* ================================
   THEME TOGGLE BUTTON STYLES
   ================================ */

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--card-bg-light);
    border: 2px solid var(--border-light);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--royal-purple);
}

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

.theme-icon {
    font-size: 1.5rem;
    transition: transform 0.6s ease-in-out;
    display: inline-block;
    transform-origin: center;
}

/* Spinning animation class */
.theme-icon.spinning {
    animation: spin 0.6s ease-in-out;
}

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

/* Subtle pulse animation for theme toggle */
@keyframes pulse {
    0% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 2px 15px rgba(95, 67, 178, 0.3);
    }
    100% {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

.theme-toggle:focus {
    outline: none;
    animation: pulse 1s ease-in-out;
}

/* Dark theme toggle styles */
[data-theme="dark"] .theme-toggle,
.dark-theme .theme-toggle {
    background: var(--card-bg-dark);
    border-color: var(--border-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .theme-toggle:hover,
.dark-theme .theme-toggle:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Legacy support for sun/moon icons */
.theme-toggle-sun,
.theme-toggle-moon {
    font-size: 1.5rem;
    transition: transform 0.6s ease-in-out;
    display: inline-block;
    transform-origin: center;
}

/* Spinning animation for legacy icons */
.theme-toggle-sun.spinning,
.theme-toggle-moon.spinning {
    animation: spin 0.6s ease-in-out;
}

/* ================================
   DARK MODE CORE STYLES
   ================================ */
