/* ===== ULTRAKILL TASARIM SİSTEMİ ===== */
:root {
    /* Renk Paleti - ULTRAKILL Estetiği */
    --color-black: #050505;
    --color-black-dark: #020202;
    --color-black-light: #0a0a0a;
    --color-red: #ff1b1b;
    --color-red-dark: #d40000;
    --color-red-light: #ff3333;
    --color-red-glow: rgba(255, 27, 27, 0.4);
    --color-white: #ffffff;
    --color-white-off: #f0f0f0;
    --color-gray: #1a1a1a;
    --color-gray-light: #2a2a2a;
    
    /* Tipografi */
    --font-heading: 'Orbitron', monospace;
    --font-body: 'Roboto Mono', monospace;
    
    /* Font Boyutları */
    --fs-xs: 0.75rem;    /* 12px */
    --fs-sm: 0.875rem;   /* 14px */
    --fs-base: 1rem;     /* 16px */
    --fs-lg: 1.125rem;   /* 18px */
    --fs-xl: 1.25rem;    /* 20px */
    --fs-2xl: 1.5rem;    /* 24px */
    --fs-3xl: 2rem;      /* 32px */
    --fs-4xl: 2.5rem;    /* 40px */
    --fs-5xl: 3.5rem;    /* 56px */
    --fs-hero: clamp(2.5rem, 5vw, 4rem);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border & Shadows */
    --border-radius: 0;
    --border-width: 2px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.9);
    --shadow-glow: 0 0 20px var(--color-red-glow);
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 1.5rem;
    
    /* Z-index */
    --z-overlay: 1000;
    --z-header: 100;
    --z-default: 1;
    --z-below: -1;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-white-off);
    background-color: var(--color-black);
    overflow-x: hidden;
    position: relative;
}

/* Scanlines Overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: var(--z-overlay);
    opacity: 0.3;
    mix-blend-mode: overlay;
}

/* Noise Overlay */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: var(--z-overlay);
}

/* Boot Overlay */
#boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.boot-text {
    font-family: var(--font-heading);
    font-size: var(--fs-2xl);
    color: var(--color-red);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.boot-underscore {
    animation: blink 1s infinite;
}

.boot-progress {
    width: min(300px, 80%);
    height: 4px;
    background-color: var(--color-gray);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.boot-bar {
    width: 0%;
    height: 100%;
    background-color: var(--color-red);
    animation: bootProgress 0.9s ease-out forwards;
}

.boot-status {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--color-white-off);
    opacity: 0.7;
}

@keyframes bootProgress {
    to { width: 100%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Sections */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    color: var(--color-white);
    margin-bottom: var(--space-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.section-title-text {
    position: relative;
    z-index: 2;
    background-color: var(--color-black);
    padding-right: var(--space-lg);
}

.section-title-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--color-red), transparent);
}

/* Panels */
.panel {
    background-color: var(--color-black-light);
    border: var(--border-width) solid var(--color-gray);
    position: relative;
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

.panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid transparent;
    background: linear-gradient(45deg, 
        transparent 40%, 
        var(--color-red) 50%, 
        transparent 60%
    ) no-repeat;
    background-size: 200% 200%;
    background-position: 100% 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease, background-position 0.5s ease;
}

.panel:hover::before {
    opacity: 1;
    background-position: 0% 0%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--fs-base);
    text-transform: uppercase;
    text-decoration: none;
    border: var(--border-width) solid;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    color: var(--color-white);
}

.btn-primary {
    border-color: var(--color-red);
    color: var(--color-red);
    background-color: rgba(255, 27, 27, 0.1);
}

.btn-primary:hover {
    background-color: var(--color-red);
    color: var(--color-black);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    border-color: var(--color-white-off);
    color: var(--color-white-off);
}

.btn-secondary:hover {
    background-color: var(--color-white-off);
    color: var(--color-black);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-gray);
}

.btn-outline:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

.btn-small {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-sm);
}

/* Tags */
.tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--color-gray);
    color: var(--color-white-off);
    font-size: var(--fs-xs);
    font-family: var(--font-body);
    border: 1px solid var(--color-gray-light);
    margin-right: var(--space-xs);
    margin-bottom: var(--space-xs);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-red);
    z-index: var(--z-header);
    padding: var(--space-md) 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    font-weight: 900;
}

.logo-badge {
    font-size: var(--fs-xs);
    color: var(--color-red);
    background-color: rgba(255, 27, 27, 0.1);
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--color-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--color-white-off);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    text-transform: uppercase;
    position: relative;
    padding: var(--space-sm) 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-red);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-red);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('assets/GABRIEL_GORSEL.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(5, 5, 5, 0.9) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(212, 0, 0, 0.2) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: var(--fs-hero);
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-1 5s infinite;
    color: var(--color-red);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 7s infinite;
    color: var(--color-white-off);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, 1px); }
    30% { transform: translate(1px, -1px); }
    50% { transform: translate(-1px, 2px); }
    70% { transform: translate(2px, -2px); }
    90% { transform: translate(-1px, 1px); }
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    color: var(--color-white-off);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 3px solid var(--color-red);
    border-bottom: 3px solid var(--color-red);
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-2xl);
}

