/* ==========================================
   RESET & BASE STYLES
   ========================================== */

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

:root {
    /* Colors */
    --color-bg: #0a0a0a;
    --color-text: #e0e0e0;
    --color-text-dark: #808080;
    --color-accent: #00ff88;
    --color-accent-dim: #00cc6a;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Fonts */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.6s ease;
}

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

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================
   INTRO ANIMATION
   ========================================== */

body.intro-active {
    overflow-x: hidden;
    background: #0a0a0a;
}

.intro-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 20001;
}

.scroll-target {
    position: absolute;
    height: 1000vh;
    width: 100px;
    top: 0;
    left: 0;
    z-index: 0;
}

.vignette-radial {
    position: fixed;
    z-index: 20002;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
}

.vignette-radial:after {
    pointer-events: none;
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: radial-gradient(circle, transparent 60%, rgba(10, 10, 10, 0.8) 150%);
}

.skip-intro {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 20004;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.skip-intro:hover {
    background: var(--color-accent);
    color: var(--color-black);
    transform: translateX(-5px);
}

.intro-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20003;
    text-align: center;
    pointer-events: none;
}

.intro-brand {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.3em;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    animation: intro-pulse 2s ease-in-out infinite;
}

.intro-subtitle {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-dark);
    letter-spacing: 0.2em;
    text-transform: lowercase;
    margin-bottom: var(--spacing-md);
}

.intro-arrow {
    font-size: 2rem;
    color: var(--color-accent);
    animation: bounce 2s ease-in-out infinite;
}

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

@keyframes intro-pulse {
    0%, 100% { 
        opacity: 1;
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    }
    50% { 
        opacity: 0.8;
        text-shadow: 0 0 40px rgba(0, 255, 136, 0.8);
    }
}

/* ==========================================
   LOADING SCREEN
   ========================================== */

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5em;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
}

.loader-bar {
    width: 300px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--color-accent);
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(300%); }
}

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color var(--transition-normal);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

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

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-fast);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-fast);
}

/* ==========================================
   THREE.JS CANVAS
   ========================================== */

#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--spacing-xl) var(--spacing-md);
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: var(--spacing-lg);
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: var(--spacing-md);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .highlight {
    color: var(--color-accent);
    font-style: italic;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-text-dark);
    max-width: 600px;
    margin-bottom: var(--spacing-lg);
}

.hero-description .accent {
    color: var(--color-accent);
    font-weight: 600;
}

.hero-highlight {
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-size: 1rem;
    color: var(--color-accent);
    font-family: var(--font-mono);
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    padding: 1rem 2rem;
    border: 2px solid var(--color-accent);
    background: transparent;
    color: var(--color-accent);
    text-decoration: none;
    text-transform: lowercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transition: left var(--transition-normal);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--color-black);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-black);
}

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

.btn-secondary {
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-secondary::before {
    background: var(--color-white);
}

.btn-secondary:hover {
    color: var(--color-black);
}

.btn-ai {
    background: linear-gradient(135deg, var(--color-accent) 0%, #00cc6a 100%);
    border-color: var(--color-accent);
    color: var(--color-black);
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-ai::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 1v6m0 6v6m8.66-15L15 10m-6 4L3.34 20M23 12h-6m-6 0H1m19.66 8.66L15 14M9 10L3.34 3.34'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-ai:hover::after {
    opacity: 1;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1rem;
}

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

.scroll-line {
    width: 1px;
    height: 50px;
    background: var(--color-text-dark);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

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

section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    border-left: 3px solid var(--color-accent);
}

.section-number {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-accent);
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-white);
}

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

.about {
    background: rgba(255, 255, 255, 0.02);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-xl);
}

.about-photos {
    margin-bottom: var(--spacing-lg);
}

.about-image-main {
    width: 100%;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    border-radius: 12px;
    border: 3px solid var(--color-accent);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
    position: relative;
}

.about-image-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 255, 136, 0.1) 0%,
        transparent 50%,
        rgba(0, 255, 136, 0.1) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
}

