:root {
    --primary: #4a6670;
    --primary-light: #7a949d;
    --primary-dark: #2c3e46;
    --secondary: #d4a373;
    --accent: #e9edc9;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #fefae0;
    --bg-white: #ffffff;
    --glass: rgba(255, 255, 255, 0.75);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

*,
::before,
::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden !important;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
    position: relative;
}

h1,
h2,
h3,
h4,
.navbar-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* Navbar */
.navbar {
    padding: 1.2rem 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
    font-weight: 800;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.8rem;
    color: var(--text-dark) !important;
    position: relative;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: scale(1.1);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 3;
}

.hero .container {
    position: relative;
    z-index: 4;
    color: white;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    max-width: 650px;
    opacity: 0;
    transform: translateY(30px);
    font-weight: 300;
    animation: fadeInUp 1s forwards 0.7s;
}

.btn-premium {
    padding: 1.2rem 3rem;
    background: var(--primary);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-premium-sm {
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
}

/* Default Bootstrap Button Overrides */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
    border-radius: 50px;
    padding: 0.8rem 2.5rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-premium:hover {
    background: var(--primary-dark) !important;
    color: white !important;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--secondary);
    border-radius: 10px;
}

/* Glass Cards */
.card-glass {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius, 20px);
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.card-glass:hover {
    transform: translateY(-20px);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    height: 250px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-glass:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* About Section */
.about-img-container {
    position: relative;
    padding: 20px;
}

.about-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background: var(--accent);
    border-radius: 20px;
    z-index: -1;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Contact */
.contact-info-card {
    background: var(--primary);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.form-control-premium {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.form-control-premium:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(74, 102, 112, 0.1);
    outline: none;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-soft {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 163, 115, 0.4);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(212, 163, 115, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(212, 163, 115, 0);
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.float-anim {
    animation: float 6s ease-in-out infinite;
}

/* Background Shapes */
.bg-shape {
    position: fixed;
    /* Mobilde scroll ile kaymaması için fixed daha güvenli olabilir */
    z-index: -1;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 10s ease-in-out infinite;
    pointer-events: none;
    /* Tıklamayı engelle */
}

@media (max-width: 991px) {
    .bg-shape {
        display: none;
        /* Mobilde taşmayı kökten önlemek için en güvenlisi gizlemek */
    }
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -100px;
    animation-delay: -5s;
}

/* Contact Page Specific */
.contact-header {
    background: linear-gradient(to bottom, rgba(74, 102, 112, 0.05), transparent);
}

.input-group-text {
    border-radius: 15px 0 0 15px !important;
    background-color: #f8f9fa !important;
    border: none !important;
}

.form-control-lg {
    border-radius: 0 15px 15px 0 !important;
    font-size: 1rem !important;
}

textarea.form-control-lg {
    border-radius: 15px !important;
}

.card-glass .input-group {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.ls-wide {
    letter-spacing: 1px;
    color: var(--primary);
    opacity: 0.8;
}

/* Social Icon Hover Effects */
.btn-light.rounded-circle {
    border: 1px solid #eee;
    transition: var(--transition);
}

.btn-light.rounded-circle:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.bg-primary-subtle {
    background-color: rgba(74, 102, 112, 0.1) !important;
}

.bg-success-subtle {
    background-color: rgba(46, 204, 113, 0.1) !important;
}

.bg-info-subtle {
    background-color: rgba(52, 152, 219, 0.1) !important;
}

/* Ratios for Videos */
.ratio-9x16 {
    --bs-aspect-ratio: 177.77%;
}

.ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2874, 102, 112, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2874, 102, 112, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 991px) {
    .navbar {
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 0.8rem 0;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .navbar .container {
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 15px;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden;
        /* Taşmayı burada da keselim */
    }

    .navbar-brand {
        margin: 0 !important;
        padding: 0 !important;
    }

    .navbar-toggler {
        margin: 0 auto !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* Eğer logo ile butonun yan yana ama toplamda ortalı olmasını istiyorsanız: */
    section {
        padding: 60px 0;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title {
        margin-bottom: 50px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        margin-top: 1rem;
        padding: 2rem 1.5rem;
        border-radius: var(--radius);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        max-height: 80vh;
        overflow-y: auto;
        text-align: center;
    }

    .navbar-nav {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
    }

    .navbar.scrolled .navbar-collapse {
        background: white;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .nav-link {
        margin: 0.2rem 0 !important;
        /* Ortalamayı bozan yan marginleri sıfırla */
        padding: 0.8rem 1.2rem !important;
        border-radius: 12px;
        transition: background 0.3s;
        display: block;
        /* Genişliği satır boyu olsun ki text-align çalışsın */
        width: 100%;
    }

    .nav-item {
        width: 100%;
        margin-left: 0 !important;
    }

    .ms-lg-3 {
        margin-left: 0 !important;
        margin-top: 1rem;
        width: 100%;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(74, 102, 112, 0.05);
        color: var(--primary) !important;
    }

    .nav-link::after {
        display: none;
    }

    .card-glass:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .btn-premium {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.2rem;
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .section-title p {
        font-size: 0.85rem;
    }

    .card-img-wrapper {
        height: 180px;
    }

    .card-content {
        padding: 1.2rem;
    }

    .card-content h3 {
        font-size: 1.1rem;
    }

    .about-img-container {
        padding: 10px;
    }

    .about-text {
        font-size: 0.95rem !important;
    }

    footer {
        padding: 40px 0 20px;
    }

    .social-links {
        gap: 10px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }
}