/* ==========================================================================
   RuhAN Holding - Corporate Minimalist CSS (Endüstri 5.0)
   ========================================================================== */

   :root {
    --bg-color: #000000;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-tertiary: #52525b;
    
    --accent: #ffffff;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* --------------------------------------------------------------------------
   Ambient Background Glares (Subtle)
   -------------------------------------------------------------------------- */
.ambient-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 400px;
    background: radial-gradient(ellipse at bottom, rgba(79, 70, 229, 0.15), transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Typography & Utilities
   -------------------------------------------------------------------------- */
.text-gradient {
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 100;
    background: rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-color);
}
.btn-primary:hover {
    background-color: #e4e4e7;
    transform: translateY(-1px);
}

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

.btn-primary-small {
    background-color: var(--text-primary);
    color: var(--bg-color) !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.85rem !important;
}
.btn-primary-small:hover {
    background-color: #e4e4e7;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    max-width: 900px;
    margin: 11rem auto 6rem;
    padding: 0 2rem;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* --------------------------------------------------------------------------
   Bento Grid Section
   -------------------------------------------------------------------------- */
.bento-section {
    max-width: 1200px;
    margin: 0 auto 8rem;
    padding: 0 2rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 1.5rem;
}

.bento-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.bento-card:hover {
    background-color: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-wide {
    grid-column: span 3;
    grid-row: span 1;
    min-height: 200px;
    justify-content: center;
}

.card-icon {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.bento-card h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

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

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

.link-arrow {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.6;
    transition: var(--transition-smooth);
}
.link-arrow:hover {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 4rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes slideUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Animations handled by JS */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 968px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-large, .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    .nav-links {
        display: none;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
