* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
    list-style: none;
    text-decoration: none;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #020312;
    --text-color: #fff;
    --h1-color: #b0f9ff;
    --main-color: #18e2ff;
    --second-color: gray;
    --other-color: #12141c;
    --green-up: #00e676;
    --red-down: #ff5252;
    --h1-font: 3.1rem;
    --h2-font: 2.1rem;
    --h3-font: 1.5rem;
    --h4-font: 1.3rem;
    --p-font: 1rem;
}

html,
body {
    position: relative;
    height: 100%;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

header {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 18px 10%;
    border-bottom: 1px solid transparent;
    transition: all .40 ease;
}

header.sticky {
    padding: 10px 10%;
    background: #020312a7;
    border-bottom: 1px solid #020312a7;
}

section {
    padding: 10px 16% 0;
}

.logo {
    width: 100px;
    height: auto;
    font: var(--h3-font);
    font-weight: 600;
    color: var(--h1-color);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.navbar a,
.nav-dropdown-toggle {
    border: solid transparent;
    border-radius: 0.5rem;
    color: var(--second-color);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 6px 13px;
    margin: 0;
    transition: border-color .3s ease;
}

.nav-dropdown-toggle { display: flex; align-items: center; gap: 3px; background: transparent; cursor: pointer; font-family: inherit; }
.nav-dropdown-toggle i { font-size: 1rem; }

.navbar a:hover,
.navbar a.active,
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
    border-color: var(--main-color);
    color: var(--text-color);
    background: #02031223;
    transform: scale(1) translateY(-3px);
}

.nav-dropdown { position: relative; }
.nav-submenu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 165px; padding: 7px; background: #12141c; border: 1px solid rgba(24, 226, 255, 0.18); border-radius: 0.6rem; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s ease; }
.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu,
.nav-dropdown.open .nav-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.navbar .nav-submenu a { display: block; padding: 8px 10px; font-size: 0.84rem; white-space: nowrap; transform: none; }

#menu-icon {
    font-size: 36px;
    color: var(--text-color);
    z-index: 10001;
    cursor: pointer;
    display: none;
}

.main-text {
    text-align: center;
    margin-top: 6rem;
}

.main-text h2 {
    font-size: var(--h2-font);
    margin-bottom: 10px;
}

