/* --- Variables & Reset --- */
:root {
    --primary-color: #04B9D7; /* Aqua Blue */
    --primary-dark: #039cb6; 
    --secondary-color: #555555; /* Grey */
    --light-grey: #f4f6f7;
    --white: #ffffff;
    --text-color: #555555;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Scroll taşmalarının qarşısını alır */
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

h1, h2, h3, h4, .logo {
    font-family: 'Montserrat', sans-serif;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-grey);
}

/* --- Preloader (YENİ) --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-fill {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-fill:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

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

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 15px;
    color: var(--secondary-color);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active { /* Aktiv menyu stili */
    color: var(--primary-color);
}

/* Hover effekti üçün alt xətt */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 20px;
}
.btn-nav::after { display: none; } /* Butonda alt xətt olmasın */

.btn-nav:hover {
    background-color: var(--primary-dark);
    color: var(--white) !important;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1579684385127-1ef15d508118?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax effekti */
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(4, 185, 215, 0.7), rgba(85, 85, 85, 0.7));
}

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

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--white);
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns .btn {
    margin: 0 10px;
}

/* --- About Section --- */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    overflow: hidden; /* Animasiya taşmalarını gizləmək üçün */
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.5s ease;
}

.about-img img:hover {
    transform: scale(1.02); /* Yüngül zoom effekti */
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    color: var(--secondary-color);
}

.about-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

.about-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* --- Services Section --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.section-header p {
    color: var(--secondary-color);
    opacity: 0.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

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

/* Kartın üzərinə gələndə fonun yüngül dəyişməsi */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: rgba(4, 185, 215, 0.05);
    transition: 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    height: 100%;
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card .icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: var(--secondary-color);
}

.service-card ul {
    list-style: disc;
    padding-left: 20px;
}

.service-card ul li {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--secondary-color);
}

/* --- Appointment Section --- */
.appointment-wrapper {
    background: url('https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    background-attachment: fixed; /* Parallax effekti */
    padding: 80px 40px;
    border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: center;
}

.appointment-form {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    z-index: 2;
}

.appointment-form h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.appointment-form p {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--secondary-color);
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-family: inherit;
    color: var(--secondary-color);
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(4, 185, 215, 0.2);
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: #e0e0e0;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-info h3 span {
    color: var(--primary-color);
}

.footer-contact h4,
.footer-social h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-contact p {
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        transform: translateY(-150%);
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 0;
        margin-left: 0;
    }

    .hamburger {
        display: block;
        color: var(--secondary-color);
    }

    .hero h1 {
        font-size: 32px;
    }
    
    .about-wrapper {
        flex-direction: column;
    }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}