/* =========================================================================
   Cern Ar-Ge | Premium Modern Corporate Theme
   ========================================================================= */

:root {
    /* Color Palette */
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.85);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --accent-1: #0ea5e9; /* Sky blue */
    --accent-2: #8b5cf6; /* Violet */
    --accent-3: #10b981; /* Emerald */
    --accent-4: #f43f5e; /* Rose */
    
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.2);
    --glass-bg: rgba(255, 255, 255, 0.7);
    
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Reset & Typography
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }

.text-muted { color: var(--text-muted); }
.text-accent-1 { color: var(--accent-1); }

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-1 { background: linear-gradient(135deg, #0ea5e9, #3b82f6); }
.gradient-2 { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
.gradient-3 { background: linear-gradient(135deg, #10b981, #059669); }
.gradient-4 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.gradient-5 { background: linear-gradient(135deg, #f43f5e, #e11d48); }

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    background: var(--accent-1);
}

.orb-2 {
    bottom: 20%;
    right: -10%;
    background: var(--accent-2);
    animation-delay: -5s;
}

.orb-3 {
    bottom: -20%;
    left: 30%;
    background: var(--accent-3);
    width: 400px;
    height: 400px;
    opacity: 0.1;
    animation-duration: 30s;
}

.noise-overlay {
    position: absolute;
    inset: 0;
    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)" opacity="0.05"/%3E%3C/svg%3E');
    opacity: 0.2;
    mix-blend-mode: multiply;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 10%) scale(1.1); }
    100% { transform: translate(-5%, -5%) scale(0.9); }
}

/* Base Card */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-slow);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 999px;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
    filter: brightness(1.1);
}

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

.btn-outline:hover {
    background: rgba(15,23,42,0.05);
    border-color: var(--text-secondary);
}

.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: rgba(255,255,255,0.9);
    border-color: var(--border-hover);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: var(--transition-fast);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--bg-dark);
    border-radius: 4px;
}

.logo-icon.small {
    width: 24px;
    height: 24px;
}
.logo-icon.small::after {
    inset: 3px;
    border-radius: 3px;
}

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

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

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

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-1);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sections General */
.section {
    padding: 7rem 0;
    position: relative;
}

.bg-alt {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--accent-1);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

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

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

/* Process Section */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4rem;
    position: relative;
}

.process-card {
    text-align: center;
    flex: 1;
    padding: 2rem;
    border-radius: 24px;
    background: transparent;
    transition: var(--transition-fast);
    position: relative;
    z-index: 2;
}

.hover-glow:hover {
    background: rgba(15, 23, 42, 0.03);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-1);
    margin: 0 auto 1.5rem auto;
    transition: var(--transition-fast);
}

.process-card:hover .icon-box {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border-color: transparent;
    transform: scale(1.1);
}

.process-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.process-arrow {
    color: var(--border-hover);
    font-size: 1.5rem;
}

.integration-banner {
    margin-top: 5rem;
    padding: 2rem;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

/* Make 3 cards on first row, 2 cards on second row */
.services-grid .card:nth-child(1),
.services-grid .card:nth-child(2),
.services-grid .card:nth-child(3) {
    grid-column: span 2;
}

.services-grid .card:nth-child(4),
.services-grid .card:nth-child(5) {
    grid-column: span 3;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.services-grid h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.services-grid p {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: var(--text-muted);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--accent-1);
    font-size: 0.9rem;
    position: absolute;
    bottom: 2.5rem;
}

.card-link i {
    transition: transform 0.3s ease;
}

.card:hover .card-link i {
    transform: translateX(4px);
}

/* Partners (Kimlerle Çalışıyoruz) */
.partners-section {
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
    color: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.partner-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.partner-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1.5rem;
}

.partner-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}

.project-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-1), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.project-box:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.project-box:hover::before {
    opacity: 1;
}

.project-box h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.project-box p {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.outcome {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.outcome strong {
    color: var(--accent-3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Why Us Split layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.split-left {
    position: sticky;
    top: 120px;
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition-fast);
}

.accordion-item.active {
    border-color: var(--accent-1);
    background: rgba(14, 165, 233, 0.05);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header i {
    transition: transform 0.3s ease;
    color: var(--accent-1);
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-content p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-secondary);
}

/* Insights */
/* Reports Section */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.report-card {
    padding: 2.25rem 1.75rem !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
}

.report-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.report-category {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: inherit;
}

.report-bg-1 { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.report-color-1 { color: #3b82f6; }

.report-bg-2 { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.report-color-2 { color: #0ea5e9; }

.report-bg-3 { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.report-color-3 { color: #10b981; }

.report-bg-4 { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.report-color-4 { color: #6366f1; }

.report-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.4;
    color: var(--text-primary);
}

.report-date {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 1024px) {
    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

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

.collab-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

input, textarea, select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent-1);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.divider-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 5rem;
    background: var(--bg-darker);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-links-group {
    display: flex;
    gap: 4rem;
}

.link-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.link-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.link-col a:hover {
    color: var(--accent-1);
    padding-left: 4px;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.03);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.social-links a:hover {
    background: var(--accent-1);
    color: white;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .services-grid, .projects-grid, .split-layout, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid .card:nth-child(n) {
        grid-column: span 1;
    }
    
    .process-flow {
        flex-direction: column;
        gap: 2rem;
    }
    .process-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-container .btn {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .input-row {
        grid-template-columns: 1fr;
    }
    .footer-container {
        flex-direction: column;
        gap: 3rem;
    }
    .footer-links-group {
        flex-direction: column;
        gap: 2rem;
    }
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .form-actions .divider-text {
        text-align: center;
    }
}
