/* 
   Sultangazi İşitme - "Sonic Wave" Design
   Concept: High-Tech, Frequency, Dark Mode, Neon
   Palette: Deep Void, Neon Cyan, Electric Purple, White
*/

@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,300;0,500;0,700;1,500&family=Space+Grotesk:wght@300;400;600;700&display=swap');

:root {
    --bg-dark: #120306;
    /* Deepest Black-Burgundy */
    --bg-panel: #1f0810;
    /* Dark Plum/Burgundy */
    --primary: #db2777;
    /* Corporate Magenta (Pink 600) */
    --primary-glow: rgba(219, 39, 119, 0.35);
    --secondary: #831843;
    /* Deep Burgundy (Pink 900) */
    --text-main: #fdf2f8;
    /* Pale Pinkish White */
    --text-muted: #9ca3af;
    /* Neutral Slate */
    --border: #38101d;
    /* Dark Red Border */

    --font-display: 'Exo 2', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

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

h1,
h2,
h3,
h4,
.nav-link {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(18, 3, 6, 0.85);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(219, 39, 119, 0.1);
}

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

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

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

.nav-menu {
    display: flex;
    gap: 2rem;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: 0.3s var(--ease-elastic);
}

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

/* Buttons */
.btn-neon {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.8rem 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.btn-neon:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: 0.5s;
}

.btn-neon:hover::before {
    left: 100%;
}

/* Hero Section with Frequency Viz */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero span {
    color: var(--primary);
    -webkit-text-fill-color: initial;
}

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

/* Frequency Bars Animation */
.frequency-bars {
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: flex-end;
    height: 60px;
    margin-bottom: 2rem;
}

.bar {
    width: 6px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: equalize 1s infinite alternate ease-in-out;
    border-radius: 4px;
}

.bar:nth-child(odd) {
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

@keyframes equalize {
    0% {
        height: 10%;
    }

    100% {
        height: 100%;
    }
}

/* Glitch Effect Text */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
    }

    5% {
        clip: rect(12px, 9999px, 59px, 0);
    }

    10% {
        clip: rect(48px, 9999px, 29px, 0);
    }

    15% {
        clip: rect(42px, 9999px, 73px, 0);
    }

    20% {
        clip: rect(63px, 9999px, 27px, 0);
    }

    25% {
        clip: rect(34px, 9999px, 55px, 0);
    }

    30% {
        clip: rect(86px, 9999px, 73px, 0);
    }

    35% {
        clip: rect(20px, 9999px, 20px, 0);
    }

    40% {
        clip: rect(26px, 9999px, 60px, 0);
    }

    45% {
        clip: rect(25px, 9999px, 66px, 0);
    }

    50% {
        clip: rect(57px, 9999px, 98px, 0);
    }

    55% {
        clip: rect(5px, 9999px, 46px, 0);
    }

    60% {
        clip: rect(82px, 9999px, 31px, 0);
    }

    65% {
        clip: rect(54px, 9999px, 27px, 0);
    }

    70% {
        clip: rect(28px, 9999px, 99px, 0);
    }

    75% {
        clip: rect(45px, 9999px, 69px, 0);
    }

    80% {
        clip: rect(23px, 9999px, 85px, 0);
    }

    85% {
        clip: rect(54px, 9999px, 84px, 0);
    }

    90% {
        clip: rect(45px, 9999px, 47px, 0);
    }

    95% {
        clip: rect(37px, 9999px, 20px, 0);
    }

    100% {
        clip: rect(4px, 9999px, 91px, 0);
    }
}

/* Grid Sections */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 2rem;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.1);
}

.card h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

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

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    background: #020203;
    color: var(--text-muted);
    text-align: center;
}

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

    .navbar {
        padding: 1rem 0;
    }

    .nav-menu {
        display: none;
    }
}