/* Portfolio Styles - Simplified & Optimized */

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

/* Note: Core color variables (--primary-color, --secondary-color, --accent-color, dark theme variables) 
   are now consolidated in main styles.css. Local portfolio-specific variables retained below. */
:root {
    /* Portfolio-specific color extensions */
    --primary-dark: #4f46e5;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e5e7eb;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 20px 25px rgba(0, 0, 0, 0.1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme variable overrides */
body.dark-theme {
    --text-primary: var(--dark-heading-color);
    --text-secondary: var(--dark-text-color);
    --bg-primary: var(--dark-card-bg);
    --bg-secondary: var(--dark-subtle-bg);
}

/* Base Body Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

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

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

/* Hero Section - Premium Fortune 500 Styling */
.hero {
    padding: 140px 0 80px;
    background: 
        linear-gradient(135deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(248, 250, 252, 0.9) 25%,
            rgba(239, 246, 255, 0.85) 50%,
            rgba(229, 231, 235, 0.9) 100%
        ),
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dark-theme .hero {
    background: 
        linear-gradient(135deg, 
            rgba(17, 24, 39, 0.95) 0%, 
            rgba(31, 41, 55, 0.9) 25%,
            rgba(55, 65, 81, 0.85) 50%,
            rgba(75, 85, 99, 0.9) 100%
        ),
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.02) 50%, transparent 51%);
    opacity: 0.6;
}

.dark-theme .hero::before {
    background: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(45deg, transparent 49%, rgba(255, 255, 255, 0.01) 50%, transparent 51%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        transparent 100%
    );
    animation: shimmer 6s infinite ease-in-out;
    pointer-events: none;
}