.main-text h4 {
    color: var(--main-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Formasyon Image Carousel & Lightbox Modal
   ========================================================================== */

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 3rem auto 2rem;
    background: #12141c;
    border: 1px solid rgba(24, 226, 255, 0.15);
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.slide-card {
    position: relative;
    width: 100%;
    max-width: 840px;
    border-radius: 12px;
    overflow: hidden;
    background: #090a14;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.slide-card:hover {
    transform: translateY(-4px);
    border-color: var(--main-color);
}

.slide-card img {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.zoom-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(2, 3, 18, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(24, 226, 255, 0.3);
    color: var(--main-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    transition: background 0.3s ease;
}

.slide-card:hover .zoom-badge {
    background: var(--main-color);
    color: #020312;
    border-color: var(--main-color);
}

/* Carousel Prev & Next Buttons */
.carousel-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(18, 20, 28, 0.85);
    border: 1px solid rgba(24, 226, 255, 0.3);
    color: var(--text-color);
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.carousel-btn:hover {
    background: var(--main-color);
    color: #020312;
    box-shadow: 0 0 15px rgba(24, 226, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev-btn {
    left: 8px;
}

.carousel-btn.next-btn {
    right: 8px;
}

/* Controls Bar (Dots, Counter, Autoplay Toggle) */
.carousel-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 0 10px;
}

.carousel-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--h1-color);
    background: rgba(2, 3, 18, 0.6);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    max-width: 60%;
    padding: 4px 8px;
}

.carousel-dots::-webkit-scrollbar {
    display: none;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.dot:hover {
    background: rgba(24, 226, 255, 0.6);
}

.dot.active {
    width: 26px;
    border-radius: 10px;
    background: var(--main-color);
    box-shadow: 0 0 10px rgba(24, 226, 255, 0.6);
}

.autoplay-toggle-btn {
    background: rgba(2, 3, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.autoplay-toggle-btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 3, 18, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.lightbox-wrapper {
    position: relative;
    max-width: 92%;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(24, 226, 255, 0.2);
    border: 1px solid rgba(24, 226, 255, 0.3);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 14px;
    color: var(--h1-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--main-color);
}

.contact {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
}

.contact-text h4 {
    color: var(--main-color);
    font-size: 20px;
    font-weight: 600;

}

.contact-text h2 {
    font-size: var(--h2-font);
}

.contact-text p {
    color: var(--second-color);
    font-size: var(--p-font);
    line-height: 30px;
    margin-bottom: 2rem;
}

.contact-icons i {
    width: 40px;
    height: 40px;
    background: #12141c;
    border-radius: 0.5rem;
    color: var(--main-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 10px;
    transition: all 0.40s ease;
}

.contact-icons i:hover {
    transform: scale(1.01) translateY(-5px);
    color: var(--text-color);
    background: var(--main-color);
}

.contact-form form {
    position: relative;
}

.contact-form form input,
form textarea {
    border: none;
    outline: none;
    width: 100%;
    padding: 12px;
    background: #12141c;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
}

.contact-form textarea {
    resize: none;
    height: 220px;
}

.contact-form form .send {
    display: inline-block;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    color: var(--text-color);
    border: solid var(--main-color) 0.1rem;
    width: 100px;
    transition: all 0.40s ease;
    cursor: pointer;
}

.contact-form form .send:hover {
    transform: scale(1.01) translateY(-3px);
    background: transparent;
    border: 1px solid var(--main-color);
}

footer {
    position: relative;
    padding: 90px 43% 0;
}

footer ul {
    position: absolute;
    top: 50%;
    transform: translate(-50%-50%);
}

@media (max-width: 1325px) {
    header {
        padding: 16px 3%;
    }

    header.sticky {
        padding: 8px 3%;
    }

    section {
        padding: 10px 3% 0px;
    }
    .contact-text {
        padding: 80px 0px;
    }

    :root {
        --h1-font: 2.4rem;
        --h2-font: 2rem;
        --h3-font: 1.3rem;
        --p-font: 1.2rem;
    }
}

@media (max-width: 970px) {
    :root {
        --h1-font: 2.4rem;
        --h2-font: 2rem;
        --h3-font: 1.3rem;
        --p-font: 1rem;
    }

    section {
        padding: 10px 3% 0px;
    }
    
    .formasyon .slide:hover {
        transform: scale(1.1);
        cursor: pointer;
    }

    .contact {
        grid-template-columns: 1fr;
    }
    footer {
        position: relative;
        padding: 90px 38% 0;
    }
}

@media (max-width: 830px) {
    #menu-icon {
        display: block;
    }
    .trading-view-content {
        width: 400px;
        height: 100%;
        display: inline-block;
    }
    .navbar {
        position: absolute;
        top: -600px;
        right: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        background: #12141c;
        text-align: left;
        transition: all .40s ease;
        gap: 0;
    }

    .navbar a {
        display: block;
        padding: 1rem;
        margin: 1rem;
    }

    .navbar .nav-dropdown-toggle { width: calc(100% - 2rem); justify-content: flex-start; padding: 1rem; margin: 1rem 1rem 0; }
    .navbar .nav-submenu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: transparent; padding: 0 1rem 0.5rem 2rem; }
    .navbar .nav-submenu a { padding: 0.65rem 1rem; margin: 0; font-size: 0.86rem; }

    .navbar.active {
        top: 100%;
    }
    footer {
        position: relative;
        padding: 90px 30% 0;
    }

    :root {
        --h1-font: 2.4rem;
        --h2-font: 2rem;
        --h3-font: 1.3rem;
        --p-font: 1rem;
    }
}

/* ==========================================================================
   Teknik Analiz Hub Extensions (Ticker, Grid, Gauge, Pivot, Indicators)
   ========================================================================== */

.teknik-ticker-bar {
    padding: 85px 16% 0;
}

.teknik-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 24px;
    margin-top: 2rem;
}

.teknik-card {
    background: #12141c;
    border: 1px solid rgba(24, 226, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.teknik-card-header {
    background: rgba(2, 3, 18, 0.6);
    border-bottom: 1px solid rgba(24, 226, 255, 0.1);
    padding: 14px 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.teknik-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--h1-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.symbol-selector-bar, .interval-selector-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.selector-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--second-color);
    margin-right: 4px;
}

.sym-btn, .interval-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sym-btn:hover, .interval-btn:hover {
    border-color: var(--main-color);
    color: var(--main-color);
}

.sym-btn.active, .interval-btn.active {
    background: var(--main-color);
    color: #020312;
    border-color: var(--main-color);
    font-weight: 700;
    box-shadow: 0 0 10px rgba(24, 226, 255, 0.4);
}

/* Pivot Points Calculator */
.pivot-container {
    max-width: 1000px;
    margin: 2rem auto;
    background: #12141c;
    border: 1px solid rgba(24, 226, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pivot-input-card .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.pivot-input-card .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pivot-input-card label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--h1-color);
}

.pivot-input-card input {
    background: rgba(2, 3, 18, 0.8);
    border: 1px solid rgba(24, 226, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.pivot-results-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.pivot-box {
    background: rgba(2, 3, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;

}

.pivot-box .p-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--second-color);
}

.pivot-box .p-value {
    font-size: 0.95rem;
    font-weight: 700;
}

.pivot-box.resistance {
    border-color: rgba(255, 82, 82, 0.3);
}

.pivot-box.resistance .p-value {
    color: var(--red-down);
}

.pivot-box.support {
    border-color: rgba(0, 230, 118, 0.3);
}

.pivot-box.support .p-value {
    color: var(--green-up);
}

.pivot-box.main-pivot {
    border-color: var(--main-color);
    background: rgba(24, 226, 255, 0.08);
}

.pivot-box.main-pivot .p-label {
    color: var(--main-color);
}

.pivot-box.main-pivot .p-value {
    color: var(--h1-color);
    font-size: 1.05rem;
}

/* Indicators Cheat Sheet */
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 2rem;
}

.indicator-card {
    background: #12141c;
    border: 1px solid rgba(24, 226, 255, 0.12);
    border-radius: 14px;
    padding: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.indicator-card:hover {
    transform: translateY(-4px);
    border-color: var(--main-color);
}

.ind-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ind-header i {
    font-size: 24px;
    color: var(--main-color);
}

.ind-header h3 {
    font-size: 1.1rem;
    color: var(--h1-color);
}

.ind-desc {
    font-size: 0.88rem;
    color: var(--second-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.ind-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.84rem;
    line-height: 1.4;
}

.ind-bullets li {
    position: relative;
    padding-left: 14px;
}

.ind-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--main-color);
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
    .teknik-grid {
        grid-template-columns: 1fr;
    }
    .pivot-results-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .indicators-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .teknik-ticker-bar {
        padding: 75px 4% 0;
    }
    .pivot-input-card .form-row {
        grid-template-columns: 1fr;
    }
    .pivot-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
