/* ==========================================================
   FÖRBIR.TR - MODERN HORIZONTAL LAYOUT 2025
   Top Navigation + Bento Grid System
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
    font-family: 'TungstenBold';
    src: url('../fonts/Tungsten-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TungstenSemiBold';
    src: url('../fonts/Tungsten-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* SELECTION STYLE */
::selection {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd700 100%);
    color: #000;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* CSS VARIABLES - MODERN SYSTEM */
:root {
    /* Förbır Brand Colors */
    --forbir-primary: #ff6b35;
    --forbir-secondary: #f7931e;
    --forbir-accent: #ffd700;
    --forbir-dark: #ff4500;
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, #ff6b35 0%, #f7931e 35%, #ffd700 100%);
    --gradient-hover: linear-gradient(135deg, #ff8555 0%, #ffa940 35%, #ffe44d 100%);
    
    /* Backgrounds */
    --bg-void: #000000;
    --bg-deep: #0d0d0d;
    --bg-dark: #121212;
    --bg-card: rgba(25, 25, 30, 0.85);
    --bg-glass: rgba(30, 30, 35, 0.65);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.4);
    
    /* Borders & Effects */
    --border-subtle: rgba(255, 107, 53, 0.1);
    --border-normal: rgba(255, 107, 53, 0.25);
    --border-bright: rgba(255, 107, 53, 0.5);
    --glow-soft: 0 0 20px rgba(255, 107, 53, 0.15);
    --glow-medium: 0 0 30px rgba(247, 147, 30, 0.3);
    --glow-strong: 0 0 40px rgba(255, 215, 0, 0.4);
    
    /* Fonts */
    --font-display: 'TungstenBold', 'Space Grotesk', sans-serif;
    --font-heading: 'TungstenSemiBold', 'Space Grotesk', sans-serif;
    --font-body: 'Inter', 'Space Grotesk', sans-serif;
    
    /* Layout */
    --nav-height: 80px;
    --border-radius-sm: 10px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    /* Animation */
    --speed-fast: 0.15s;
    --speed-normal: 0.3s;
    --speed-slow: 0.5s;
    
    /* Z-index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 500;
}

/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-void);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(247, 147, 30, 0.06) 0%, transparent 50%),
        url('../images/background.jpg');
    background-size: cover, cover, cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-blend-mode: lighten, lighten, normal;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.75) 0%, 
        rgba(13, 13, 13, 0.85) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    backdrop-filter: blur(8px) saturate(1.2);
    z-index: 0;
    pointer-events: none;
}

/* Animated background orb */
body::after {
    content: "";
    position: fixed;
    width: 700px;
    height: 700px;
    top: -150px;
    right: -150px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 25s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes floatOrb {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
        opacity: 0.5;
    }
    50% { 
        transform: translate(-150px, 150px) scale(1.2); 
        opacity: 0.8;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--speed-normal) ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-hover);
    box-shadow: var(--glow-medium);
}

/* ==========================================================
   TOP NAVIGATION BAR - HORIZONTAL LAYOUT
   ========================================================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: linear-gradient(180deg, 
        rgba(18, 18, 22, 0.95) 0%,
        rgba(13, 13, 15, 0.92) 100%
    );
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border-normal);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    z-index: var(--z-sticky);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
}

/* Main Content - Top Padding for Fixed Nav */
.main-content {
    padding-top: var(--nav-height);
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.top-nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 300px;
    height: 1px;
    background: var(--gradient-main);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

/* Brand Logo - Top Left */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.nav-brand-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.15) 0%,
        rgba(247, 147, 30, 0.1) 100%
    );
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--speed-normal) ease;
}

.nav-brand:hover .nav-brand-logo {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--glow-soft);
}

.nav-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1) saturate(1.2);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-brand-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Navigation Links - Center */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--speed-normal) ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity var(--speed-normal) ease;
}

.nav-link > span {
    position: relative;
    z-index: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 107, 53, 0.08);
    border-color: var(--border-subtle);
}

.nav-link:hover::before {
    opacity: 0.05;
}

.nav-link.highlight {
    background: linear-gradient(135deg, 
        rgba(255, 107, 53, 0.12) 0%,
        rgba(247, 147, 30, 0.08) 100%
    );
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    font-weight: 700;
}