.dark-theme .hero::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.02) 25%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0.02) 75%,
        transparent 100%
    );
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); opacity: 0; }
    50% { transform: translateX(0%); opacity: 1; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    opacity: 0.1;
    filter: blur(20px);
    z-index: -1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.dark-theme .hero-description {
    color: var(--dark-text-color);
}

/* Hero Subtitle */
.hero-subtitle {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-subtitle p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.dark-theme .hero-subtitle p {
    color: var(--dark-text-muted);
}

/* Portfolio Stats - Premium Fortune 500 Design */
.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto 4rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    padding: 0 1rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: 
        linear-gradient(145deg, 
            rgba(255, 255, 255, 0.95) 0%, 
            rgba(255, 255, 255, 0.85) 100%
        );
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dark-theme .stat-item {
    background: 
        linear-gradient(145deg, 
            rgba(31, 41, 55, 0.9) 0%, 
            rgba(17, 24, 39, 0.85) 100%
        );
    border: 1px solid rgba(75, 85, 99, 0.4);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

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

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

.stat-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.12),
        0 10px 25px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dark-theme .stat-item:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stat-number {
    display: block;
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
    text-shadow: 0 4px 8px rgba(79, 70, 229, 0.15);
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.dark-theme .stat-label {
    color: rgba(156, 163, 175, 0.9);
}

/* Hero Actions - Premium Button Design */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

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

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

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-color: transparent;
    box-shadow: 
        0 8px 24px rgba(79, 70, 229, 0.3),
        0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(79, 70, 229, 0.4),
        0 6px 16px rgba(79, 70, 229, 0.3);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: #4f46e5;
    border: 2px solid #4f46e5;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(79, 70, 229, 0.3),
        0 6px 16px rgba(79, 70, 229, 0.2);
}

.dark-theme .btn-outline {
    background: rgba(31, 41, 55, 0.9);
    color: #60a5fa;
    border-color: #60a5fa;
}

.dark-theme .btn-outline:hover {
    background: #60a5fa;
    color: var(--dark-bg-color);
}

/* Responsive Design for Hero Actions */
@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .portfolio-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

.hero-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Simplified Control Buttons */
.control-btn {
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

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

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

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

/* Dark theme variants */
.dark-theme .control-btn {
    border-color: #4cc9f0;
    color: #4cc9f0;
}

.dark-theme .control-btn.primary {
    background: #4cc9f0;
    color: var(--dark-bg-color);
}

.dark-theme .control-btn:hover {
    background: rgba(76, 201, 240, 0.1);
    border-color: #56cfe1;
    color: #56cfe1;
}

.dark-theme .control-btn.primary:hover {
    background: #56cfe1;
}

/* Portfolio Section */
.portfolio-section {
    padding: 10px 0 40px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.dark-theme .portfolio-section {
    background: var(--dark-bg-color);
}

.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Simplified Carousel Wrapper */
.carousel-wrapper {
    perspective: 2000px;
    overflow: visible;
    height: 600px;
    position: relative;
}

.carousel-track {
    display: flex;
    width: 1300%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Simplified Carousel Slides */
.carousel-slide {
    width: 7.692%;
    height: 100%;
    padding: 0 2rem;
    transform-style: preserve-3d;
    transition: var(--transition-slow);
    opacity: 0.6;
    filter: blur(2px);
    transform: scale(0.8) translateZ(-200px);
}

.carousel-slide.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateZ(0);
    z-index: 10;
}

.carousel-slide.next,
.carousel-slide.prev {
    opacity: 0.8;
    filter: blur(1px);
    transform: scale(0.9) translateZ(-100px);
    z-index: 5;
}

/* Simplified Project Cards */
.project-card {
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    position: relative;
    transition: var(--transition-slow);
    transform-style: preserve-3d;
    cursor: pointer;
}

.carousel-slide.active .project-card {
    transform: rotateY(0deg) scale(1);
}

.carousel-slide.next .project-card {
    transform: rotateY(-15deg) scale(0.95);
}

.carousel-slide.prev .project-card {
    transform: rotateY(15deg) scale(0.95);
}

/* Mockup Container */
.mockup-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 16px;
}

.mockup-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: var(--transition-slow);
    filter: brightness(1) contrast(1.1);
    border-radius: 16px;
}

.carousel-slide.active .mockup-image {
    transform: scale(1);
    filter: brightness(1) contrast(1.1);
}

/* Simplified Tap Hint */
.tap-hint {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 3;
    opacity: 0.8;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-theme .tap-hint {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Hide tap hint on desktop */
@media (min-width: 769px) {
    .tap-hint {
        display: none;
    }
}

/* Simplified Project Info Overlay */
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.98));
    color: var(--text-primary);
    transform: translateY(70%);
    transition: var(--transition-slow);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-theme .project-info {
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.95));
    color: var(--dark-text-color);
    border-color: rgba(255, 255, 255, 0.1);
}

.project-card:hover .project-info,
.project-card.active .project-info {
    transform: translateY(0);
}

/* Unified Hover Effects */
.project-card:hover .mockup-image {
    transform: scale(1.05);
}

.carousel-slide.active .project-card:hover .mockup-image {
    transform: scale(1.1);
}

/* Light/Dark mode hover brightness */
body:not(.dark-theme) .project-card:hover .mockup-image {
    filter: brightness(0.9) contrast(1.1);
}

.dark-theme .project-card:hover .mockup-image {
    filter: brightness(0.7) contrast(1.2);
}

