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

:root {
    --primary: #FF6B35;
    --secondary: #F7931E;
    --accent: #00D9FF;
    --dark: #0A0E27;
    --dark-light: #151a35;
    --light: #F4F4F9;
    --purple: #9D4EDD;
    --text-gray: rgba(255, 255, 255, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   CLAPPERBOARD - REALISTIC CINEMA CLAP
   ======================================== */

.clapperboard-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.clapperboard {
    position: relative;
    width: 550px;
    cursor: pointer;
    filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.9));
    transition: all 0.3s ease;
}

.clapperboard:hover {
    transform: scale(1.02) rotateZ(-1deg);
    filter: drop-shadow(0 40px 100px rgba(255, 107, 53, 0.6));
}

/* Clapper Arm - Top moving part */
.clapper-arm {
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    z-index: 20;
    transform-origin: bottom left;
    transform: rotateX(0deg);
    animation: initialClap 2s ease 0.5s;
}

@keyframes initialClap {
    0% { transform: rotateX(0deg); }
    15% { transform: rotateX(-50deg); }
    25% { transform: rotateX(0deg); }
    35% { transform: rotateX(-35deg); }
    45% { transform: rotateX(0deg); }
    55% { transform: rotateX(-20deg); }
    65% { transform: rotateX(0deg); }
}

.clapperboard.clapping .clapper-arm {
    animation: clapAction 0.8s ease;
}

@keyframes clapAction {
    0%, 100% { transform: rotateX(0deg); }
    15% { transform: rotateX(-50deg); }
    30% { transform: rotateX(0deg); }
    45% { transform: rotateX(-30deg); }
    60% { transform: rotateX(0deg); }
}

