/* ========== BASE STYLES ========== */
:root {
    /* Main color palette */
    --primary-color: #6e56cf;
    --primary-light: #9881fb;
    --primary-dark: #4d3898;
    --secondary-color: #10b981;
    --accent-color: #f97316;
    --dark-bg: #09090b;
    --dark-surface: #121214;
    --card-bg: #1c1c20;
    --border-color: #27272a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Typography */
    --font-sans: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Animations */
    --transition-quick: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --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);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #0d9488 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #ea580c 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
    
    /* New animation variables */
    --animation-duration: 20s;
    --particle-count: 15;
}

/* Light theme variables */
[data-theme="light"] {
    --primary-color: #ff7e33;  /* Light orange */
    --primary-light: #ff9d5c;
    --primary-dark: #e66a2a;
    --secondary-color: #10b981;
    --accent-color: #f97316;
    --dark-bg: #ffffff;
    --dark-surface: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Light theme shadows */
    --shadow-sm: 0 1px 2px 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);
    
    /* Light theme gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #0d9488 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #ea580c 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary-color: #6e56cf;
    --primary-light: #9881fb;
    --primary-dark: #4d3898;
    --secondary-color: #10b981;
    --accent-color: #f97316;
    --dark-bg: #09090b;
    --dark-surface: #121214;
    --card-bg: #1c1c20;
    --border-color: #27272a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Dark theme shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --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);
    
    /* Dark theme gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #0d9488 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #ea580c 100%);
    --gradient-dark: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
}

/* Apply theme to body */
body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(var(--primary-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(var(--secondary-rgb), 0.1) 0%, transparent 50%);
    animation: gradientMove var(--animation-duration) ease infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Theme switch styles */
.theme-switch-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    z-index: 100;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.theme-switch-wrapper:hover {
    transform: scale(1.1);
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-bg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.slider:hover {
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 2px;
    background-color: var(--primary-color);
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--card-bg);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider i {
    position: absolute;
    font-size: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.slider .fa-moon {
    left: 8px;
}

.slider .fa-sun {
    right: 8px;
}

[data-theme="light"] .slider .fa-moon {
    opacity: 0.5;
}

[data-theme="dark"] .slider .fa-sun {
    opacity: 0.5;
}

/* Ensure all elements inherit theme colors */
* {
    color: inherit;
}

/* Theme-specific styles for sections */
section {
    background-color: var(--dark-surface);
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(var(--primary-rgb), 0.05) 49%, rgba(var(--primary-rgb), 0.05) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(var(--secondary-rgb), 0.05) 49%, rgba(var(--secondary-rgb), 0.05) 51%, transparent 52%);
    background-size: 60px 60px;
    opacity: 0.5;
    z-index: -1;
}

/* Theme-specific styles for cards */
.card-bg {
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
}

/* Theme-specific styles for text */
.text-primary {
    color: var(--text-primary);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-tertiary {
    color: var(--text-tertiary);
}

/* Theme-specific styles for borders */
.border-color {
    border-color: var(--border-color);
}

/* Theme-specific styles for buttons */
.btn {
    background-color: var(--primary-color);
    color: white;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-dark);
}

/* Theme-specific styles for navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--dark-surface);
    transition: background-color 0.3s ease;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-quick);
}

/* Theme-specific navbar styles */
[data-theme="light"] .navbar {
    background-color: var(--dark-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .navbar {
    background-color: var(--dark-surface);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Ensure navbar text colors change with theme */
[data-theme="light"] .nav-links a {
    color: var(--text-primary);
}

[data-theme="dark"] .nav-links a {
    color: var(--text-primary);
}

/* Mobile menu styles */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:first-child {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:last-child {
    bottom: 0;
}

.hamburger.active span:first-child {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:last-child {
    transform: translateY(-11px) rotate(-45deg);
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0.75rem 1rem;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        flex-direction: column;
        background-color: var(--dark-surface);
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: 0.3s ease-in-out;
        z-index: 99;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        margin: 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
        display: block;
        padding: 0.5rem 0;
    }

    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease-in-out;
        z-index: -1;
    }

    .nav-links.active::before {
        opacity: 1;
        visibility: visible;
    }

    .theme-switch-wrapper {
        margin-left: 0;
    }
}

/* Theme-specific styles for footer */
.footer {
    background-color: var(--dark-surface);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

/* Adjust navbar for theme switch */
.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(9, 9, 11, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 300;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul, ol {
    list-style-position: inside;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(odd) {
    background-color: var(--dark-surface);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    width: 100%;
    padding: 0 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-medium);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn: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: 0.5s;
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(2px);
}

.btn.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 10px rgba(110, 86, 207, 0.25);
}

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

.btn.secondary:hover {
    background-color: rgba(110, 86, 207, 0.1);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(var(--primary-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(var(--secondary-rgb), 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.10), transparent 50%);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-name-link {
    text-decoration: none;
    color: inherit;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: var(--transition-quick);
    display: inline-block;
}

.hero-name-link:hover {
    filter: brightness(1.25);
    transform: translateY(-2px);
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

.hero-image {
    flex: 1;
    position: relative;
    height: 400px;
    max-width: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
}

.image-placeholder:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.image-placeholder:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(110, 86, 207, 0.1), rgba(16, 185, 129, 0.1));
    z-index: 1;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: relative;
    z-index: 0;
    transition: var(--transition-medium);
}

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

.image-placeholder.small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transform: none;
}

.image-placeholder.small .profile-image {
    border-radius: 50%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.scroll-indicator i {
    font-size: 1.2rem;
}

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

/* ========== ABOUT SECTION ========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    order: 2;
    text-align: left;
}

.about-image {
    order: 1;
}

.about-image .image-placeholder {
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: var(--transition-medium);
}

.about-image .image-placeholder:hover {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.stat-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
}

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

.stat-item h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ========== SKILLS SECTION ========== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
}

.skill-category:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-dark);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.75rem;
}

.skill-category h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.skill-bar {
    height: 8px;
    background-color: var(--dark-bg);
    border-radius: 8px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 8px;
    position: relative;
    transition: width 1.5s ease-in-out;
}

.tools-container {
    margin-top: 3rem;
}

.tools-container h3 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.tool-item {
    background-color: var(--card-bg);
    padding: 1.5rem 1rem;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
}

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

.tool-item i {
    font-size: 2rem;
    color: var(--primary-light);
}

.tool-item span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========== PROJECTS SECTION ========== */
.project-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.6rem 1.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 30px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-quick);
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.project-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-image .image-placeholder {
    border-radius: 0;
    transform: none;
    height: 100%;
}

.project-image .image-placeholder:hover {
    transform: perspective(1000px) rotateY(5deg) rotateX(2deg);
}

.project-image .image-placeholder i {
    font-size: 3rem;
}

.project-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.project-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
}

.project-stats .stat {
    text-align: center;
}

.project-stats .stat span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.25rem;
}

.project-stats .stat p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin: 0;
}

.project-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: var(--transition-medium);
}

.project-image .image-placeholder {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
}

.project-image .image-placeholder:hover .project-logo {
    transform: scale(1.05);
}

/* ========== EXPERIENCE SECTION ========== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--border-color);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: calc(50% - 30px);
    margin-bottom: 60px;
    padding: 0;
}

.timeline-item:nth-child(odd) {
    margin-left: auto;
}

.timeline-date {
    position: absolute;
    top: -40px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 3;
}

.timeline-item:nth-child(odd) .timeline-date {
    left: -100px;
    transform: translateX(-50%);
}

.timeline-item:nth-child(even) .timeline-date {
    right: -100px;
    transform: translateX(50%);
}

.timeline-content {
    position: relative;
    padding: 25px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition-medium);
    z-index: 2;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -40px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -40px;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 24px;
    width: 20px;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    left: -20px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    right: -20px;
}

.timeline-content h3 {
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.timeline-content h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 20px;
}

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

.timeline-content ul li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.timeline-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* ========== CERTIFICATIONS SECTION ========== */
.certifications {
    background-color: var(--dark-surface);
    padding: 4rem 0;
}

.certifications-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.certification-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-medium);
    border: 1px solid var(--border-color);
}

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