/* Right Side - Social & User */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-socials {
    display: flex;
    gap: 10px;
}

.nav-social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--speed-normal) ease;
}

.nav-social-link:hover {
    background: rgba(255, 107, 53, 0.12);
    border-color: var(--border-normal);
    transform: translateY(-2px);
    box-shadow: var(--glow-soft);
}

.nav-social-link img {
    width: 18px;
    height: 18px;
    filter: brightness(1.1);
}

.nav-user-btn {
    padding: 10px 24px;
    border-radius: var(--border-radius-sm);
    background: var(--gradient-main);
    color: #000;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--speed-normal) ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.nav-user-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 30px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 3px;
    transition: all var(--speed-normal) ease;
}

/* ==========================================================
   MAIN LAYOUT - FULL WIDTH
   ========================================================== */
.main-wrapper {
    margin-top: var(--nav-height);
    position: relative;
    z-index: var(--z-base);
}

/* ==========================================================
   HERO SECTION - FULL WIDTH
   ========================================================== */
.hero-section-modern {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-section-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 20%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(247, 147, 30, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-muted);
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 16px 36px;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all var(--speed-normal) ease;
    cursor: pointer;
}

.hero-btn-primary {
    background: var(--gradient-main);
    color: #000;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.hero-btn-primary:hover {
    background: var(--gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255, 107, 53, 0.5);
}

.hero-btn-secondary {
    background: rgba(255, 107, 53, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-normal);
    color: var(--text-primary);
}

.hero-btn-secondary:hover {
    background: rgba(255, 107, 53, 0.12);
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-large {
    max-width: 500px;
    width: 100%;
    filter: 
        brightness(1.15) saturate(1.1)
        drop-shadow(0 0 50px rgba(255, 107, 53, 0.4))
        drop-shadow(0 10px 30px rgba(0, 0, 0, 0.7));
    animation: heroFloat 8s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    50% { 
        transform: translateY(-20px) rotate(2deg); 
    }
}

/* ==========================================================
   BENTO GRID - MODERN ASYMMETRIC LAYOUT
   ========================================================== */
.bento-section {
    padding: 6rem 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 250px;
    gap: 24px;
}

.bento-item {
    background: linear-gradient(135deg, 
        rgba(25, 25, 30, 0.8) 0%,
        rgba(18, 18, 22, 0.85) 100%
    );
    backdrop-filter: blur(15px) saturate(1.3);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    transition: all var(--speed-normal) ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.bento-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity var(--speed-normal) ease;
}

.bento-item > * {
    position: relative;
    z-index: 1;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: var(--border-normal);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.2);
}

.bento-item:hover::before {
    opacity: 0.05;
}

/* Grid Item Sizes */
.bento-large {
    grid-column: span 8;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 6;
    grid-row: span 2;
}

.bento-small {
    grid-column: span 4;
}

.bento-tall {
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 6;
}

/* Bento Item Content */
.bento-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    filter: brightness(1.1) saturate(1.2);
}

.bento-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.bento-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.bento-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 107, 53, 0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--forbir-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.modern-footer {
    background: linear-gradient(180deg,
        rgba(13, 13, 13, 0.9) 0%,
        rgba(0, 0, 0, 0.95) 100%
    );
    border-top: 1px solid var(--border-normal);
    padding: 3rem 3rem 2rem;
    position: relative;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--gradient-main);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand-title {
    font-family: var(--font-display);
    font-size: 2rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-desc {
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--speed-normal) ease;
}

.footer-link:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================
   RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-description {
        max-width: 600px;
    }
    
    .bento-large {
        grid-column: span 12;
    }
    
    .bento-medium {
        grid-column: span 6;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .top-nav {
        padding: 0 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-socials {
        display: none;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    
    .bento-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 200px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-brand-text {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .bento-section {
        padding: 3rem 1.5rem;
    }
}

/* ==========================================================
   SCROLL TO TOP BUTTON
   ========================================================== */
.scroll-top {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 56px;
    height: 56px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all var(--speed-normal) ease;
    z-index: var(--z-dropdown);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    color: #000;
    font-size: 1.4rem;
    font-weight: 700;
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: all;
}

.scroll-top:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.6);
}
