/* CSS Variables */
:root {
    /* Colors */
    --primary-500: #007BFF;
    --primary-300: #66ADFF;
    --primary-700: #0056B3;
    --neutral-950: #0A0A0A;
    --neutral-1000: #000000;
    --neutral-100: #E4E4E7;
    --neutral-400: #A1A1AA;
    --neutral-700: #3F3F46;
    --success-500: #28A745;
    --warning-500: #FFC107;
    --error-500: #DC3545;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    --space-xxxl: 96px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Typography */
    --font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-h1: clamp(2.5rem, 5vw, 4rem);
    --font-size-h2: clamp(2rem, 4vw, 2.5rem);
    --font-size-h3: 1.5rem;
    --font-size-body: 1.125rem;
    --font-size-small: 0.875rem;
    
    /* Transitions */
    --transition-fast: 250ms ease-out;
    --transition-normal: 300ms cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: 500ms ease-in-out;
    
    /* Light Theme Variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
}

/* Light Theme */
body[data-theme="light"] {
    --neutral-950: #ffffff;
    --neutral-1000: #f8fafc;
    --neutral-100: #1a202c;
    --neutral-400: #718096;
    --neutral-700: #2d3748;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --border-color: #e2e8f0;
}

body[data-theme="light"] .card-tags .tag {
    background: #e2e8f0;
    color: #1a202c;
}

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

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-body);
    line-height: 1.7;
    color: var(--neutral-100);
    background: var(--neutral-1000);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--neutral-1000);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid var(--neutral-700);
    border-top: 4px solid var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-sm);
}

.loader-text {
    color: var(--neutral-400);
    font-size: var(--font-size-small);
}

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

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-500);
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--neutral-100);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width var(--transition-normal);
}

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

.nav-link:hover {
    color: var(--primary-500);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--neutral-100);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.05);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.theme-toggle .sun-icon {
    color: var(--warning-500);
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle .moon-icon {
    color: var(--primary-300);
    opacity: 0;
    position: absolute;
    transform: rotate(180deg);
}

body[data-theme="light"] .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

body[data-theme="light"] .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

body[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--neutral-1000) 0%, var(--neutral-950) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 123, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxxl);
    align-items: center;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: var(--font-size-h1);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--primary-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--neutral-400);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-primary {
    background: var(--primary-500);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-300);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

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

.btn-secondary:hover {
    background: var(--neutral-700);
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.profile-card {
    background: linear-gradient(135deg, var(--neutral-950) 0%, rgba(0, 123, 255, 0.1) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid var(--neutral-700);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-300) 100%);
}

.profile-avatar {
    margin-bottom: var(--space-md);
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-300) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
}

.profile-info h3 {
    font-size: var(--font-size-h3);
    margin-bottom: var(--space-xs);
    color: var(--neutral-100);
}

.profile-info p {
    color: var(--neutral-400);
    font-size: var(--font-size-small);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-500);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

/* Section Titles */
.section-title {
    font-size: var(--font-size-h2);
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--space-xxxl);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-300) 100%);
    border-radius: 2px;
}

/* About Section */
.about {
    padding: var(--space-xxxl) 0;
    background: var(--neutral-950);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xxxl);
    align-items: center;
}

.about-text p {
    margin-bottom: var(--space-md);
    color: var(--neutral-400);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

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

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

.stat-label {
    display: block;
    color: var(--neutral-400);
    font-size: var(--font-size-small);
    margin-top: var(--space-xs);
}

.about-card {
    background: linear-gradient(135deg, var(--neutral-1000) 0%, rgba(0, 123, 255, 0.05) 100%);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    border: 1px solid var(--neutral-700);
    transition: all var(--transition-normal);
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-500);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.1);
}

.about-icon {
    margin-bottom: var(--space-md);
    color: var(--primary-500);
}

.profile-image {
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
}

.profile-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--primary-500);
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
    transition: all var(--transition-normal);
}

.profile-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 123, 255, 0.3);
}

/* Typing Animation */
#typing-title {
    overflow: visible;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.2;
    font-size: var(--font-size-h1);
    font-weight: 700;
    color: var(--neutral-100);
    margin-bottom: var(--space-sm);
    min-height: 2.4em;
    display: block;
}