.clapper-top-part {
    position: relative;
    height: 80px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 8px;
    border: 3px solid #000;
    box-shadow: 
        inset 0 3px 10px rgba(255, 255, 255, 0.1),
        0 5px 20px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.diagonal-stripes {
    display: flex;
    height: 100%;
    transform: skewY(-8deg);
    margin-top: -10px;
}

.diagonal-stripe {
    flex: 1;
}

.diagonal-stripe.black {
    background: linear-gradient(to bottom, #000 0%, #1a1a1a 100%);
    box-shadow: inset 3px 0 8px rgba(0, 0, 0, 0.6);
}

.diagonal-stripe.white {
    background: linear-gradient(to bottom, #fafafa 0%, #e5e5e5 100%);
    box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.2);
}

.stick-end {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 60px;
    background: linear-gradient(to right, #2a2a2a, #1a1a1a);
    border-radius: 0 8px 8px 0;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.5);
}

/* Board Bottom */
.clapper-board {
    position: relative;
}

.board-top {
    position: relative;
    height: 75px;
    background: linear-gradient(to bottom, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 8px 8px 0 0;
    border: 3px solid #000;
    border-bottom: none;
    box-shadow: 
        inset 0 3px 10px rgba(255, 255, 255, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    z-index: 5;
}

.board-stripes {
    display: flex;
    height: 100%;
    transform: skewY(-8deg);
    margin-top: -10px;
}

.board-stripe {
    flex: 1;
}

.board-stripe.black {
    background: linear-gradient(to bottom, #000 0%, #1a1a1a 100%);
    box-shadow: inset 3px 0 8px rgba(0, 0, 0, 0.6);
}

.board-stripe.white {
    background: linear-gradient(to bottom, #fafafa 0%, #e5e5e5 100%);
    box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.2);
}

/* Screws */
.screw {
    position: absolute;
    width: 18px;
    height: 18px;
    background: radial-gradient(circle, #555 0%, #2a2a2a 60%, #000 100%);
    border-radius: 50%;
    border: 2px solid #666;
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.7),
        0 3px 10px rgba(0, 0, 0, 0.6);
    bottom: 10px;
}

.screw::before,
.screw::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background: #333;
    top: 50%;
    left: 50%;
}

.screw::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.screw::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.screw-1 {
    left: 40px;
}

.screw-2 {
    left: 50%;
    transform: translateX(-50%);
}

.screw-3 {
    right: 40px;
}

/* Main Board (black part) */
.board-main {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 50%, #000 100%);
    border: 3px solid #000;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 40px 45px 45px;
    box-shadow: 
        inset 0 10px 20px rgba(0, 0, 0, 0.5),
        0 20px 50px rgba(0, 0, 0, 0.8);
}

.board-lines {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.board-line {
    position: relative;
}

.white-bar {
    height: 3px;
    background: linear-gradient(90deg, #999 0%, #fff 50%, #999 100%);
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    border-radius: 2px;
}

.white-bar.short {
    width: 50%;
}

.line-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 8px;
}

.label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.value {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    text-align: right;
}

.board-line:first-child .value {
    font-size: 1.3rem;
    color: var(--primary);
}

.board-line:nth-child(2) .value {
    font-size: 0.95rem;
    font-family: 'Space Mono', monospace;
}

/* Grid */
.board-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 10px 0;
}

.grid-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.grid-item .label {
    font-size: 0.7rem;
}

.grid-item .value {
    font-size: 1.6rem;
    color: var(--secondary);
    text-align: left;
}

/* Instruction */
.clapper-instruction {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    animation: instructionFloat 2s ease-in-out infinite;
}

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

.instruction-icon {
    font-size: 1.5rem;
    animation: iconBounce 1s ease-in-out infinite;
}

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

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

section {
    padding: 8rem 2rem;
    position: relative;
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    mix-blend-mode: difference;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 14, 39, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
}

.logo-bracket {
    color: var(--accent);
}

.logo-name {
    color: var(--light);
}

.logo:hover .logo-name {
    color: var(--primary);
}

.main-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

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

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.1);
}

/* ========================================
   SECTION HEADERS
   ======================================== */

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

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

.section-number {
    font-family: 'Space Mono', monospace;
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
    margin-top: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   PAGE HEADER (for internal pages)
   ======================================== */

.page-header {
    padding: 10rem 2rem 6rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(10, 14, 39, 1) 0%, rgba(21, 26, 53, 1) 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.1;
    transform: translate(-50%, -50%);
}

.page-label {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.page-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    margin: 1rem 0;
    line-height: 1;
    background: linear-gradient(135deg, var(--light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 1.5rem auto 0;
    line-height: 1.7;
}

/* ========================================
   HERO SECTION (Home Page)
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark) 0%, #1a1f3a 50%, var(--dark) 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--primary) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--accent) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, var(--purple) 0%, transparent 50%);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-shape {
    position: absolute;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 20px;
    transform: rotate(45deg);
}

.shape-2 {
    top: 60%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    animation-delay: 2s;
}

.shape-3 {
    bottom: 15%;
    left: 20%;
    width: 100px;
    height: 100px;
    background: var(--purple);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    animation-delay: 4s;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-family: 'Space Mono', monospace;
    transition: opacity 0.3s ease;
    z-index: 15;
}

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

@keyframes scrollDown {
    0%, 100% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(20px); opacity: 1; }
}

/* ========================================
   HOMEPAGE SECTIONS
   ======================================== */

/* Quick About */
.quick-about {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.quick-about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.quick-about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.quick-about-text .lead {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--light);
}

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

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

.text-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: gap 0.3s ease;
}

.text-link:hover {
    gap: 1rem;
}

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

.visual-card {
    position: absolute;
    width: 250px;
    height: 350px;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.visual-card:nth-child(1) {
    top: 0;
    left: 0;
    transform: rotate(-5deg);
    z-index: 3;
}

.visual-card:nth-child(2) {
    top: 50px;
    left: 100px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    transform: rotate(5deg);
    z-index: 2;
}

.visual-card:nth-child(3) {
    top: 100px;
    left: 200px;
    background: linear-gradient(135deg, var(--purple), var(--primary));
    transform: rotate(-3deg);
    z-index: 1;
}

.visual-card:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10 !important;
}

/* Skills Preview */
.skills-preview {
    background: var(--dark);
}

.skills-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-preview-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.skill-preview-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.skill-preview-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-preview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

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

.center-link {
    text-align: center;
    margin-top: 3rem;
}

.text-link-large {
    color: var(--accent);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: gap 0.3s ease;
}

.text-link-large:hover {
    gap: 1.2rem;
}

/* Featured Projects */
.featured-projects {
    background: linear-gradient(180deg, var(--dark-light) 0%, var(--dark) 100%);
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
}

.featured-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
}

.featured-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.featured-card.large {
    grid-row: 1 / 3;
}

.featured-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.featured-card:nth-child(2) .featured-image {
    background: linear-gradient(135deg, var(--purple), var(--secondary));
}

.featured-card:nth-child(3) .featured-image {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.featured-card.large .featured-image {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.featured-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.featured-card.large .featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 14, 39, 0.95), transparent);
    padding: 3rem 2rem 2rem;
}

.featured-category {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.featured-content h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.featured-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.featured-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.featured-link:hover {
    gap: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--purple) 0%, var(--primary) 100%);
    text-align: center;
    padding: 6rem 2rem;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-label {
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 1rem 0;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

/* ========================================
   PROJECTS PAGE
   ======================================== */

.filter-section {
    padding: 3rem 2rem;
    background: var(--dark);
}

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

.filter-btn {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--light);
}

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

.projects-page {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.projects-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 3rem;
}

.project-item {
    transition: all 0.3s ease;
}

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

.project-card-full {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

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

.project-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: 'Archivo Black', sans-serif;
    font-size: 4rem;
    opacity: 0.1;
    z-index: 1;
}

.project-image-full {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.project-item:nth-child(2n) .project-image-full {
    background: linear-gradient(135deg, var(--purple), var(--secondary));
}

.project-item:nth-child(3n) .project-image-full {
    background: linear-gradient(135deg, var(--accent), var(--primary));
}

.project-content-full {
    padding: 2rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.project-category {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
}

.project-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.project-title-full {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.project-description-full {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tags-full {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.project-tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Space Mono', monospace;
    color: var(--primary);
}

.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.detail-item {
    font-size: 0.9rem;
}

.detail-item strong {
    display: block;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.detail-item p {
    color: var(--text-gray);
    margin: 0;
}

.project-link-full {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.project-link-full:hover {
    gap: 1rem;
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.about-detailed {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.about-main {
    color: var(--text-gray);
}

.content-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2rem;
    color: var(--light);
    margin: 3rem 0 1.5rem;
}

.content-title:first-child {
    margin-top: 0;
}

.text-large {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--light);
    margin-bottom: 1.5rem;
}

.about-main p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.quote {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    margin: 2rem 0;
}

.quote p {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--light);
    margin: 0 0 1rem 0;
}

.quote cite {
    font-size: 0.9rem;
    color: var(--accent);
    font-style: normal;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.interest-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

.interest-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.interest-card h3 {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.interest-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.info-value {
    color: var(--light);
    font-weight: 600;
    text-align: right;
}

.language-item {
    margin-bottom: 1.5rem;
}

.language-item:last-child {
    margin-bottom: 0;
}

.language-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1s ease;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: var(--light);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.download-btn:last-child {
    margin-bottom: 0;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.download-btn span:first-child {
    font-size: 2rem;
}

.download-btn strong {
    display: block;
    margin-bottom: 0.2rem;
}

.download-btn small {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Skills Detailed */
.skills-detailed {
    background: var(--dark);
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.skill-tab {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.skill-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
}

.skill-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.skill-tab-content {
    display: none;
}

.skill-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

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

.skill-detailed-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-detailed-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skill-detailed-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 10px;
    transition: width 1s ease;
}

.skill-detailed-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
}

/* Timeline */
.timeline {
    background: linear-gradient(180deg, var(--dark-light) 0%, var(--dark) 100%);
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -38px;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--dark);
    z-index: 2;
}

.timeline-content {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

.timeline-date {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-page {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--light);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

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

.submit-btn {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

.form-notice {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* Contact Info */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-detail-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-detail-content h4 {
    font-size: 1.1rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.contact-detail-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-detail-content a:hover {
    color: var(--primary);
}

.contact-detail-content p {
    color: var(--text-gray);
    margin: 0;
}

.availability-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(157, 78, 221, 0.2);
    border: 1px solid var(--purple);
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--purple);
}

.social-links-detailed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link-detailed {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
}

.social-link-detailed:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.social-icon {
    font-size: 1.8rem;
}

.social-link-detailed strong {
    display: block;
    margin-bottom: 0.2rem;
}

.social-link-detailed small {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.download-link-detailed {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
}

.download-link-detailed:hover {
    background: rgba(255, 255, 255, 0.1);
}

.download-icon {
    font-size: 2rem;
}

.download-link-detailed strong {
    display: block;
    margin-bottom: 0.2rem;
}

.download-link-detailed small {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.download-arrow {
    margin-left: auto;
    font-size: 1.5rem;
}

/* FAQ Section */
.faq-section {
    background: var(--dark);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--light);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

/* Map Section */
.map-section {
    background: linear-gradient(180deg, var(--dark-light) 0%, var(--dark) 100%);
}

.map-placeholder {
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.map-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.map-content h3 {
    font-size: 2rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.map-content p {
    color: var(--text-gray);
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, var(--purple), var(--primary));
    text-align: center;
    padding: 5rem 2rem;
}

.contact-cta-content h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: 1rem;
}

.contact-cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.phone-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 3rem;
    background: white;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.phone-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.phone-icon {
    font-size: 2rem;
}

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

.footer {
    background: var(--dark);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 1.5rem;
}

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

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-col p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.footer-made {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
}

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

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.parallax-layer {
    transition: transform 0.1s ease-out;
}

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

@media (max-width: 1024px) {
    .about-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .quick-about-content,
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .featured-card.large {
        grid-row: auto;
    }

    .quick-about-visual,
    .about-sidebar {
        display: none;
    }

    .interests-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 5rem 1.5rem;
    }

    .header-container {
        padding: 1rem 1.5rem;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: 70px;
    }

    .clapperboard {
        width: 400px;
    }

    .clapper-top-part,
    .board-top {
        height: 65px;
    }

    .board-main {
        padding: 30px 35px 35px;
    }

    .value {
        font-size: 1rem;
    }

    .board-line:first-child .value {
        font-size: 1.1rem;
    }

    .grid-item .value {
        font-size: 1.3rem;
    }

    .projects-masonry {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .timeline-container {
        padding-left: 30px;
    }

    .timeline-container::before {
        left: 10px;
    }

    .timeline-dot {
        left: -28px;
    }

    .skills-tabs,
    .filter-buttons {
        flex-direction: column;
    }

    .skill-tab,
    .filter-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-title,
    .page-title {
        font-size: 2rem;
    }

    .clapperboard {
        width: 300px;
    }

    .clapper-top-part,
    .board-top {
        height: 55px;
    }

    .stick-end {
        width: 20px;
        height: 50px;
        right: -15px;
    }

    .board-main {
        padding: 25px 28px 30px;
    }

    .board-lines {
        gap: 15px;
    }

    .value {
        font-size: 0.85rem;
    }

    .board-line:first-child .value {
        font-size: 0.95rem;
    }

    .board-line:nth-child(2) .value {
        font-size: 0.7rem;
    }

    .board-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .grid-item .value {
        font-size: 1.1rem;
    }

    .screw {
        width: 14px;
        height: 14px;
    }

    .screw-1 {
        left: 25px;
    }

    .screw-3 {
        right: 25px;
    }

    .clapper-instruction {
        font-size: 0.8rem;
        padding: 0.8rem 1.2rem;
    }

    .project-number {
        font-size: 3rem;
    }

    .skill-detailed-grid,
    .skills-preview-grid {
        grid-template-columns: 1fr;
    }
}