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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==================== */
/* TOP BAR */
/* ==================== */
.top-bar {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.top-bar-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.85rem;
}

.top-bar-phone svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.top-bar-social {
    position: absolute;
    right: 60px;
    display: flex;
    gap: 12px;
}

.top-bar-social a {
    color: #ffffff;
    transition: color 0.3s ease;
}

.top-bar-social a:hover {
    color: #4da6ff;
}

.top-bar-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==================== */
/* HEADER WRAPPER & ANIMATION */
/* ==================== */
.header-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 25, 60, 0.6);
    overflow: visible;
    z-index: 1000;
}

/* Header altında yumuşak geçiş */
.header-wrapper::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(10, 25, 60, 0.6), transparent);
    pointer-events: none;
}

.header-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.15;
    pointer-events: none;
}

/* Dönen Dişli Animasyonları */
.gear {
    position: absolute;
    border-radius: 50%;
    background: transparent;
    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, 0.8),
        0 0 0 8px rgba(255, 255, 255, 0.3);
}

.gear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35%;
    height: 35%;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
}

/* Dişler için after */
.gear::after {
    content: '⚙';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: rgba(255, 255, 255, 0.4);
}

.gear-1 {
    width: 80px;
    height: 80px;
    top: 10px;
    left: 5%;
    animation: rotate 12s linear infinite;
}

.gear-1::after {
    font-size: 80px;
}

.gear-2 {
    width: 50px;
    height: 50px;
    top: 40px;
    left: 50%;
    animation: rotate 8s linear infinite reverse;
}

.gear-2::after {
    font-size: 50px;
}

.gear-3 {
    width: 70px;
    height: 70px;
    top: 5px;
    right: 10%;
    animation: rotate 10s linear infinite;
}

.gear-3::after {
    font-size: 70px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==================== */
/* HEADER */
/* ==================== */
.header {
    background-color: transparent;
    padding: 0 60px;
    position: relative;
    z-index: 10;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 160px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo img {
    height: 160px;
    width: auto;
}

.header-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
}

.header-logo-text span {
    font-weight: 400;
    color: #999;
}

/* Navigasyon */
.header-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 25px 18px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-nav-link:hover {
    color: #4da6ff;
}

.header-nav-link.active {
    color: #4da6ff;
}

/* CTA Butonu */
.header-cta {
    background-color: rgba(26, 58, 108, 0.6);
    color: #ffffff !important;
    padding: 12px 25px !important;
    border-radius: 5px;
    font-weight: 600;
    margin-left: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border: none;
}

.header-cta:hover {
    background-color: rgba(15, 36, 68, 0.8);
    color: #ffffff !important;
}

.header-cta svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==================== */
/* HERO SECTION */
/* ==================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #0a0a0a;
}

/* Hero koyu overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.5);
    z-index: 1;
    pointer-events: none;
}

/* Kayan Yıldız Animasyonu */
.shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.shooting-star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0;
    box-shadow:
        0 0 6px 2px rgba(255, 255, 255, 0.3),
        -10px 0 8px rgba(255, 255, 255, 0.6),
        -20px 0 10px rgba(255, 255, 255, 0.4),
        -35px 0 12px rgba(255, 255, 255, 0.2),
        -55px 0 14px rgba(255, 255, 255, 0.1),
        -80px 0 16px rgba(255, 255, 255, 0.05);
    animation: shootingStar 6s ease-in-out infinite;
}

.shooting-star:nth-child(1) {
    top: 20%;
    left: 0%;
    animation-delay: 0s;
}

.shooting-star:nth-child(2) {
    top: 40%;
    left: 20%;
    animation-delay: 3s;
}

.shooting-star:nth-child(3) {
    top: 60%;
    left: 5%;
    animation-delay: 6s;
}

.shooting-star:nth-child(4) {
    top: 80%;
    left: 40%;
    animation-delay: 9s;
}

