/* 
   Zeytinburnu İşitme - "Melodic Flow" Design
   Concept: Modern, Vivid Pastels, Musical Waves, Clean & Airy
   Palette: Mint Teal, Soft Coral, Warm White, Deep Charcoal
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;1,9..144,400&family=Outfit:wght@300;400;500;700&display=swap');

:root {
    /* Vivid Pastels */
    --primary: #14b8a6;
    /* Teal/Mint - Fresh sound */
    --primary-light: #ccfbf1;
    --secondary: #fb7185;
    /* Soft Coral/Rose - Warmth */
    --secondary-light: #ffe4e6;

    --bg-body: #fafaf9;
    /* Stone 50 - Warm White */
    --bg-surface: #ffffff;

    --text-main: #1c1917;
    /* Stone 900 */
    --text-muted: #57534e;
    /* Stone 600 */

    --border: #e7e5e4;

    --font-heading: 'Fraunces', serif;
    --font-body: 'Outfit', sans-serif;

    --shadow-soft: 0 10px 40px -10px rgba(20, 184, 166, 0.15);
    --shadow-hover: 0 20px 40px -5px rgba(251, 113, 133, 0.2);

    --radius-lg: 24px;
    --radius-md: 16px;
}

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

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(250, 250, 249, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
    font-style: italic;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    background: var(--bg-surface);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

/* Artistic Buttons */
.btn-neon {
    /* Keeping class name for compatibility with HTML but restyling */
    background: var(--text-main);
    color: var(--bg-surface);
    border: none;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-neon:hover {
    background: var(--secondary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-hover);
    color: white;
}

/* Background Canvas */
#waveCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-light) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--secondary-light) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    /* Ensure content is above canvas */
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Wave Decoration */
.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 150px;
}

.wave-divider .shape-fill {
    fill: var(--bg-surface);
}

/* Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 6rem 0;
}

.card {
    background: var(--bg-surface);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: var(--shadow-soft);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: var(--bg-body);
    border-radius: 50%;
    color: var(--primary);
}

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

.card p {
    color: var(--text-muted);
}

/* Footer */
footer {
    background: white;
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* Reuse Glitch Class as "Flow" for Text */
.glitch {
    /* Renaming behavior but keeping class */
    position: relative;
    display: inline-block;
}

/* Frequency Bars as "Sound Waves" */
.frequency-bars {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
    height: 60px;
    margin-bottom: 2rem;
}

.bar {
    width: 8px;
    background: var(--secondary);
    border-radius: 10px;
    animation: bounce 1.2s infinite ease-in-out;
}

.bar:nth-child(even) {
    background: var(--primary);
    animation-duration: 1.5s;
}

@keyframes bounce {

    0%,
    100% {
        height: 20%;
        opacity: 0.5;
    }

    50% {
        height: 100%;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-menu {
        display: none;
    }
}