/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: all var(--transition-base);
}

.header--scrolled {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.header__logo img,
.header__logo svg {
    height: 40px;
    width: auto;
}

/* Navigation */
.nav__list {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav__link {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav__link:hover {
    color: var(--color-accent);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--active {
    color: var(--color-accent);
}

/* Dropdown */
.nav__dropdown {
    position: relative;
}

.nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    min-width: 420px;
    max-height: 70vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
    margin-top: 16px;
    /* 2 kolonlu layout */
    column-count: 3;
    column-gap: var(--spacing-md);
}

.nav__dropdown:hover .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav__dropdown-menu li {
    padding: var(--spacing-sm);
    break-inside: avoid;
    /* Kolonlar arası bölünmeyi önle */
}

.nav__dropdown-menu a {
    display: block;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav__dropdown-menu a:hover {
    color: var(--color-accent);
}

/* Header CTA - Minimal Icon Buttons */
.header__cta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.header__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all var(--transition-base);
}

.header__icon-btn--phone {
    background: var(--color-accent);
    color: #000;
}

.header__icon-btn--phone:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

.header__icon-btn--whatsapp {
    background: #25D366;
    color: #fff;
}

.header__icon-btn--whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
}

/* Mobile Menu Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    height: 24px;
    cursor: pointer;
}

.nav__toggle span {
    width: 100%;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav__toggle--active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    overflow: hidden;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('/2mtesisat/assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero .glow-bg--cyan {
    top: 10%;
    left: -10%;
    animation: float 8s ease-in-out infinite;
}

.hero .glow-bg--green {
    bottom: 10%;
    right: -10%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(50px, 50px);
    }
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero__title {
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out;
}

.hero__subtitle {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer__section h3 {
    font-size: 20px;
    margin-bottom: var(--spacing-md);
    color: var(--color-accent);
}

.footer__section ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__section a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer__section a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav__list {
        gap: var(--spacing-md);
    }

    .header__cta .btn-phone .text {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    .nav--active {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
    }

    .nav__dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: var(--spacing-sm);
        display: none;
    }

    .nav__dropdown--active .nav__dropdown-menu {
        display: block;
    }

    .nav__toggle {
        display: flex;
    }

    .header__cta {
        gap: 10px;
        margin-right: 16px;
    }

    .header__icon-btn {
        width: 38px;
        height: 38px;
    }

    .header__icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .hero {
        background-attachment: scroll;
        min-height: 65vh;
        padding-top: 100px;
        padding-bottom: 0;
    }

    .hero__content {
        margin-top: 0 !important;
    }

    .hero__title {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero__subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero__cta {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero__cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: 30px 0;
    }
}
/* -------------------------------------
   FOOTER RESPONSIVE GRIDS (Added for mobile optimization)
--------------------------------------*/
.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 1024px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-regions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .footer-top-grid > .footer__section:first-child {
        grid-column: 1 / -1;
    }
    .footer-regions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-regions-grid {
        /* Keep 2 columns on very small screens to avoid excessive length */
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .footer-regions-grid a {
        font-size: 11px !important;
    }
    /* Ensure padding doesn't overflow */
    .container {
        padding: 0 12px !important;
    }
    .hero-slider__btn {
        width: 40px !important;
        height: 40px !important;
    }
    .hero__cta .btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
}@media (max-width: 1024px) { .nav__dropdown-menu { column-count: 1 !important; min-width: 100% !important; } }


/* =========================================================================
   SHORT SCREEN (MICRO MOBILE) VERTICAL COMPRESSION
   ========================================================================= */
@media (max-height: 600px) and (max-width: 480px) {
    .hero__title {
        margin-bottom: 10px !important;
        font-size: clamp(24px, 7vw, 32px) !important;
    }
    .hero__subtitle {
        margin-bottom: 15px !important;
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
    .hero__cta .btn {
        padding: 8px 16px !important;
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    .hero__cta {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    /* Slider nav buttons */
    .slider-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
}

/* =========================================================================
   GALAXY S3 / ULTRA NARROW SCREEN OVERLAP FIX
   ========================================================================= */
@media (max-width: 400px) {
    /* Hide the huge left/right arrows on very narrow screens where they overlap text */
    .hero-slider__btn {
        display: none !important;
    }
    /* Provide safe horizontal padding for hero text */
    .slide .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}