/* --- Global Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0e27;
    --secondary-bg: #151933;
    --accent-blue: #00d9ff;
    --accent-green: #00ff88;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --card-bg: #1a1f3a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--primary-bg) 0%, #0f1420 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

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

/* NEW: Style for logo links to prevent hover effects */
a.logo-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.logo-link:hover,
a.logo-link:active,
a.logo-link:visited {
    text-decoration: none;
    color: inherit;
    /* The inner .logo handles the gradient, so no color shift occurs */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Ensure the gradient shows even inside the anchor tag */
    display: inline-block; 
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* --- Typography & Layout Components --- */
section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

h4 {
    font-size: 1.2rem;
    font-weight: 600;
}

.subheadline {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.highlight {
    color: var(--accent-green);
    font-weight: 700;
}

.supporting-line {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- Buttons (CTAs) --- */
.cta-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: var(--primary-bg);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
    border: none;
    cursor: pointer;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.5);
}

.cta-secondary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    margin-left: 1rem;
}

.cta-secondary:hover {
    background: var(--accent-blue);
    color: var(--primary-bg);
}

/* Reusable CTA Box container */
.cta-box {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--secondary-bg);
    border-radius: 20px;
}


/* --- Hero Section --- */
.hero {
    min-height: 90vh; /* Slightly reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

/* --- Pillars & Cards --- */
.problem-solution {
    background: var(--secondary-bg);
    border-radius: 20px;
    padding: 4rem 3rem;
    margin-bottom: 4rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.pillar-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-green));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.pillar-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
}

.pillar-card:hover::before {
    transform: scaleX(1);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.pillar-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.pillar-link:hover {
    transform: translateX(5px);
}

/* --- Services Snapshot --- */
.services-snapshot {
    margin: 6rem 0;
}

.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--accent-blue);
}

.impact-stat {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    color: var(--accent-green);
    font-weight: 600;
}

.feature-list {
    font-size: 1.1rem;
    line-height: 2;
    margin-left: 1.5rem;
}

/* --- Social Proof --- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    font-style: italic;
}

.testimonial-author {
    margin-top: 1.5rem;
    font-style: normal;
    color: var(--accent-blue);
    font-weight: 600;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.badge {
    text-align: center;
    padding: 1.5rem;
}

.badge-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* --- Diagrams & Timelines --- */
.integration-diagram {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    text-align: center;
}

.flow-step {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 0.5rem;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    border: 1px solid var(--accent-blue);
}

.case-study {
    background: var(--secondary-bg);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
}

.timeline-item {
    padding: 1.5rem 0;
    border-left: 3px solid var(--accent-blue);
    padding-left: 2rem;
    margin-left: 1rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 1.5rem;
    width: 13px;
    height: 13px;
    background: var(--accent-green);
    border-radius: 50%;
}

.timeline-time {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* --- Contact Section & Form --- */
.contact-section {
    padding-top: 8rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info h3 {
    margin-top: 2rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.1);
}

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

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

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: var(--secondary-bg);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- Footer --- */
footer {
    background: var(--secondary-bg);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.copyright {
    color: var(--text-secondary);
}

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

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

/* --- Back to Top Button --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: var(--primary-bg);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
}

#back-to-top.show-back-to-top {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.5);
}


/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .cta-secondary {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    #back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* --- Success Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.85); /* Koyu yarı saydam arka plan */
    backdrop-filter: blur(8px); /* Modern blur efekti */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000; /* Her şeyin üstünde */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--accent-blue);
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}