#typing-title .typing-line {
    display: inline-block;
    min-height: 1.2em;
    line-height: 1.2;
}

#typing-title .typing-line.typed {
    color: var(--primary-400);
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--primary-500);
    }
}

body[data-theme="light"] #typing-title {
    color: var(--neutral-1000);
}

body[data-theme="light"] #typing-title .typing-line.typed {
    color: var(--primary-500);
}

.about-card h3 {
    margin-bottom: var(--space-sm);
    color: var(--neutral-100);
}

/* Skills Section */
.skills {
    padding: var(--space-xxxl) 0;
    background: var(--neutral-1000);
}

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

.skill-item {
    text-align: center;
    transition: all var(--transition-normal);
}

.skill-item:hover {
    transform: translateY(-8px);
}

.skill-chart {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
}

.chart-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.chart-bg {
    fill: none;
    stroke: var(--neutral-700);
    stroke-width: 8;
}

.chart-progress {
    fill: none;
    stroke: var(--primary-500);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 2s ease-in-out;
}

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.skill-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-500);
}

.skill-name {
    color: var(--neutral-100);
    font-size: var(--font-size-body);
    font-weight: 600;
}

/* Expertise Section */
.expertise {
    padding: var(--space-xxxl) 0;
    background: var(--neutral-950);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.expertise-card {
    background: var(--neutral-1000);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    border: 1px solid var(--neutral-700);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.expertise-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-500);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.1);
}

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

.card-icon {
    margin-bottom: var(--space-md);
    color: var(--primary-500);
    transition: all var(--transition-normal);
}

.expertise-card:hover .card-icon {
    transform: scale(1.1);
}

.expertise-card h3 {
    font-size: var(--font-size-h3);
    margin-bottom: var(--space-sm);
    color: var(--neutral-100);
}

.expertise-card p {
    color: var(--neutral-400);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-500);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-small);
    font-weight: 500;
}

/* Portfolio Section */
.portfolio {
    padding: var(--space-xxxl) 0;
    background: var(--neutral-1000);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    color: var(--neutral-400);
    background: transparent;
    border: 1px solid var(--neutral-700);
    transition: all var(--transition-normal);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

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

/* Dropdown Filter */
.filter-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-btn {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: transparent;
    border: 1px solid var(--neutral-700);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    color: var(--neutral-400);
    font-weight: 500;
    transition: all var(--transition-normal);
}

.dropdown-btn:hover,
.dropdown-btn.active {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

.dropdown-btn svg {
    transition: transform var(--transition-normal);
}

.dropdown-btn:hover svg {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--neutral-1000);
    min-width: 120px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    border: 1px solid var(--neutral-700);
    z-index: 1000;
    margin-top: 5px;
    padding: var(--space-xs) 0;
    animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content .filter-btn {
    display: block;
    width: 100%;
    text-align: right;
    border: none;
    border-radius: 0;
    padding: var(--space-xs) var(--space-md);
    background: transparent;
    color: var(--neutral-400);
    transition: all var(--transition-fast);
}

.dropdown-content .filter-btn:hover {
    background: var(--primary-500);
    color: white;
}

.portfolio-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.portfolio-item {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.portfolio-item.active {
    display: block;
}

.portfolio-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content h3 {
    font-size: var(--font-size-h3);
    margin-bottom: var(--space-xs);
    color: white;
}

.portfolio-content p {
    color: var(--neutral-400);
    margin-bottom: var(--space-md);
}

.portfolio-links {
    display: flex;
    gap: var(--space-sm);
}

.play-btn,
.link-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.play-btn:hover,
.link-btn:hover {
    background: var(--primary-300);
    transform: scale(1.1);
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-lg);
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--neutral-950);
    color: var(--neutral-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    border: 1px solid var(--neutral-700);
}

.slider-btn:hover {
    background: var(--primary-500);
    border-color: var(--primary-500);
}

.slider-dots {
    display: flex;
    gap: var(--space-xs);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neutral-700);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.dot.active {
    background: var(--primary-500);
}

/* Contact Section */
.contact {
    padding: var(--space-xxxl) 0;
    background: var(--neutral-950);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxxl);
}

.contact-info h3 {
    font-size: var(--font-size-h2);
    margin-bottom: var(--space-md);
    color: var(--neutral-100);
}

.contact-info p {
    color: var(--neutral-400);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--neutral-1000);
    border-radius: var(--radius-sm);
    border: 1px solid var(--neutral-700);
    transition: all var(--transition-normal);
}