.about-image-main:hover::before {
    opacity: 1;
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

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

.about-image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.gallery-image:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--color-accent);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
    z-index: 10;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    padding: var(--spacing-lg);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-text .lead {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

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

.about-text a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.about-text a:hover {
    border-bottom-color: var(--color-accent);
}

.about-quote {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    border-left: 3px solid var(--color-accent);
    background: rgba(0, 255, 136, 0.05);
}

.about-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.about-quote cite {
    font-size: 0.875rem;
    color: var(--color-text-dark);
    font-style: normal;
}

.about-expertise {
    padding: var(--spacing-lg);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-expertise h3 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
}

.expertise-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.expertise-list li {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.expertise-icon {
    color: var(--color-accent);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
    stroke: currentColor;
}

.expertise-list strong {
    display: block;
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.expertise-list p {
    font-size: 0.875rem;
    color: var(--color-text-dark);
    line-height: 1.5;
}

/* ==========================================
   WORK SECTION
   ========================================== */

.work-filters {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
    padding: var(--spacing-md);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-black);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-md);
}

.work-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.work-item.hidden {
    display: none;
}

.work-item:hover {
    transform: translateY(-10px);
}

.work-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-black);
    position: relative;
}

.work-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: var(--spacing-md);
    transition: transform var(--transition-slow);
}

.work-item:hover .work-image-placeholder {
    transform: scale(1.1);
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.work-item:hover .work-img {
    transform: scale(1.1);
}

.logo-img {
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-md);
}

/* Featured Work Item */
.work-item-featured {
    grid-column: span 2;
}

.work-video-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.work-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.work-item:hover .work-video {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.85) 0%,
        rgba(22, 33, 62, 0.8) 50%,
        rgba(15, 52, 96, 0.85) 100%
    );
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: var(--spacing-lg);
    transition: background var(--transition-normal);
}

.work-item:hover .video-overlay {
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.7) 0%,
        rgba(22, 33, 62, 0.6) 50%,
        rgba(15, 52, 96, 0.7) 100%
    );
}

.featured-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--color-accent);
    color: var(--color-black);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
    animation: pulse-badge 2s ease-in-out infinite;
}

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

.featured-content {
    text-align: center;
    color: var(--color-white);
    z-index: 10;
}

.featured-content h4 {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
    text-shadow: 
        0 2px 10px rgba(0, 255, 136, 0.5),
        0 0 20px rgba(0, 0, 0, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.9);
    animation: glow 2s ease-in-out infinite;
    background: rgba(10, 10, 10, 0.6);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

@keyframes glow {
    0%, 100% { 
        color: var(--color-white);
        text-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
    }
    50% { 
        color: var(--color-accent);
        text-shadow: 0 2px 20px rgba(0, 255, 136, 0.6);
    }
}

.featured-content p {
    font-size: 1.25rem;
    color: var(--color-white);
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(0, 0, 0, 0.8);
    background: rgba(10, 10, 10, 0.5);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.work-info {
    padding: var(--spacing-md);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

.work-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.work-category {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.work-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.work-link:hover {
    color: var(--color-white);
    transform: translateX(5px);
}

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

.skills {
    background: rgba(255, 255, 255, 0.02);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.skill-card {
    padding: var(--spacing-lg);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.skill-card:hover {
    border-color: var(--color-accent);
    background: rgba(0, 255, 136, 0.05);
    transform: translateY(-5px);
}

.skill-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
    stroke: currentColor;
    transition: all var(--transition-normal);
}

.skill-card:hover .skill-icon svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.6));
}

.skill-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.skill-card p {
    color: var(--color-text-dark);
    line-height: 1.6;
}

.skill-card a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.skill-card a:hover {
    border-bottom-color: var(--color-accent);
}

.skill-card-featured {
    border: 2px solid var(--color-accent);
    background: rgba(0, 255, 136, 0.05);
    position: relative;
}

.skill-card-featured::before {
    content: 'NEW';
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--color-accent);
    color: var(--color-black);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    letter-spacing: 0.1em;
}

.skill-link {
    display: inline-block;
    margin-top: var(--spacing-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-accent);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.skill-link:hover {
    color: var(--color-white);
    transform: translateX(5px);
}

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

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    text-align: left;
}

.contact-photo-wrapper {
    flex-shrink: 0;
}

.contact-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50%;
    border: 3px solid var(--color-accent);
    box-shadow: 
        0 0 20px rgba(0, 255, 136, 0.3),
        0 5px 20px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-normal);
}

