@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-core: #050505;
    --bg-surface: #111111;
    --bg-surface-light: #1a1a1a;
    --primary: #FFA500;
    --primary-hover: #ffb733;
    --primary-glow: rgba(255, 165, 0, 0.3);
    --text-main: #ffffff;
    --text-muted: #9aa0a6;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 165, 0, 0.5);
    --font-stack: 'Plus Jakarta Sans', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-core);
    color: var(--text-main);
    font-family: var(--font-stack);
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
.brand-highlight { color: var(--primary); }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* Buttons */
.btn-primary {
    background: var(--primary); color: #000;
    padding: 0.8rem 1.5rem; border-radius: 50px;
    font-weight: 600; font-size: 0.95rem;
    box-shadow: 0 4px 15px var(--primary-glow);
    display: inline-block;
}
.btn-primary:hover {
    background: var(--primary-hover); transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05); color: var(--text-main);
    padding: 0.8rem 1.5rem; border-radius: 50px;
    font-weight: 600; font-size: 0.95rem; border: 1px solid var(--border-color);
    display: inline-block; backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1); border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 4rem; z-index: 1000;
    background: rgba(5, 5, 5, 0.7); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.4s ease;
}
.navbar.nav-hidden {
    transform: translateY(-100%);
}

/* Hero Section */
.hero-container {
    min-height: 100vh; display: flex; justify-content: flex-start; align-items: center;
    position: relative; text-align: left; overflow: visible;
    padding: 0 5vw;
    z-index: 1;
}

.glow-orb {
    position: fixed; /* Changed to fixed so they don't scroll with content but stay behind */
    border-radius: 50%; filter: blur(100px); opacity: 0.25; z-index: -1;
    pointer-events: none;
}
.orb-1 { 
    width: 600px; height: 600px; background: var(--primary); 
    top: -10%; left: -10%; 
    animation: drift-1 12s ease-in-out infinite alternate;
}
.orb-2 { 
    width: 500px; height: 500px; background: rgba(255,165,0,0.4); 
    bottom: 5%; right: -5%; 
    animation: drift-2 15s ease-in-out infinite alternate;
}

/* Ensure sections have backgrounds and higher z-index to cover orbs if needed */
.about-section, .bento-section, .ai-core-section, .more-tech-section {
    position: relative;
    z-index: 2;
    background: transparent;
}

@keyframes drift-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(150px, 100px) scale(1.1); }
}

@keyframes drift-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-150px, -80px) scale(1.2); }
}

.hero-content { width: 100%; max-width: none; z-index: 2; position: relative; }
.main-title {
    margin-bottom: 2.5rem;
    overflow: visible;
}

.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4rem;
}

.hero-left {
    flex: 1;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.service-showcase {
    position: relative;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-showcase:hover {
    transform: rotateY(10deg) rotateX(5deg) scale(1.02);
}

.showcase-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
    animation: rotate-glow 10s linear infinite;
}

@keyframes rotate-glow {
    from { transform: rotate(0deg) translate(50px); }
    to { transform: rotate(360deg) translate(50px); }
}

.showcase-content {
    text-align: center;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.3));
}

.showcase-name {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}

.brand-name {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 2rem;
    color: #fff;
}

.acronym-item {
    display: flex;
    align-items: baseline;
    opacity: 0;
    transform: translateX(-30px);
    animation: staircase-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    padding: 0.2rem 1.5rem;
    margin-bottom: 0.1rem;
    position: relative;
}

.acronym-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 3px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    opacity: 0.6;
}

.brand-highlight {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 165, 0, 0.4);
}