.about-card {
    height: 100%;
}

.about-card-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    color: var(--color-red);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-card-text {
    color: var(--color-white-off);
    margin-bottom: var(--space-lg);
}

.about-card-decoration {
    width: 60px;
    height: 2px;
    background-color: var(--color-red);
    margin-top: var(--space-xl);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.focus-item {
    text-align: center;
}

.focus-icon {
    font-size: var(--fs-2xl);
    display: block;
    margin-bottom: var(--space-sm);
}

.focus-title {
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    color: var(--color-white);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
}

.focus-desc {
    font-size: var(--fs-sm);
    color: var(--color-white-off);
    opacity: 0.8;
}

/* ===== PROJECTS SECTION ===== */
.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    background-color: transparent;
    border: 2px solid var(--color-gray);
    color: var(--color-white-off);
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--color-red);
    color: var(--color-red);
    background-color: rgba(255, 27, 27, 0.1);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
}

.project-card-title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.project-card-badge {
    font-size: var(--fs-xs);
    padding: var(--space-xs) var(--space-sm);
    background-color: var(--color-gray);
    color: var(--color-white-off);
    border: 1px solid var(--color-gray-light);
}

.project-card-desc {
    color: var(--color-white-off);
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.project-card-tags {
    margin-bottom: var(--space-lg);
}

.project-card-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: auto;
}

/* ===== SCHEDULE SECTION ===== */
.schedule-card {
    max-width: 800px;
    margin: 0 auto;
}

.schedule-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.schedule-text {
    flex: 1;
    min-width: 300px;
}

.schedule-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xl);
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.schedule-desc {
    font-size: var(--fs-lg);
    color: var(--color-white-off);
    margin-bottom: var(--space-md);
}

.highlight {
    color: var(--color-red);
    font-weight: bold;
}

.schedule-note {
    font-size: var(--fs-sm);
    color: var(--color-white-off);
    opacity: 0.7;
    font-style: italic;
}

.schedule-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.live-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background-color: rgba(255, 27, 27, 0.1);
    border: 2px solid var(--color-red);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.live-text {
    font-family: var(--font-heading);
    font-size: var(--fs-base);
    color: var(--color-red);
    text-transform: uppercase;
    font-weight: bold;
}

.schedule-status {
    text-align: center;
}

.status-text {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--color-white-off);
    opacity: 0.7;
}

.schedule-decoration {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--space-xl);
}

.decoration-line {
    width: 40px;
    height: 2px;
    background-color: var(--color-red);
}

/* ===== SOCIAL SECTION ===== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--color-white-off);
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-red);
}

.social-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-lg);
    fill: var(--color-white-off);
    transition: fill 0.3s ease;
}

.social-card:hover .social-icon {
    fill: var(--color-red);
}

.social-title {
    font-family: var(--font-heading);
    font-size: var(--fs-lg);
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
}

.social-desc {
    font-size: var(--fs-sm);
    color: var(--color-white-off);
    opacity: 0.7;
}

/* ===== FOOTER ===== */
.footer {
    padding: var(--space-xl) 0;
    background-color: var(--color-black-dark);
    border-top: 1px solid var(--color-gray);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-text {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: var(--color-white-off);
    opacity: 0.7;
}

.footer-separator {
    margin: 0 var(--space-sm);
    opacity: 0.3;
}

.footer-credits {
    color: var(--color-red);
    font-weight: bold;
}

.back-to-top {
    width: 48px;
    height: 48px;
    background-color: var(--color-black-light);
    border: 2px solid var(--color-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: var(--color-white-off);
    transition: fill 0.3s ease;
}

.back-to-top:hover {
    border-color: var(--color-red);
    background-color: rgba(255, 27, 27, 0.1);
}

.back-to-top:hover svg {
    fill: var(--color-red);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    :root {
        --fs-5xl: 3rem;
        --fs-4xl: 2rem;
        --fs-3xl: 1.75rem;
    }
    
    .hero {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-black);
        flex-direction: column;
        padding: var(--space-lg);
        border-top: 1px solid var(--color-red);
        border-bottom: 1px solid var(--color-red);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: var(--fs-2xl);
    }
    
    .schedule-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --fs-5xl: 2.5rem;
        --fs-4xl: 1.75rem;
    }
    
    .project-grid,
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .focus-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: var(--fs-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--fs-base);
    }
}

/* ===== PREFERS-REDUCED-MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    #boot-overlay {
        display: none !important;
    }
    
    .glitch::before,
    .glitch::after {
        display: none;
    }
    
    .live-dot,
    .logo-badge {
        animation: none;
    }
}

/* ===== UTILITY CLASSES ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}