.contact-photo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 0 30px rgba(0, 255, 136, 0.5),
        0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.contact-text .lead {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.contact-text p {
    font-size: 1.125rem;
    color: var(--color-text-dark);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
}

.contact-link:last-child {
    border-bottom: none;
}

.contact-link:hover {
    padding-left: var(--spacing-sm);
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.contact-value {
    font-size: 1rem;
    color: var(--color-accent);
}

.contact-cta {
    margin-top: var(--spacing-xl);
}

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

.footer {
    padding: var(--spacing-lg) 0;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-xs);
}

.footer-left p,
.footer-right p {
    font-size: 0.875rem;
    color: var(--color-text-dark);
}

.footer-right {
    text-align: right;
}

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

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 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);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-expertise {
        display: flex;
        flex-direction: column;
    }
    
    .about-image-main {
        max-width: 400px;
        margin: 0 auto var(--spacing-md) auto;
    }
    
    .work-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .work-item-featured {
        grid-column: span 1;
    }
    
    .featured-content h4 {
        font-size: 2rem;
    }
    
    .featured-content p {
        font-size: 1rem;
    }
}

/* ==========================================
   CHATBOT RESPONSIVE STYLES
   ========================================== */

@media (max-width: 768px) {
    .chatbot-orb {
        width: 50px;
        height: 50px;
        bottom: 15px;
    }

    .chatbot-icon {
        font-size: 1rem;
    }

    .chatbot-interface {
        width: 300px;
        height: 400px;
        bottom: 75px;
    }

    .chat-input input {
        font-size: 0.9rem;
    }

    .chat-input button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .chatbot-orb {
        width: 45px;
        height: 45px;
        bottom: 10px;
    }

    .chatbot-icon {
        font-size: 0.9rem;
    }

    .chatbot-interface {
        width: calc(100vw - 40px);
        max-width: 280px;
        height: 350px;
        bottom: 65px;
        left: 20px;
        transform: none;
    }

    .chatbot-interface.active {
        transform: translateY(-10px);
    }

    .chat-header h3 {
        font-size: 1rem;
    }

    .chat-body {
        font-size: 0.9rem;
        padding: 12px;
    }

    .chat-input {
        padding: 12px;
    }

    .chat-input input {
        padding: 8px;
        font-size: 0.85rem;
    }

    .chat-input button {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
    
    .section-header {
        padding: var(--spacing-sm);
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .about-text,
    .about-expertise,
    .contact-content {
        padding: var(--spacing-md);
    }
    
    .about-image-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xs);
    }
    
    .contact-header {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-photo {
        width: 120px;
        height: 120px;
    }
    
    .work-filters {
        padding: var(--spacing-sm);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-md);
        transition: right var(--transition-normal);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:last-child {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .footer-right {
        text-align: center;
    }
    
    .contact-link {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .work-filters {
        justify-content: center;
    }
    
    .loader-text {
        font-size: 1rem;
    }
    
    .loader-bar {
        width: 200px;
    }
    
    .intro-brand {
        font-size: 2rem;
        letter-spacing: 0.2em;
    }
    
    .intro-subtitle {
        font-size: 0.75rem;
    }
    
    .skip-intro {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

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

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

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

.hidden {
    display: none !important;
}

.chatbot-orb {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.chatbot-orb:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.6);
}

.chatbot-icon {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--color-black);
    font-weight: 700;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 255, 0); }
}

.chatbot-interface {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 450px;
    background-color: var(--color-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.chatbot-interface.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
}

.chat-header {
    background-color: var(--color-bg);
    padding: 15px;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.chat-header h3 {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--color-accent);
}

.chat-header button {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.chat-header button:hover {
    color: var(--color-accent);
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--color-bg);
    background-color: var(--color-bg);
}

.chat-input input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid var(--color-text-dark);
    border-radius: 5px;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    margin-right: 10px;
    outline: none;
}

.chat-input input::placeholder {
    color: var(--color-text-dark);
}

.chat-input button {
    background-color: var(--color-accent);
    color: var(--color-black);
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.chat-input button:hover {
    background-color: var(--color-accent-dim);
}