.certification-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: rgba(110, 86, 207, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.certification-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.certification-info p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin: 0;
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials {
    position: relative;
    padding: 4rem 0;
    background: var(--dark-surface);
    width: 100%;
}

.testimonials-wrapper {
    position: relative;
    width: 100%;
    padding: 2rem 0;
    margin: 2rem 0;
}

.testimonials-track {
    display: flex;
    animation: scroll 25s linear infinite;
    width: fit-content;
    gap: 2rem;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonial-item {
    flex: 0 0 450px;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.testimonial-content {
    background: var(--card-bg);
    padding: 1.75rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-item:hover .testimonial-content {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.quote-icon {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.testimonial-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: auto;
}

.testimonial-author h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin: 0;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

@media (max-width: 768px) {
    .testimonial-item {
        flex: 0 0 350px;
    }
    
    .testimonial-content {
        padding: 1.5rem;
        min-height: 120px;
    }
}

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

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, transparent 48%, rgba(var(--primary-rgb), 0.1) 49%, rgba(var(--primary-rgb), 0.1) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(var(--secondary-rgb), 0.1) 49%, rgba(var(--secondary-rgb), 0.1) 51%, transparent 52%);
    background-size: 50px 50px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-light);
    background-color: rgba(110, 86, 207, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-bg);
    color: var(--text-secondary);
    border-radius: 10px;
    transition: var(--transition-medium);
    font-size: 1.2rem;
}

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

.contact-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: var(--transition-quick);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(110, 86, 207, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--dark-surface);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-logo p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-quick);
}

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

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.footer-bottom .credit {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-bottom .credit a {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition-quick);
}

