/* 
 * HALTANSU STYLESHEET
 * Premium, Modern Dark Mode Design
 */

:root {
    /* Color Palette */
    --bg-dark: #07090F;
    --bg-card: rgba(18, 23, 38, 0.6);
    --border-card: rgba(255, 255, 255, 0.08);

    --text-main: #F8FAFC;
    --text-muted: #94A3B8;

    /* Neons / Accents */
    --accent-cyan: #06B6D4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.4);
    --accent-purple: #8B5CF6;
    --accent-purple-glow: rgba(139, 92, 246, 0.4);

    /* Layout */
    --container-max: 1200px;
    --border-radius: 20px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Courier New', Courier, monospace;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
}

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

img,
i {
    display: inline-block;
}

/* === BACKGROUND EFFECTS === */
.bg-blob {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    z-index: -2;
    opacity: 0.5;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-purple-glow);
}

.blob-2 {
    top: 40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-cyan-glow);
    animation-delay: -5s;
}

.blob-3 {
    bottom: -10%;
    left: 20%;
    width: 700px;
    height: 400px;
    background: rgba(45, 212, 191, 0.2);
    animation-delay: -10s;
}

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

    100% {
        transform: translate(10%, 10%) scale(1.1);
    }
}

/* Noise texture for premium look */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 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)"/%3E%3C/svg%3E');
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* === LAYOUT & UTILS === */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-spacing {
    padding: 8rem 0;
}

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

/* Typography specifics */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === BUTTONS === */
.btn-primary,
.btn-secondary,
.btn-primary-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px var(--accent-purple-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

.btn-primary-outline:hover {
    background: var(--accent-cyan);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-cyan-glow);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(7, 9, 15, 0.85);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-card);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
}

.logo i {
    color: var(--accent-cyan);
    font-size: 2rem;
}

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

.nav-links a:not(.btn-primary-outline) {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 1rem;
}

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

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.lang-toggle {
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    background: var(--accent-cyan);
    color: #fff;
    border-color: var(--accent-cyan);
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    /* offset navbar */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.hero-title span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

/* Visuals Left Side */
.hero-visual {
    position: relative;
    width: 100%;
}

.mock-code {
    padding: 1.5rem;
    font-family: var(--font-code);
    font-size: 0.95rem;
    line-height: 1.6;
    background: #0f172a;
    /* Slightly different dark for code */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.window-controls .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.close {
    background: #ff5f56;
}

.dot.min {
    background: #ffbd2e;
}

.dot.max {
    background: #27c93f;
}

/* Code syntax colors */
.keyword {
    color: #ff7b72;
}

.variable {
    color: #79c0ff;
}

.property {
    color: #d2a8ff;
}

.string {
    color: #a5d6ff;
}

.function {
    color: #d2a8ff;
}

.comment {
    color: #8b949e;
    font-style: italic;
}

.float-card {
    position: absolute;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-family: var(--font-heading);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
}

.float-card i {
    font-size: 1.5rem;
}

.float-1 {
    top: -20px;
    right: -20px;
    border-left: 3px solid var(--accent-cyan);
}

.float-1 i {
    color: var(--accent-cyan);
}

.float-2 {
    bottom: -30px;
    left: -30px;
    border-left: 3px solid #3DDC84;
    /* Android green */
    animation-delay: -3s;
}

.float-2 i {
    color: #3DDC84;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}


/* === SHOWCASE SECTION === */
.showcase-banner {
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.showcase-content {
    flex: 1;
    padding: 4rem;
    position: relative;
    z-index: 2;
}

.showcase-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.showcase-visual {
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1));
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.browser-mockup {
    width: 100%;
    max-width: 450px;
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
}

.browser-header {
    background: #1e293b;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #475569;
}

.browser-header .dot:nth-child(1) {
    background: #ff5f56;
}

.browser-header .dot:nth-child(2) {
    background: #ffbd2e;
}

.browser-header .dot:nth-child(3) {
    background: #27c93f;
}

.url-bar {
    background: #0f172a;
    color: #94a3b8;
    font-family: var(--font-body);
    font-size: 0.75rem;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    margin-left: 1rem;
    flex: 1;
    text-align: center;
    letter-spacing: 0.5px;
}

.browser-body {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
}

.floating-tech-1,
.floating-tech-2 {
    position: absolute;
    padding: 0.5rem 1rem;
    background: rgba(18, 23, 38, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: float 5s ease-in-out infinite;
}

.floating-tech-1 {
    top: 20%;
    left: 10%;
    color: #ef4444;
    /* redis red */
    border-left: 2px solid #ef4444;
}

.floating-tech-2 {
    bottom: 20%;
    right: 10%;
    color: #10b981;
    /* security green */
    border-left: 2px solid #10b981;
    animation-delay: -2.5s;
}

/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.service-card {
    padding: 3rem;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-card);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
}

.service-card .android-icon {
    background: rgba(61, 220, 132, 0.1);
    color: #3DDC84;
}

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

.service-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.service-features i {
    color: var(--accent-purple);
    font-size: 1.25rem;
}


/* === CTA SECTION === */
.cta-container {
    padding-bottom: 4rem;
}

.cta-card {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, rgba(18, 23, 38, 0.8) 0%, rgba(7, 9, 15, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.cta-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.domain-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.domain-text a {
    color: var(--accent-cyan);
    font-weight: 500;
}

.domain-text a:hover {
    text-decoration: underline;
}

/* === FOOTER === */
.footer {
    border-top: 1px solid var(--border-card);
    padding: 4rem 0 2rem 0;
    background: rgba(4, 6, 10, 0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

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

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links a:hover {
    color: #fff;
}

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

/* === ANIMATIONS (Scroll Fade) === */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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


/* === MEDIA QUERIES === */
@media (max-width: 968px) {
    .container {
        padding: 0 1rem;
        overflow-x: hidden;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 4rem;
        max-width: 100%;
    }

    .mock-code {
        overflow-x: auto;
    }

    .showcase-banner {
        flex-direction: column;
    }

    .showcase-content {
        padding: 3rem 2rem;
        text-align: center;
    }

    .showcase-content p {
        margin: 0 auto 2rem auto;
    }

    .showcase-visual {
        width: 100%;
        padding: 2rem;
    }

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

    .float-1 {
        top: -10px;
        right: -10px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .float-2 {
        bottom: -10px;
        left: -10px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 5rem 0;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(7, 9, 15, 0.95);
        backdrop-filter: blur(16px);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-card);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition-smooth);
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

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

    .hero {
        padding-top: 100px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .hero-actions a {
        width: 100%;
        justify-content: center;
    }

    .service-card {
        padding: 2rem;
    }

    .cta-card {
        padding: 3rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-action {
        width: 100%;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}