@keyframes shootingStar {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    50% {
        transform: translateX(400px) translateY(100px);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-content {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.hero-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.hero-btn-primary {
    background-color: rgba(26, 58, 108, 0.6);
    color: #ffffff;
}

.hero-btn-primary:hover {
    background-color: rgba(15, 36, 68, 0.8);
    transform: translateX(5px);
}

.hero-btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.hero-btn-secondary:hover {
    background-color: #ffffff;
    color: #1a1a1a;
}

/* Mobil Menü */
.header-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.header-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger menu açıkken X haline gelir */
.header-nav.active~.header-mobile-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: #1a3a6c;
}

.header-nav.active~.header-mobile-toggle span:nth-child(2) {
    opacity: 0;
}

.header-nav.active~.header-mobile-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: #1a3a6c;
}

/* ==================== */
/* RESPONSIVE */
/* ==================== */
@media (max-width: 1200px) {

    .top-bar,
    .header {
        padding: 0 30px;
    }

    .header-nav-link {
        padding: 25px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .top-bar {
        display: flex;
        padding: 6px 20px;
        font-size: 0.75rem;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .top-bar-phone {
        font-size: 0.75rem;
    }

    .top-bar-social {
        position: static;
        gap: 15px;
    }

    .top-bar-social svg {
        width: 18px;
        height: 18px;
    }

    .header-mobile-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .header-nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    .header-nav-link {
        width: 100%;
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid #eee;
        color: #1a3a6c;
    }

    .header-nav-link:hover {
        color: #4da6ff;
        background: #f8f9fa;
    }

    .header-cta {
        margin: 15px 0 0 0;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 0 20px;
    }

    .header-logo img {
        height: 40px;
    }

    .header-logo-text {
        font-size: 1.2rem;
    }
}

/* ==================== */
/* FEATURES SECTION */
/* Modern Dark Glass Concept */
/* ==================== */
.features {
    background-color: #0d1f3a;
    /* Koyu Lacivert Zemin */
    padding: 70px 60px;
    position: relative;
    overflow: hidden;
}

/* Arka plan için modern mesh pattern */
.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(26, 58, 108, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(243, 156, 18, 0.15) 0%, transparent 40%);
    z-index: 1;
}

/* İnce ızgara detay */
.features::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    /* Çok şeffaf beyaz */
    backdrop-filter: blur(10px);
    /* Buzlu cam efekti */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    /* Paralelkenar şekli */
    transform: skewX(-8deg);
}

/* İçeriğin eğikliğini düzelt */
.feature-card>* {
    transform: skewX(8deg);
}

.feature-card:hover {
    transform: skewX(-8deg) translateY(-10px);
    /* Hover'da hepsi yukarı çıkar */
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(243, 156, 18, 0.5);
    /* Turuncu border vurgusu */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(26, 58, 108, 0.3);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    background: rgba(243, 156, 18, 0.1);
    /* Turuncu background */
    border-color: #f39c12;
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.3);
    /* Turuncu glow */
    transform: scale(1.1) rotate(5deg);
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    fill: #e0e0e0;
    /* Varsayılan gri-beyaz ikon */
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon svg {
    fill: #f39c12;
    /* Hover'da turuncu ikon */
}

/* Renk sınıflarını override ediyoruz, dark modda hepsi aynı stil */
.feature-icon-blue svg,
.feature-icon-orange svg {
    fill: #e0e0e0;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    /* Beyaz başlık */
    margin-bottom: 20px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

/* Başlık altı dekoratif çizgi */
.feature-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #f39c12;
    transition: width 0.3s ease;
}

.feature-card:hover .feature-title::after {
    width: 80%;
}

.feature-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    /* Soluk beyaz metin */
    line-height: 1.7;
}

/* Features Responsive */
@media (max-width: 992px) {
    .features-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
        /* Dikey boşluk arttırıldı */
    }

    /* Mobilde zikzak yapıyı kaldır */


    .feature-card:hover {
        transform: skewX(-8deg) translateY(-10px);
    }
}

