* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --dark-bg: #0b1f3a;
    --light-bg: #eaf4ff;
    --text-dark: #0f172a;
    --text-light: #4b6f93;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: linear-gradient(180deg, #eaf4ff, #ffffff);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-contact-bar,
.bottom-contact-bar {
    background: linear-gradient(90deg, #1e40af, #2563eb);
    border-top: 1px solid #1e40af;
    border-bottom: 1px solid #1e40af;
    color: #fff;
    font-size: 0.85rem;
}

.top-contact-bar .container,
.bottom-contact-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.35rem 20px;
    gap: 1rem;
}

.top-contact-bar a,
.bottom-contact-bar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.top-contact-bar a:hover,
.bottom-contact-bar a:hover {
    color: #dbeafe;
}

.contact-now {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 0.85rem;
}

.contact-now:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Navigation */
.navbar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 12px rgba(29, 78, 216, 0.25);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.logo {
    width: 45px;
    height: 45px;
    min-width: 45px;
    filter: drop-shadow(0 2px 5px rgba(102, 126, 234, 0.2));
    transition: filter 0.3s ease;
}

.nav-brand:hover .logo {
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.4));
}

.brand-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #e2e8f0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a, #1e40af);
    color: #f8fafc;
    padding: 8rem 20px;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.slider-item.active {
    opacity: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border: none;
    font-size: 2rem;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--white);
    transform: scale(1.3);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #3b82f6;
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background: #2563eb;
}


.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services {
    padding: 5rem 20px;
    background: var(--light-bg);
}

.services h2,
.portfolio h2,
.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 5rem 20px;
    background: var(--light-bg);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.contact-form button:hover {
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 2rem 20px;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #fc8181;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }

    .logo {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .brand-text {
        font-size: 1.4rem;
    }

    .hero-slider {
        height: 250px;
        margin-bottom: 1.5rem;
    }

    .slider-btn {
        font-size: 1.5rem;
        padding: 8px 12px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .services h2,
    .portfolio h2,
    .contact h2 {
        font-size: 1.8rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-menu a {
        padding: 0.5rem 0;
    }

    .logo {
        width: 35px;
        height: 35px;
        min-width: 35px;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .hero-slider {
        height: 200px;
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .slider-btn {
        font-size: 1.2rem;
        padding: 6px 10px;
    }

    .slider-dots {
        bottom: 10px;
        gap: 6px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}
