/* ========================================
   AMOS MWANGI PORTFOLIO - MAIN STYLES
   Modern, Bold, Distinctive Design System
   ======================================== */

/* ============ CSS VARIABLES ============ */
:root {
    /* Colors - Bold & Distinctive */
    --primary: #00ff88;
    --primary-dark: #00cc6f;
    --primary-light: #66ffb3;
    --secondary: #ff006e;
    --accent: #8b5cf6;
    
    --bg-dark: #0a0a0a;
    --bg-medium: #1a1a1a;
    --bg-light: #2a2a2a;
    --bg-card: #151515;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Work Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
}

/* Light Theme */
[data-theme="light"] {
    --primary: #00cc6f;
    --primary-dark: #009955;
    --bg-dark: #ffffff;
    --bg-medium: #f5f5f5;
    --bg-light: #e5e5e5;
    --bg-card: #fafafa;
    --text-primary: #0a0a0a;
    --text-secondary: #4a4a4a;
    --text-muted: #9a9a9a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ============ BASE STYLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

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

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--text-secondary);
    line-height: 1.8;
}

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

/* ============ UTILITY CLASSES ============ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.section-title {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.section-description {
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    text-align: center;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Skip to Content - Accessibility */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: var(--bg-dark);
    padding: var(--space-sm) var(--space-md);
    z-index: 9999;
    font-weight: 700;
}

.skip-to-content:focus {
    top: 0;
}

/* ============ BUTTONS ============ */
.cta-primary,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-primary:hover::before {
    width: 300px;
    height: 300px;
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.4);
}

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

.cta-secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    background: var(--primary);
    transform: scale(1.1) rotate(180deg);
}

.theme-toggle i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition-base);
}

.theme-toggle:hover i {
    color: var(--bg-dark);
}

/* ============ CURSOR EFFECTS ============ */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    opacity: 0;
    z-index: 10000;
    transition: opacity 0.3s, transform 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    transition: all 0.15s ease;
}

/* ============ NAVIGATION ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all var(--transition-base);
}

/* Light Mode Navbar - White background with box shadow */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    width: 50px;
    height: 50px;
    transition: transform var(--transition-base);
}

.logo:hover img {
    transform: scale(1.1) rotate(5deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-base);
}

/* Light Mode Nav Links - Black text */
[data-theme="light"] .nav-links a {
    color: #0a0a0a;
}

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-base);
}

/* Mobile Navigation */
.mobile-navbar {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 1rem 2rem;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.mobile-nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    background: var(--primary);
    color: var(--bg-dark);
}

.mobile-nav-links i {
    font-size: 1.5rem;
}

/* ============ HERO SECTION ============ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -10%;
    right: -10%;
    animation-delay: 5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -30px); }
    50% { transform: translate(-20px, 20px); }
    75% { transform: translate(20px, 30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.hero-label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.hero-title {
    margin-bottom: var(--space-md);
}

.title-line {
    display: block;
    animation: slideUp 0.8s ease backwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }

.title-highlight {
    color: var(--primary);
    position: relative;
}

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

.hero-description {
    max-width: 500px;
    margin-bottom: var(--space-lg);
    font-size: 1.125rem;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.hero-socials {
    display: flex;
    gap: var(--space-md);
}

.hero-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    transition: all var(--transition-base);
}

.hero-socials a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-5px);
}

.hero-socials i {
    font-size: 1.5rem;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.visual-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 2rem;
    color: var(--primary);
}

.floating-card span {
    font-weight: 600;
    font-size: 0.875rem;
}

.card-1 {
    top: 10%;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 40%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: 4s;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    font-family: var(--font-mono);
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% { height: 0; opacity: 0; }
    50% { height: 40px; opacity: 1; }
    100% { height: 40px; opacity: 0; }
}

/* ============ STATS SECTION ============ */
.stats-section {
    padding: var(--space-xl) 0;
    background: var(--bg-medium);
}

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

.stat-item {
    text-align: center;
    padding: var(--space-md);
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

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

/* ============ SERVICES SECTION ============ */
.services-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-secondary);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 40px rgba(66, 133, 244, 0.15);
}

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

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

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============ WORK SECTION ============ */
.work-section {
    padding: var(--space-xl) 0;
}

.work-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--bg-light);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
}

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

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