.contact-method:hover {
    border-color: var(--primary-500);
    transform: translateX(-5px);
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-500);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-content h4 {
    color: var(--neutral-100);
    margin-bottom: var(--space-xs);
}

.method-content p {
    color: var(--neutral-400);
    margin: 0;
}

.social-links h3 {
    font-size: var(--font-size-h3);
    margin-bottom: var(--space-lg);
    color: var(--neutral-100);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--neutral-1000);
    border-radius: var(--radius-sm);
    border: 1px solid var(--neutral-700);
    transition: all var(--transition-normal);
    color: var(--neutral-100);
}

.social-link:hover {
    border-color: var(--primary-500);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.2);
}

.social-link.telegram:hover { color: #0088cc; }
.social-link.instagram:hover { color: #E4405F; }
.social-link.whatsapp:hover { color: #25D366; }

/* Footer */
.footer {
    background: var(--neutral-1000);
    border-top: 1px solid var(--neutral-700);
    padding: var(--space-lg) 0;
    text-align: center;
    color: var(--neutral-400);
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--neutral-1000);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.video-modal-content iframe {
    width: 80vw;
    height: 45vw;
    max-width: 800px;
    max-height: 450px;
}

.video-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

/* Scroll Animation Classes */
.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
    animation: fadeInRight 0.8s ease-out;
}

.slide-in-right {
    animation: fadeInLeft 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --space-xxxl: 64px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--space-xxl);
        transition: left var(--transition-normal);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        margin: var(--space-sm) 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        text-align: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-filter {
        gap: var(--space-xs);
    }
    
    .filter-btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: var(--font-size-small);
    }
    
    .slider-controls {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .video-modal-content iframe {
        width: 90vw;
        height: 50vw;
    }
    
    #typing-title {
        font-size: 2rem;
        line-height: 1.2;
        min-height: 2.4em;
    }
    
    .brands .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-container {
        padding: 0 var(--space-sm);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        padding: var(--space-md);
    }
    
    .about-card {
        padding: var(--space-md);
    }
    
    .expertise-card {
        padding: var(--space-md);
    }
    
    .theme-toggle {
        top: 80px;
        right: 15px;
        padding: 6px 10px;
    }
    
    .theme-toggle .sun-icon,
    .theme-toggle .moon-icon {
        width: 28px;
        height: 28px;
    }
    
    .dropdown-content {
        position: fixed;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        right: 20px;
        min-width: 200px;
        background: var(--neutral-1000);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    }
}/* Programming Languages Section */
.programming-languages {
    background: var(--neutral-1000);
    padding: var(--space-xxxl) 0;
}

.programming-languages .section-title {
    text-align: center;
    margin-bottom: var(--space-xxl);
    font-size: var(--font-size-h2);
    font-weight: 700;
    color: var(--neutral-100);
}

.programming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.language-card {
    background: var(--neutral-900);
    border: 1px solid var(--neutral-800);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.language-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-500);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.language-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    padding: var(--space-sm);
    background: var(--primary-500);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.language-card:hover .language-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary-400);
}

.language-icon svg {
    width: 40px;
    height: 40px;
}

.language-card h3 {
    font-size: var(--font-size-h4);
    font-weight: 600;
    color: var(--neutral-100);
    margin-bottom: var(--space-sm);
}

.language-description {
    padding: var(--space-sm);
}

.description-text {
    font-size: var(--font-size-sm);
    color: var(--neutral-400);
    line-height: 1.5;
    display: block;
}

/* Hover effects for different languages */
.language-card[data-language="python"]:hover {
    border-color: #FFD43B;
    box-shadow: 0 20px 40px rgba(255, 212, 59, 0.2);
}

.language-card[data-language="php"]:hover {
    border-color: #777BB4;
    box-shadow: 0 20px 40px rgba(119, 123, 180, 0.2);
}

