/* --- variables & reset --- */
:root {
    --bg-dark: #0a0f1c;
    /* Deep Space Navy */
    --bg-darker: #060913;
    --text-primary: #ffffff;
    --text-secondary: #a0a8b9;
    --accent-cyan: #00f0ff;
    --accent-blue: #0070f3;

    --glass-bg: rgba(10, 15, 28, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4,
.badge {
    font-family: var(--font-heading);
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* --- Components --- */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: linear-gradient(90deg, var(--accent-blue), #0050d0);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px 0 rgba(0, 112, 243, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 243, 0.5);
    background: linear-gradient(90deg, #0050d0, var(--accent-blue));
}

.btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--accent-cyan);
    border-radius: 50px;
    font-size: 0.875rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
    margin: 0 auto;
    border-radius: 3px;
}

/* --- Background Effects (Glowing Orbs) --- */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 112, 243, 0.3);
    /* Blue */
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(0, 240, 255, 0.2);
    /* Cyan */
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
    animation-duration: 25s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(138, 43, 226, 0.15);
    /* Purple accent */
    top: 40%;
    left: 60%;
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.1);
    }

    100% {
        transform: translate(-30px, -50px) scale(0.9);
    }
}

/* --- Navbar --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

nav.scrolled {
    padding: 0;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo img {
    height: 140px;
    width: auto;
    transition: var(--transition-smooth);
}

nav.scrolled .logo img {
    height: 100px;
}

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

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-primary);
    border-radius: 3px;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 140px;
    /* Logo yüksekliği kadar boşluk bırakıldı */
    z-index: 1;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 650px;
}

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

/* --- About Section --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

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

.motto-box {
    padding: 1.5rem;
    border-left: 3px solid var(--accent-cyan);
    background: linear-gradient(90deg, rgba(0, 240, 255, 0.05), transparent);
    border-radius: 0 8px 8px 0;
}

.motto {
    font-style: italic;
    color: var(--text-primary) !important;
    margin-bottom: 0 !important;
    font-size: 1.15rem !important;
}

.aesthetic-card {
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.corner-accents::before,
.corner-accents::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
}

.corner-accents::before {
    top: 20px;
    left: 20px;
    border-top-color: var(--accent-cyan);
    border-left-color: var(--accent-cyan);
}

.corner-accents::after {
    bottom: 20px;
    right: 20px;
    border-bottom-color: var(--accent-blue);
    border-right-color: var(--accent-blue);
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.feature-list span {
    color: var(--accent-cyan);
    font-weight: bold;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 112, 243, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

@media (min-width: 900px) {
    .col-span-2-md {
        grid-column: span 2;
        /* Center the last card if on 2 column layout */
        max-width: 50%;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Footer --- */
footer {
    background: #030408;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 100px;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.email-link {
    color: var(--accent-cyan);
    text-decoration: none;
    font-size: 1.1rem;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 0.9rem;
}

.social-icon:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

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

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .col-span-2-md {
        grid-column: span 1;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        /* Mobil logoya göre ayarlandı */
        flex-direction: column;
        background: rgba(10, 15, 28, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid var(--glass-border);
    }

    .logo img {
        height: 80px;
        /* Mobilde daha makul bir boyut */
    }

    .hero {
        padding-top: 100px;
        /* Mobilde logonun yeni boyutuna göre */
    }

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

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero {
        text-align: center;
    }

    .hero h1 {
        margin-top: 1rem;
    }

    .hero p {
        margin: 0 auto 2rem;
    }
}