.project-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.project-btn {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.project-btn:hover {
    transform: scale(1.05);
}

.project-info {
    padding: var(--space-md);
}

.project-tags {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.project-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Continue in next file... */
/* ============ ABOUT SECTION ============ */
.about-section {
    padding: var(--space-xl) 0;
    background: var(--bg-medium);
}

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

.about-text {
    margin-bottom: var(--space-md);
}

.about-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.skill-category h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.skill-category li::before {
    content: '▹';
    color: var(--primary);
    font-weight: bold;
}

.about-visual {
    position: relative;
    height: 500px;
}

.visual-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.stack-item {
    position: absolute;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.stack-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.stack-item i {
    font-size: 2.5rem;
    color: var(--primary);
}

.stack-item span {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.item-1 {
    top: 10%;
    left: 0;
    width: 220px;
}

.item-2 {
    top: 45%;
    right: 0;
    width: 200px;
}

.item-3 {
    bottom: 10%;
    left: 15%;
    width: 240px;
}

/* ============ PROCESS SECTION ============ */
.process-section {
    padding: var(--space-xl) 0;
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.process-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 49px;
    top: 100%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.step-number {
    width: 100px;
    height: 100px;
    background: var(--bg-card);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

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

/* ============ TESTIMONIALS SECTION ============ */
.testimonials-section {
    padding: var(--space-xl) 0;
    background: var(--bg-medium);
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto var(--space-lg);
    min-height: 350px;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100px);
    transition: all var(--transition-slow);
    pointer-events: none;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.testimonial-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--space-md);
}

.stars i {
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-dark);
    flex-shrink: 0;
}

.author-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}

.testimonial-prev,
.testimonial-next {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.testimonial-prev i,
.testimonial-next i {
    font-size: 1.5rem;
}

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

.testimonial-dot {
    width: 12px;
    height: 12px;
    background: var(--bg-light);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
}

.testimonial-dot.active,
.testimonial-dot:hover {
    background: var(--primary);
    transform: scale(1.2);
}

/* ============ CONTACT SECTION ============ */
.contact-section {
    padding: var(--space-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.contact-text {
    margin-bottom: var(--space-lg);
}

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

.contact-method {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

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

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.method-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.method-info a {
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

.method-info a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition-base);
}

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

.social-links i {
    font-size: 1.5rem;
}

/* ============ CONTACT FORM ============ */
.contact-form {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 2px solid var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-base);
}

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

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

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--error);
}

.error-message {
    display: block;
    margin-top: var(--space-xs);
    color: var(--error);
    font-size: 0.875rem;
}

.form-submit {
    width: 100%;
    justify-content: center;
}

.form-success {
    text-align: center;
    padding: var(--space-lg);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.form-success h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.form-success p {
    margin-bottom: var(--space-lg);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-medium);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-brand img {
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    max-width: 300px;
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    font-size: 1.125rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

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

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--space-md);
}

.footer-legal a {
    color: var(--text-muted);
    transition: color var(--transition-base);
}

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

/* ============ PROJECT MODAL ============ */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

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

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: rotate(90deg);
}

.modal-close i {
    font-size: 1.5rem;
}

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 90vh;
    overflow: hidden;
}

.modal-image {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-nav {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
}

.modal-prev,
.modal-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.modal-prev:hover,
.modal-next:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.modal-info {
    padding: var(--space-lg);
    overflow-y: auto;
    max-height: 90vh;
}

.modal-info::-webkit-scrollbar {
    display: none;
}

.modal-info {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-info h2 {
    margin-bottom: var(--space-sm);
}

.modal-tags {
    display: flex;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.modal-info p {
    margin-bottom: var(--space-lg);
}

.modal-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bg-light);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-primary);
}

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

.modal-tech h3 {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.modal-actions {
    display: flex;
    gap: var(--space-md);
}

.modal-actions .cta-primary,
.modal-actions .cta-secondary {
    flex: 1;
}

/* ============ LOADING SCREEN ============ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

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

.loader {
    width: 200px;
    height: 4px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-md);
}

.loader-bar {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
    animation: loading 2s ease-in-out;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

.loading-text {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* ============ ANIMATIONS ============ */
[data-aos] {
    opacity: 0;
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-down"] {
    transform: translateY(-30px);
}

[data-aos="fade-down"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-left"] {
    transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}