@media (max-width: 576px) {
    .features {
        padding: 60px 20px;
    }

    .features-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

/* ==================== */
/* ABOUT SECTION */
/* Overlapping Glassmorphism Design */
/* ==================== */
.about {
    background: linear-gradient(135deg, #0d1f3a 0%, #1a3a6c 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 550px;
}

.about-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 550px;
}

/* Resim - Sağ tarafta büyük */
.about-image {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60%;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* Soldan fade efekti */
    mask-image: linear-gradient(to right, transparent 0%, black 20%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%);
}

/* İçerik - Sol üstte overlapping card */
.about-content {
    position: relative;
    z-index: 10;
    margin-left: 60px;
    margin-top: 50px;
    margin-bottom: 50px;
    max-width: 650px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 45px 40px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Kartın arkasında parlak accent */
.about-content::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

.about-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-subtitle::before {
    content: '';
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, transparent);
}

.about-title {
    font-size: 3rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.about-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    margin-bottom: 40px;
}

.about-list {
    list-style: none;
    margin-bottom: 45px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 18px;
    padding-left: 0;
    transition: all 0.3s ease;
}

.about-list li:hover {
    transform: translateX(10px);
    color: #ffffff;
}

.about-list svg {
    width: 20px;
    height: 20px;
    fill: #3498db;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(52, 152, 219, 0.4));
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: #ffffff;
    padding: 20px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 15px 40px rgba(52, 152, 219, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

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

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

.about-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.about-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(52, 152, 219, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.about-btn:hover svg {
    transform: translateX(8px);
}

/* About Responsive */
@media (max-width: 1200px) {
    .about-image {
        width: 55%;
    }

    .about-content {
        max-width: 550px;
        margin-left: 60px;
    }
}

@media (max-width: 992px) {
    .about {
        min-height: auto;
    }

    .about-container {
        flex-direction: column;
        min-height: auto;
    }

    .about-image {
        position: relative;
        width: 100%;
        height: 400px;
    }

    .about-image img {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .about-content {
        margin: -100px 40px 60px;
        max-width: 100%;
    }

    .about-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .about-content {
        margin: -80px 20px 40px;
        padding: 40px 30px;
        border-radius: 20px;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .about-list li {
        font-size: 0.95rem;
    }
}

/* ==================== */
/* SERVICES SECTION */
/* Ultra Creative Gradient Design */
/* ==================== */
.services {
    background: linear-gradient(135deg, #0f1419 0%, #1a3a6c 50%, #0d1f3a 100%);
    padding: 30px 60px;
    position: relative;
    overflow: hidden;
}

/* Animated background particles */
.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(155, 89, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(26, 188, 156, 0.08) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.services-header {
    text-align: center;
    margin-bottom: 20px;
}

.services-subtitle {
    display: inline-block;
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-title {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 20px 18px;
    text-decoration: none;
    display: block;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

/* Her kartın animasyon gecikmesi farklı */
.service-card:nth-child(1) {
    animation-delay: 0s;
}

.service-card:nth-child(2) {
    animation-delay: 0.5s;
}

.service-card:nth-child(3) {
    animation-delay: 1s;
}

.service-card:nth-child(4) {
    animation-delay: 1.5s;
}

.service-card:nth-child(5) {
    animation-delay: 2s;
}

.service-card:nth-child(6) {
    animation-delay: 2.5s;
}

@keyframes float {

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

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

/* Her kart farklı gradient */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    opacity: 0.30;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.service-card:nth-child(1)::before {
    background-image: url('/static/img/cnc_bg.png'), linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(52, 152, 219, 0.85) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.service-card:nth-child(2)::before {
    background-image: url('/static/img/lathe_bg.png'), linear-gradient(135deg, rgba(52, 73, 94, 0.85) 0%, rgba(41, 128, 185, 0.85) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.service-card:nth-child(3)::before {
    background-image: url('/static/img/welding_bg.png'), linear-gradient(135deg, rgba(52, 152, 219, 0.85) 0%, rgba(26, 188, 156, 0.85) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.service-card:nth-child(4)::before {
    background-image: url('/static/img/robot_bg.png'), linear-gradient(135deg, rgba(26, 58, 108, 0.85) 0%, rgba(52, 152, 219, 0.85) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.service-card:nth-child(5)::before {
    background-image: url('/static/img/automation_bg.png'), linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(26, 188, 156, 0.85) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.service-card:nth-child(6)::before {
    background-image: url('/static/img/design_bg.png'), linear-gradient(135deg, rgba(41, 128, 185, 0.85) 0%, rgba(13, 31, 58, 0.85) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

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

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2) 0%, rgba(41, 128, 185, 0.2) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.service-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #3498db, #2980b9, #1abc9c);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover .service-icon::after {
    opacity: 1;
}

.service-card:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    fill: #3498db;
    transition: fill 0.5s ease;
}

.service-card:hover .service-icon svg {
    fill: #ffffff;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.service-description {
    font-size: 0.85rem;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 12px;
}

.service-arrow {
    display: inline-block;
    font-size: 1.8rem;
    background: linear-gradient(90deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s ease;
}

.service-card:hover .service-arrow {
    transform: translateX(15px) scale(1.2);
}

.services-action {
    text-align: center;
    margin-top: 10px;
}

.services-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #1a3a6c 0%, #3498db 100%);
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 20px 50px rgba(26, 58, 108, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.services-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, #3498db, #2980b9, #1abc9c);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.services-btn:hover::after {
    opacity: 1;
}

.services-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.services-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow:
        0 30px 70px rgba(102, 126, 234, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.services-btn:hover svg {
    transform: translateX(10px) rotate(45deg);
}

/* Services Responsive */
@media (max-width: 992px) {
    .services-title {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 576px) {
    .services {
        padding: 70px 20px;
    }

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

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

    .service-card {
        padding: 35px 28px;
    }
}

/* ==================== */
/* APPLICATIONS SECTION */
/* Vertical Parallelogram Cards */
/* ==================== */
.applications {
    background-color: #ffffff;
    padding: 50px 60px;
    position: relative;
    overflow: hidden;
}

.applications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/applications_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.50;
    z-index: 0;
}

.applications-container {
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.applications-header {
    text-align: center;
    margin-bottom: 40px;
}

.applications-subtitle {
    display: inline-block;
    color: #3498db;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.applications-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a3a6c;
    margin-bottom: 0;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.application-card {
    background: linear-gradient(135deg, #1a3a6c 0%, #0d1f3a 100%);
    min-height: 400px;
    padding: 40px 30px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    /* Vertical Parallelogram */
    transform: skewY(-3deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

/* İçeriği düzelt */
.application-card>* {
    transform: skewY(3deg);
}

.application-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

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

.application-card:hover {
    transform: skewY(-3deg) translateY(-10px);
    border-color: #3498db;
    box-shadow: 0 20px 50px rgba(26, 58, 108, 0.25);
}

/* Icons */
.application-icon {
    width: 60px;
    height: 60px;
    background: rgba(52, 152, 219, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.application-icon svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    transition: all 0.4s ease;
}

.application-card:hover .application-icon {
    background: #3498db;
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
}

.application-card:hover .application-icon svg {
    fill: #ffffff;
}

/* Number - Watermark style */
.application-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    transition: color 0.4s ease;
    z-index: 1;
}

.application-card:hover .application-number {
    color: rgba(255, 255, 255, 0.2);
}

/* Typography */
.application-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    margin-top: 0;
}

.application-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 0;
}

.application-arrow {
    font-size: 1.8rem;
    color: #3498db;
    transition: transform 0.3s ease;
    align-self: flex-end;
}

.application-card:hover .application-arrow {
    transform: translateX(10px);
    color: #ffffff;
}

/* Applications Responsive */
@media (max-width: 1200px) {
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .applications {
        padding: 50px 20px;
    }

    .applications-title {
        font-size: 2rem;
    }

    .applications-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* For applications page specifically */
    .applications-page-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .application-card {
        min-height: 300px;
    }
}

/* Additional responsive fix for smaller screens */
@media (max-width: 480px) {
    .applications {
        padding: 40px 15px;
    }

    .applications-page-grid {
        gap: 15px !important;
    }

    .service-detail-card {
        margin: 0 !important;
    }

    .card-image {
        height: 180px;
    }
}

/* ==================== */
/* FOOTER SECTION */
/* ==================== */
.footer {
    background: linear-gradient(90deg, #0d1f3a 0%, #1a3a6c 100%);
    color: #ffffff;
    padding: 80px 0 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

/* ... existing styles ... */

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    text-align: center;
    background: transparent;
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #ffffff;
}

/* Contact Column */
.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-contact .contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.footer-contact .contact-icon svg {
    width: 100%;
    height: 100%;
    fill: #3498db;
    /* Mavi tema */
}

.footer-contact p {
    color: #b0b8c4;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social a svg {
    width: 20px;
    height: 20px;
    fill: #b0b8c4;
    transition: fill 0.3s ease;
}

.footer-social a:hover {
    background: #3498db;
    border-color: #3498db;
    transform: translateY(-3px);
}

.footer-social a:hover svg {
    fill: #ffffff;
}

/* Links Column */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 1rem;
    color: #b0b8c4;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #3498db;
    transform: translateX(5px);
}

/* Projects Column */
.footer-project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.project-thumb {
    width: 100%;
    aspect-ratio: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-thumb:hover img {
    transform: scale(1.1);
}

.project-thumb:hover {
    background-color: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    text-align: center;
    background: linear-gradient(90deg, #0d1f3a 0%, #1a3a6c 100%);
}

.footer-copyright {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: #ffffff;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ==================== */
/* HİZMETLER SAYFASI */
/* ==================== */

/* Hizmetler Hero */
.services-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    background-color: #0a0a0a;
}

.services-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.services-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.services-hero-bg .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 25, 60, 0.9), rgba(10, 25, 60, 0.6));
}

.services-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    width: 90%;
}

.services-hero-content .hero-title {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 800;
}

.services-hero-content .hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Filtre Alanı */
.services-filter-section {
    padding: 60px 0 100px;
    background-color: #f4f6fa;
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    border: none;
    background: #ffffff;
    color: #555;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover,
.filter-btn.active {
    background: #1a3a6c;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 58, 108, 0.2);
}

/* Grid Yapısı */
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Kart Tasarımı */
.service-detail-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: scale(1);
}

.service-detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-detail-card:hover .card-image img {
    transform: scale(1.1);
}

.card-icon {
    position: absolute;
    bottom: -25px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #1a3a6c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    fill: #ffffff;
}

.card-content {
    padding: 35px 30px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.4rem;
    color: #1a3a6c;
    margin-bottom: 15px;
    font-weight: 700;
}

.card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    margin-bottom: 25px;
    padding: 0;
}

.card-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
}

.card-features li::before {
    content: '•';
    color: #f39c12;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.card-link {
    margin-top: auto;
    font-weight: 600;
    color: #1a3a6c;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.card-link .arrow {
    transition: transform 0.3s ease;
}

.card-link:hover .arrow {
    transform: translateX(5px);
}

.card-link:hover {
    color: #f39c12;
}

/* Animasyon Sınıfı - JS için */
.service-detail-card.show {
    animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .services-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-page-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-controls {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ==================== */
/* SERVICE DETAIL MODAL */
/* ==================== */

.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.service-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: #fff;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: #f39c12;
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    max-height: 90vh;
    overflow: auto;
}

.modal-images {
    flex: 1;
    background: #f5f5f5;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    overflow-y: auto;
}

.modal-images img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.modal-info {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.modal-info h2 {
    font-size: 2rem;
    color: #1a3a6c;
    margin-bottom: 20px;
}

.modal-info p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-images,
    .modal-info {
        padding: 20px;
    }
}

/* Contact Modal Styles */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-modal.active {
    display: flex;
}

.contact-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1;
    animation: fadeIn 0.3s ease;
}

.contact-modal .modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    padding: 40px;
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header h3 {
    font-size: 2rem;
    color: #1a3a6c;
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-header p {
    color: #666;
    font-size: 0.95rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3498db;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.contact-form .submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1a3a6c, #3498db);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.contact-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.contact-form .submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    display: none;
    text-align: center;
    font-size: 0.9rem;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .contact-modal .modal-content {
        padding: 25px 20px 30px;
        margin: 10px;
        max-width: calc(100% - 20px);
        border-radius: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .contact-modal .modal-close {
        width: 36px;
        height: 36px;
        top: 15px;
        right: 15px;
        font-size: 22px;
        background: #1a3a6c;
        color: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .contact-modal .modal-close:hover {
        background: #f39c12;
        transform: scale(1.1);
    }

    .contact-header h3 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .contact-header p {
        font-size: 0.85rem;
    }

    .contact-header {
        margin-bottom: 20px;
        padding-right: 30px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form .form-group {
        margin-bottom: 15px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 10px 12px;
    }

    .contact-form .submit-btn {
        font-size: 1rem;
        padding: 14px;
    }
}

/* ==================== */
/* TOAST NOTIFICATION */
/* ==================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* Positioned at bottom-left to avoid WhatsApp button */
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(-150%);
    /* Start off-screen to the left */
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.4s ease;
    z-index: 10001;
    min-width: 300px;
    border-left: 5px solid #2ecc71;
}

.toast-notification.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-icon {
    width: 32px;
    height: 32px;
    background: #e8f8f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon svg {
    width: 20px;
    height: 20px;
    fill: #2ecc71;
}

.toast-content h4 {
    margin: 0 0 5px;
    font-size: 1.1rem;
    color: #1a3a6c;
}

.toast-content p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease;
}

.toast-close:hover {
    color: #e74c3c;
}

@media (max-width: 576px) {
    .toast-notification {
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
        transform: translateY(150%);
    }

    .toast-notification.active {
        transform: translateY(0);
    }
}