/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* ===== Header Styles ===== */
header {
    background: linear-gradient(135deg, #0d47a1, #1565c0);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
}

.logo span {
    color: #ff9800;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff9800;
}

/* ===== Hero Section ===== */
.hero {
    background-color: #0d47a1;
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("../images/gradienta.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    height: 500px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 2.5rem; /* Reduced from 3rem */
    margin-bottom: 1rem;
    max-width: 800px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button:hover {
    background-color: #f57c00;
    transform: translateY(-2px);
}

/* ===== Services Section ===== */
.services {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #0d47a1;
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

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

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-content {
    padding: 1.5rem;
}

.service-card h3 {
    color: #0d47a1;
    margin-bottom: 1rem;
}

.service-image {
    height: 200px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== About Section ===== */
.about {
    background-color: white;
    padding: 5rem 2rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem; /* Reduced from 4rem to keep content within container */
    align-items: center; /* Changed from 'start' to better align content */
    padding: 0 1rem; /* Added padding to ensure content stays within boundaries */
}

.about-content {
    padding-right: 1rem;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #0d47a1;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 550px; /* Reduced from 600px */
}

.about-image {
    position: relative;
    width: 100%;
    max-width: 380px; /* Reduced from 400px */
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===== Contact Section ===== */
.contact {
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== Footer ===== */
footer {
    background: #0d47a1;
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

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

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ff9800;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #ff9800;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .hero {
        height: 400px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .about-content {
        padding-right: 0;
    }

    .about-content p {
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }
}