.rest-of-word {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.5em;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: expand-word 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Refined Staircase Offsets */
.item-1 { margin-left: 0; animation-delay: 0.1s; }
.item-1 .rest-of-word { animation-delay: 1.0s; }

.item-2 { margin-left: 3rem; animation-delay: 0.2s; }
.item-2 .rest-of-word { animation-delay: 1.1s; }

.item-3 { margin-left: 6rem; animation-delay: 0.3s; }
.item-3 .rest-of-word { animation-delay: 1.2s; }

.item-4 { margin-left: 9rem; animation-delay: 0.4s; }
.item-4 .rest-of-word { animation-delay: 1.3s; }

.item-5 { margin-left: 12rem; animation-delay: 0.5s; }
.item-5 .rest-of-word { animation-delay: 1.4s; }

@keyframes staircase-in {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes expand-word {
    to { max-width: 800px; opacity: 1; margin-left: 1rem; }
}

.brand-subtitle {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -1px;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    text-align: center;
    will-change: transform, opacity;
}

.brand-subtitle .slide-left,
.brand-subtitle .slide-right {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle::before,
.brand-subtitle::after {
    content: "For Optimize";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
}

.brand-subtitle::before {
    -webkit-text-fill-color: #89f7fe;
    animation: slow-glitch-1 8s infinite;
}

.brand-subtitle::after {
    -webkit-text-fill-color: #66a6ff;
    animation: slow-glitch-2 8s infinite;
}

@keyframes slow-glitch-1 {
    0%, 90%, 100% { opacity: 0; transform: translate(-50%, 0); }
    91% { opacity: 0.4; transform: translate(-52%, 1px); }
    93% { opacity: 0; transform: translate(-50%, 0); }
}

@keyframes slow-glitch-2 {
    0%, 90%, 100% { opacity: 0; transform: translate(-50%, 0); }
    92% { opacity: 0.4; transform: translate(-48%, -1px); }
    94% { opacity: 0; transform: translate(-50%, 0); }
}

.slide-left {
    display: inline-block;
    animation: slide-from-left-screen 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-right {
    display: inline-block;
    animation: slide-from-right-screen 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes drop-from-top {
    0% { transform: translateY(-800px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slide-from-left-screen {
    0% { transform: translateX(-100vw); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slide-from-right-screen {
    0% { transform: translateX(100vw); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; }

/* Section Globals */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 3rem; font-weight: 700; letter-spacing: -1px; margin-bottom: 1rem; }
.section-header p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* About Section - DeeDe Nedir? */
.about-section {
    padding: 10rem 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 165, 0, 0.05), transparent 40%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.section-tagline {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.about-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.about-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-description strong {
    color: var(--text-main);
    font-weight: 600;
}

.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), #ff4d00);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(60px);
    opacity: 0.2;
    animation: morph 10s linear infinite;
}

.stats-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: flex;
    gap: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
}

/* Modern Bento Grid */
.bento-section { padding: 8rem 0; }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 1.5rem;
}

.bento-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    border-color: var(--primary);
    background: rgba(255, 165, 0, 0.02);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.bento-tag {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 165, 0, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.bento-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
}

.bento-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.bento-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Bento Sizing */
.search-box {
    grid-column: span 2;
    grid-row: span 2;
    padding: 3rem;
}

.search-box .bento-icon {
    width: 80px;
    height: 80px;
}

.search-box h3 {
    font-size: 2rem;
}

.search-box p {
    font-size: 1.1rem;
}

.bento-footer {
    margin-top: 2rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 50% 50% 30% 70% / 50% 60% 40% 50%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
    .about-visual { order: -1; }
    .stats-glass { justify-content: center; }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .about-title { font-size: 2.8rem; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .search-box { grid-column: span 1; grid-row: span 1; }
}

/* AI Core Section */
.ai-core-section { padding: 8rem 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); overflow: hidden; background: transparent; }
.ai-core-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ai-core-text h2 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -1px; }
.ai-core-text p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 3rem; }
.stats-row { display: flex; gap: 2.5rem; }
.stat-item h4 { font-size: 2rem; color: var(--text-main); font-weight: 700; margin-bottom: 0.25rem; }
.stat-item p { color: var(--primary); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.ai-core-visual { position: relative; height: 500px; display: flex; justify-content: center; align-items: center; }
.core-img { width: 120px; z-index: 10; position: relative; filter: drop-shadow(0 0 30px rgba(255,165,0,0.5)); animation: float 6s ease-in-out infinite; }
.pulse-ring {
    position: absolute; width: 150px; height: 150px; border-radius: 50%;
    border: 1px solid var(--primary); top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation: pulse-ring 4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
.delay-1 { animation-delay: 1.3s; }
.delay-2 { animation-delay: 2.6s; }

.floating-node {
    position: absolute; background: rgba(20,20,20,0.8); border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
    display: flex; align-items: center; gap: 0.5rem; backdrop-filter: blur(5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5); color: #ddd;
}
.floating-node i { color: var(--primary); }
.fn-1 { top: 10%; left: 20%; animation: float 5s ease-in-out infinite 0.5s; }
.fn-2 { top: 20%; right: 15%; animation: float 7s ease-in-out infinite 1s; }
.fn-3 { bottom: 20%; left: 10%; animation: float 6s ease-in-out infinite 1.5s; }
.fn-4 { bottom: 15%; right: 25%; animation: float 8s ease-in-out infinite 2s; }

/* More Tech Grid */
.more-tech-section { padding: 8rem 2rem; max-width: 1200px; margin: 0 auto; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.tech-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-md); padding: 2.5rem; text-align: center;
    transition: var(--transition);
}
.tech-card:hover { border-color: var(--primary); background: var(--bg-surface-light); transform: translateY(-5px); }
.tech-icon { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 1.5rem; transition: 0.3s; }
.tech-card:hover .tech-icon { color: var(--primary); }
.tech-card h4 { font-size: 1.25rem; margin-bottom: 1rem; }
.tech-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.modern-footer { background: #030303; padding: 6rem 4rem 2rem; border-top: 1px solid var(--border-color); }
.footer-content { display: flex; justify-content: space-between; max-width: 1400px; margin: 0 auto 4rem; flex-wrap: wrap; gap: 4rem; }
.footer-brand h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -1px; }
.footer-brand p { color: var(--text-muted); max-width: 300px; }
.footer-links { display: flex; gap: 5rem; flex-wrap: wrap; }
.link-column h4 { font-size: 1.1rem; margin-bottom: 1.5rem; color: #fff; }
.link-column a { display: block; color: var(--text-muted); margin-bottom: 0.8rem; font-size: 0.95rem; }
.link-column a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-color); color: #555; font-size: 0.9rem; }

/* Animations & Utilities */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes pulse-ring {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.reveal-hidden { opacity: 0; transform: translateY(30px); transition: 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal-hidden.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(250px, auto); }
    .search-box { grid-column: span 2; }
    .ai-core-grid { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .stats-row { justify-content: center; }
}
@media (max-width: 768px) {
    .navbar { padding: 1rem 2rem; }
    .main-title { font-size: 3.5rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .search-box { grid-column: span 1; }
    .footer-content { flex-direction: column; }
}