.language-card[data-language="html"]:hover {
    border-color: #E34F26;
    box-shadow: 0 20px 40px rgba(227, 79, 38, 0.2);
}

.language-card[data-language="css"]:hover {
    border-color: #1572B6;
    box-shadow: 0 20px 40px rgba(21, 114, 182, 0.2);
}

.language-card[data-language="java"]:hover {
    border-color: #007396;
    box-shadow: 0 20px 40px rgba(0, 115, 150, 0.2);
}

.language-card[data-language="javascript"]:hover {
    border-color: #F7DF1E;
    box-shadow: 0 20px 40px rgba(247, 223, 30, 0.2);
}

/* Light theme support */
body[data-theme="light"] .programming-languages {
    background: var(--neutral-100);
}

body[data-theme="light"] .programming-languages .section-title {
    color: var(--neutral-1000);
}

body[data-theme="light"] .language-card {
    background: var(--neutral-0);
    border-color: var(--neutral-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .language-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .language-card h3 {
    color: var(--neutral-1000);
}

body[data-theme="light"] .description-text {
    color: var(--neutral-600);
}

/* Responsive Design */
@media (max-width: 768px) {
    .programming-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--space-md);
    }
    
    .language-card {
        padding: var(--space-md);
    }
    
    .language-icon {
        width: 56px;
        height: 56px;
    }
    
    .language-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .programming-languages .section-title {
        font-size: var(--font-size-h3);
    }
}

@media (max-width: 480px) {
    .programming-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .language-card {
        padding: var(--space-sm);
    }
    
    .language-icon {
        width: 48px;
        height: 48px;
    }
    
    .language-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* Brands Carousel Styles */
.brands {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, var(--neutral-950) 0%, var(--neutral-900) 100%);
    position: relative;
    overflow: hidden;
}

.brands .section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--neutral-100);
    font-size: var(--font-size-h2);
    font-weight: 600;
}

.brands-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: var(--space-lg) 0;
}

.carousel-track {
    display: flex;
    gap: var(--space-md);
    animation: scroll-left 10s linear infinite;
    width: 200%;
    min-width: 100%;
}

/* Duplicate content for seamless loop */
.carousel-track::before,
.carousel-track::after {
    content: '';
    flex: 0 0 auto;
}

.brand-item {
    flex: 0 0 150px;
    flex-shrink: 0;
}

.brand-item {
    flex: 0 0 150px;
    height: 120px;
    background: var(--neutral-900);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-800);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Brand image styling */
.brand-item img {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
}

.brand-item p {
    color: var(--neutral-500);
    font-size: var(--font-size-sm);
    text-align: center;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-item:hover p {
    opacity: 1;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-500);
}

.brand-item img {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-xs);
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.brand-item:hover img {
    filter: grayscale(0%);
}

.brand-item p {
    color: var(--neutral-500);
    font-size: var(--font-size-sm);
    text-align: center;
    margin: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-item:hover p {
    opacity: 1;
}

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

/* Pause animation on hover */
.brands-carousel:hover .carousel-track {
    animation-play-state: paused;
}

/* Light theme adjustments */
body[data-theme="light"] .brands {
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
}

body[data-theme="light"] .brands .section-title {
    color: var(--neutral-1000);
}

body[data-theme="light"] .brand-item {
    background: var(--neutral-0);
    border-color: var(--neutral-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .brand-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-500);
}

body[data-theme="light"] .brand-item p {
    color: var(--neutral-600);
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand-item {
        flex: 0 0 120px;
        height: 100px;
        padding: var(--space-xs);
    }
    
    .brand-item img {
        max-width: 60px;
        max-height: 40px;
    }
    
    .carousel-track {
        gap: var(--space-sm);
    }
    
    .brands .section-title {
        font-size: var(--font-size-h3);
    }
}

@media (max-width: 480px) {
    .brand-item {
        flex: 0 0 100px;
        height: 80px;
    }
    
    .brand-item img {
        max-width: 50px;
        max-height: 30px;
    }
    
    .brand-item p {
        font-size: var(--font-size-xs);
    }
    
    #typing-title {
        font-size: 1.5rem;
        line-height: 1.3;
        min-height: 2em;
    }
}