.footer-bottom .credit a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .navbar .container {
        padding: 0 2rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 5rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-buttons {
        justify-content: center;
    }
    
    .skill-category h3:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .skills-container,
    .projects-grid,
    .certifications-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.25rem;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--dark-surface);
        width: 80%;
        height: calc(100vh - 70px);
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-medium);
        z-index: 99;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 100;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-container,
    .projects-grid,
    .certifications-container,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
    
    .timeline-date {
        left: -40px !important;
        top: -30px !important;
        transform: translateX(0) !important;
    }
    
    .timeline-content::before {
        left: -40px !important;
    }
    
    .timeline-content::after {
        left: -20px !important;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .about-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .about-buttons .btn {
        width: 100%;
    }
    
    .project-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .project-stats .stat {
        width: 45%;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}

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

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

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

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

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

.hidden {
    display: none !important;
}

.show {
    display: block !important;
}

/* Navbar hover animations */
.nav-links a {
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Theme-specific navbar hover effects */
[data-theme="light"] .nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(255, 126, 51, 0.3);
}

[data-theme="dark"] .nav-links a:hover {
    color: var(--primary-light);
    text-shadow: 0 0 8px rgba(152, 129, 251, 0.3);
}

/* Logo hover animation */
.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Theme switch hover animation */
.theme-switch-wrapper {
    transition: transform 0.3s ease;
}

.theme-switch-wrapper:hover {
    transform: scale(1.1);
}

.slider {
    transition: all 0.3s ease;
}

.slider:hover {
    box-shadow: 0 0 10px rgba(255, 126, 51, 0.3);
}

/* Mobile menu hover effects */
.hamburger span {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger:hover span {
    background-color: var(--primary-color);
}

.hamburger.active span {
    background-color: var(--primary-color);
}

/* Navbar container hover effect */
.navbar .container {
    transition: all 0.3s ease;
}

.navbar:hover .container {
    transform: translateY(1px);
}

/* Background patterns and decorative elements */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(var(--secondary-rgb), 0.05) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* Add subtle noise texture */
body::after {
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
        radial-gradient(circle at 10% 10%, rgba(var(--primary-rgb), 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(var(--secondary-rgb), 0.05) 0%, transparent 50%);
    opacity: 0.1;
    mix-blend-mode: overlay;
}

/* Add floating particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Add these particles dynamically with JavaScript */
.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 20%; left: 50%; animation-delay: 2s; }
.particle:nth-child(3) { top: 30%; left: 80%; animation-delay: 4s; }
.particle:nth-child(4) { top: 40%; left: 10%; animation-delay: 6s; }
.particle:nth-child(5) { top: 50%; left: 40%; animation-delay: 8s; }
.particle:nth-child(6) { top: 60%; left: 70%; animation-delay: 10s; }
.particle:nth-child(7) { top: 70%; left: 20%; animation-delay: 12s; }
.particle:nth-child(8) { top: 80%; left: 60%; animation-delay: 14s; }

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    70% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        left: 20px;
    }
}