/* ==========================================
   VARIABLES & RESET
   ========================================== */

:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #161618;
    --bg-card-hover: #1a1a1d;
    
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-dark: #4f46e5;
    --accent-glow: rgba(99, 102, 241, 0.4);
    
    --success: #22c55e;
    --warning: #f59e0b;
    
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    
    --border: #27272a;
    --border-light: #3f3f46;
    
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-3: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* ==========================================
   CURSOR GLOW EFFECT
   ========================================== */

.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
    transition: transform 0.15s ease-out, opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

/* ==========================================
   PARTICLES
   ========================================== */

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 15s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .particles {
        display: none;
    }
}

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

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

nav.scrolled {
    background: rgba(10, 10, 11, 0.95);
    border-bottom-color: var(--border);
    padding: 1rem 3rem;
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
}

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

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

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

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

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    padding: 6rem 2rem 2rem;
    z-index: 999;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    transition: color var(--transition-base);
}

.mobile-menu a:hover {
    color: var(--accent-light);
}

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

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    min-height: 100vh;
    width: 100%;
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(99, 102, 241, 0.08) 0%, var(--bg-primary) 60%);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200vw;
    height: 100%;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse 50% 70% at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 50% 70% at center, black 20%, transparent 70%);
    animation: gridPulse 8s infinite ease-in-out;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: orbFloat 10s infinite ease-in-out;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: 5%;
    right: 5%;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: #d946ef;
    bottom: 10%;
    left: 5%;
    animation-delay: -5s;
}

/* Extra orbs for large screens */
@media (min-width: 1600px) {
    .hero-orb-1 {
        width: 600px;
        height: 600px;
        right: 10%;
    }
    
    .hero-orb-2 {
        width: 500px;
        height: 500px;
        left: 10%;
    }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(-30px, -20px) scale(1.02); }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--success);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

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

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

.hero-title .gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-primary svg {
    transition: transform var(--transition-base);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}

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

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

section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ==========================================
   FEATURED PROJECTS
   ========================================== */

.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

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

.featured-project-reverse {
    direction: rtl;
}

.featured-project-reverse > * {
    direction: ltr;
}

.project-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid var(--accent);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.featured-project-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.featured-project-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.project-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.project-description-full h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.step-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.step-content strong {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feature-list .check {
    color: var(--success);
    font-weight: bold;
    min-width: 16px;
}

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

.tech-tag {
    padding: 0.35rem 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: 'Space Mono', monospace;
    transition: all var(--transition-base);
}

.tech-tag:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* Browser Mockup */
.featured-project-visual {
    position: relative;
}

.browser-mockup {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.featured-project:hover .browser-mockup {
    transform: translateY(-8px);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #22c55e; }

.browser-url {
    flex: 1;
    padding: 0.4rem 0.8rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.browser-content {
    background: var(--bg-card);
    overflow: hidden;
}

.project-gif {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   PROJECTS GRID
   ========================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

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

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

.project-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-subtitle {
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */

.skills-section {
    background: var(--bg-secondary);
    max-width: none;
    padding: 6rem 2rem;
}

.skills-section .section-header,
.skills-section .skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
}

.skill-category:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.skill-category-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.skill-category-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.1);
}

/* ==========================================
   SPECITEC SECTION
   ========================================== */

.specitec-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    max-width: none;
    padding: 6rem 2rem;
}

.specitec-section .section-header,
.specitec-content {
    max-width: 1200px;
    margin: 0 auto;
}

.specitec-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.specitec-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.specitec-intro strong {
    color: var(--accent-light);
}

.specitec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.specitec-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all var(--transition-base);
}

.specitec-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.specitec-card-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--accent);
}

.specitec-card h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.specitec-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.specitec-demo {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-glow);
}

.specitec-demo h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.demo-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.demo-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-description p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.demo-description ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.demo-description li {
    color: var(--text-secondary);
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.demo-description li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: 'Space Mono', monospace;
}

.demo-tech {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.demo-tech strong {
    color: var(--accent-light);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    position: relative;
    z-index: 1;
}

.about-image-decoration {
    position: absolute;
    inset: 12px -12px -12px 12px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.about-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.about-text {
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.7;
}

.about-text strong {
    color: var(--text-primary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.about-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trait {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    transition: all var(--transition-base);
    color: var(--text-secondary);
}

.trait svg {
    color: var(--accent);
}

.trait:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-section {
    max-width: none;
    padding: 6rem 2rem;
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.contact-bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, var(--accent-glow) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(217, 70, 239, 0.2) 0%, transparent 50%);
    opacity: 0.3;
}

.contact-wrapper h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
    position: relative;
}

.contact-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
    position: relative;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    position: relative;
}

.contact-link {
    padding: 0.875rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all var(--transition-base);
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-link:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-link-icon {
    color: var(--accent);
}

.contact-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
}

.contact-location svg {
    color: var(--accent);
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.35rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */

@media (max-width: 1024px) {
    nav {
        padding: 1rem 1.5rem;
    }
    
    nav.scrolled {
        padding: 0.875rem 1.5rem;
    }
    
    .featured-project {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    
    .featured-project-reverse {
        direction: ltr;
    }
    
    .featured-project-visual {
        order: -1;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-width: 260px;
        margin: 0 auto;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    nav {
        padding: 1rem;
    }
    
    nav.scrolled {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }

    section {
        padding: 4rem 1.25rem;
    }
    
    .hero {
        padding: 5rem 1.25rem;
        min-height: calc(100vh - 60px);
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-orb-1,
    .hero-orb-2 {
        width: 250px;
        height: 250px;
        filter: blur(60px);
    }
    
    .hero-orb-1 {
        right: -50px;
        top: 10%;
    }
    
    .hero-orb-2 {
        left: -50px;
        bottom: 20%;
    }

    .featured-project {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .featured-project-title {
        font-size: 1.5rem;
    }
    
    .project-details {
        flex-direction: column;
    }
    
    .how-it-works {
        gap: 0.5rem;
    }
    
    .step {
        gap: 0.75rem;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 0.75rem;
    }
    
    .browser-content {
        min-height: auto;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .specitec-grid {
        grid-template-columns: 1fr;
    }
    
    .specitec-card {
        padding: 1.5rem;
    }
    
    .specitec-demo {
        padding: 1.5rem;
    }
    
    .demo-card {
        padding: 1.25rem;
    }

    .about-stats {
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .about-traits {
        gap: 0.5rem;
    }
    
    .trait {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .contact-wrapper {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-lg);
    }
    
    .contact-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .contact-links {
        flex-direction: column;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
    }
    
    .contact-location {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE
   ========================================== */

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .about-traits {
        justify-content: center;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cursor-glow,
    .particles,
    .hero-orb {
        display: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