/* Simplified Typography */
.project-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-theme .project-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.project-category {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.dark-theme .project-category {
    color: var(--accent-color);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    transition-delay: 0.1s;
}

.dark-theme .project-description {
    color: rgba(255, 255, 255, 0.9);
}

.project-card:hover .project-description,
.project-card.active .project-description {
    opacity: 1;
    transform: translateY(0);
}

/* Simplified Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    transition-delay: 0.2s;
}

.project-card:hover .project-tags,
.project-card.active .project-tags {
    opacity: 1;
    transform: translateY(0);
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.dark-theme .tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Simplified CTA Button */
.view-project-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1.5rem;
    align-self: flex-start;
    opacity: 0;
    transform: translateY(15px);
    transition-delay: 0.3s;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-theme .view-project-btn {
    background: linear-gradient(135deg, #4cc9f0, #4895ef);
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.25);
}

.project-card:hover .view-project-btn,
.project-card.active .view-project-btn {
    opacity: 1;
    transform: translateY(0);
}

.view-project-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.dark-theme .view-project-btn:hover {
    background: linear-gradient(135deg, #56cfe1, #64dfdf);
    box-shadow: 0 8px 25px rgba(76, 201, 240, 0.4);
}

/* Simplified Navigation */
.carousel-nav {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

/* Navigation Controls */
.carousel-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0 1rem 0;
}

.nav-dots {
    display: flex;
    gap: 1rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.nav-dot.active {
    background: var(--primary-color);
    transform: scale(1.3);
}

.nav-dot:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

/* Dark theme navigation */
.dark-theme .nav-dot {
    background: var(--dark-border-color);
}

.dark-theme .nav-dot.active {
    background: #4cc9f0;
}

.dark-theme .nav-dot:hover {
    background: #4cc9f0;
}

/* Simplified Swipe Indicators */
.swipe-indicators {
    margin-top: 2rem;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
}

.swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.dark-theme .swipe-hint {
    color: var(--dark-text-color);
}

.swipe-icon {
    font-size: 1.25rem;
    animation: wiggle 2s ease-in-out infinite;
}

.swipe-icon:last-child {
    animation-delay: 1s;
}

/* Simplified Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.dark-theme .stats-section {
    background: var(--dark-card-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.dark-theme .section-title {
    color: var(--dark-text-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.dark-theme .stat-card {
    background: var(--dark-bg-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--dark-border-color);
}

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

.dark-theme .stat-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.dark-theme .stat-number {
    color: var(--accent-color);
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.dark-theme .stat-label {
    color: var(--dark-text-color);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    text-align: center;
    color: white !important;
}

.dark-theme .cta-section {
    background: var(--dark-card-bg) !important;
    border-top: 1px solid var(--dark-border-color);
    color: var(--dark-text-color) !important;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
}

.dark-theme .cta-title {
    color: var(--dark-heading-color) !important;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: white !important;
}

.dark-theme .cta-description {
    color: var(--dark-text-color) !important;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

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

.dark-theme .cta-btn.primary {
    background: var(--dark-card-bg);
    color: var(--dark-heading-color);
    border: 1px solid var(--dark-border-color);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.dark-theme .cta-btn.secondary {
    background: transparent;
    color: var(--dark-text-color);
    border: 2px solid var(--dark-border-color);
}

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

.cta-btn.primary:hover {
    background: var(--bg-secondary);
}

.dark-theme .cta-btn.primary:hover {
    background: var(--dark-subtle-bg);
    color: var(--primary-color);
}

.cta-btn.secondary:hover {
    background: white;
    color: var(--primary-color);
}

.dark-theme .cta-btn.secondary:hover {
    background: var(--dark-border-color);
    color: var(--dark-heading-color);
}

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

@keyframes wiggle {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design - Mobile-First Card Layout */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 30px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-controls {
        flex-direction: column;
        align-items: center;
    }    .portfolio-section {
        padding: 20px 0 60px;
    }
    
    /* Force dark theme colors on mobile */
    body.dark-theme .project-card {
        background: #1e293b !important;
        color: #cbd5e1 !important;
    }
    
    body.dark-theme .project-info {
        background: #1e293b !important;
        color: #cbd5e1 !important;
    }
    
    body.dark-theme .project-title {
        color: #f1f5f9 !important;
    }
    
    body.dark-theme .project-description {
        color: #cbd5e1 !important;
    }
    
    body.dark-theme .mockup-container {
        background: #1a2438 !important;
    }
    
    /* Make carousel container flex to control order on mobile */
    .carousel-container {
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Move swipe indicators above carousel on mobile */
    .swipe-indicators {
        opacity: 1 !important;
        margin-top: 0 !important;
        margin-bottom: 2rem !important;
        order: -1 !important;
    }
    
    /* Override the 3D carousel for mobile - use simple card layout */
    .carousel-wrapper {
        height: auto !important;
        perspective: none !important;
        overflow: visible !important;
    }
    
    .carousel-track {
        display: flex !important;
        width: 100% !important;
        height: auto !important;
        transform-style: flat !important;
        transform: none !important;
        position: relative !important;
        transition: none !important;
    }
    
    .carousel-slide {
        width: 100% !important;
        height: auto !important;
        padding: 0 1rem !important;
        transform-style: flat !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
        display: none !important;
        visibility: visible !important;
        position: relative !important;
    }
    
    /* Show only the active slide on mobile */
    .carousel-slide.active {
        display: block !important;
        opacity: 1 !important;
        z-index: 10;
        transform: none !important;
        filter: none !important;
    }
    
    /* Hide adjacent slides on mobile */
    .carousel-slide.next,
    .carousel-slide.prev {
        display: none !important;
    }    /* Card-style project layout for mobile */
    .project-card {
        background: var(--bg-primary);
        border-radius: 20px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
        transform-style: flat !important;
        transform: none !important;
        display: block !important;
        height: auto !important;
        visibility: visible !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }
    
    .carousel-slide.active .project-card,
    .carousel-slide.next .project-card,
    .carousel-slide.prev .project-card {
        transform: none !important;
        display: block !important;
        visibility: visible !important;
    }    /* Large mockup area for mobile */
    .mockup-container {
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        height: 280px !important;
        width: 100% !important;
        overflow: hidden !important;
        border-radius: 20px 20px 0 0 !important;
        background: var(--bg-secondary);
    }
    
    .mockup-image {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        height: 90% !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 8px !important;
    }    /* Project info as card bottom section */
    .project-info {
        padding: 2rem 1.5rem !important;
        transform: none !important;
        position: relative !important;
        background: var(--bg-primary);
        margin-top: 0 !important;
        border-radius: 0 0 20px 20px !important;
        display: block !important;
        backdrop-filter: none !important;
        border: none !important;
        color: var(--text-primary);
    }    .project-title {
        font-size: 1.6rem !important;
        font-weight: 700 !important;
        margin-bottom: 0.5rem !important;
        color: var(--text-primary);
    }    .project-category {
        font-size: 0.9rem !important;
        color: var(--primary-color);
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        margin-bottom: 1rem !important;
    }    .project-description {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        color: var(--text-secondary);
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 1.5rem !important;
    }
    
    .project-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        margin-bottom: 1.5rem !important;
        opacity: 1 !important;
        transform: none !important;
    }    .tag {
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary-color);
        padding: 0.4rem 0.8rem !important;
        border-radius: 20px !important;
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        border: 1px solid rgba(99, 102, 241, 0.2);
    }    .view-project-btn {
        width: 100% !important;
        padding: 1rem 2rem !important;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: white !important;
        border: none !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        font-size: 1rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
        opacity: 1 !important;
        transform: none !important;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    }
    
    .view-project-btn:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    }
    
    /* Hide tap hint on mobile since it's always card format */
    .tap-hint {
        display: none !important;
    }
      /* Navigation Controls - Position below cards */
    .carousel-controls {
        display: flex !important;
        gap: 1rem !important;
        justify-content: center !important;
        margin: 2rem 0 1rem 0 !important;
        flex-wrap: wrap !important;
    }
    
    /* Stats section adjustments */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .carousel-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .carousel-wrapper {
        height: 450px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Performance Optimizations */
.mockup-image,
.carousel-slide,
.project-card {
    will-change: transform;
}
