/* === Variables === */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #1e293b;
    --accent-blue: #3b82f6;
    --light-bg: #f0f4f8;
    --light-bg-alt: #e0e7ef;
}

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

/* === Global Styles === */
body {
    background: linear-gradient(135deg, var(--light-bg), var(--light-bg-alt));
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === Navigation === */
.navbar {
    display: flex;
    align-items: center;
    background-color: var(--primary-blue);
    padding: 2vh;
    border-radius: 8px;
    margin: 15px 10vw 0;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.main-title h1 {
    font-size: 32px;
    color: white;
    white-space: nowrap;
    margin-left: 2vh;
}

.nav-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: 15px;
    justify-content: flex-end;
}

.nav-buttons a {
    color: white;
    background-color: var(--secondary-blue);
    border: none;
    border-radius: 5px;
    padding: calc(1.5vh - 2px);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-buttons a:hover {
    background-color: var(--accent-blue);
    transform: scale(1.025);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* === Hero Slider === */
.slider-container {
    position: relative;
    width: 80vw;
    margin: 3vh auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.25);
}

.slide {
    display: none;
}

.slide.active {
    display: block;
}

.slide-content {
    position: relative;
}

.slide-content img {
    display: block;
    width: 100%;
    height: 60vh;
    object-fit: cover;
}

.slide-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.95), rgba(30, 58, 138, 0.4));
    color: white;
    padding: 3vh 4vw;
}

.slide-text h2 {
    font-size: 36px;
    margin: 0 0 10px 0;
}

.slide-text p {
    font-size: 20px;
    margin: 0;
}

.slider-btn {
    position: absolute;
    top: 40%;
    background-color: rgba(30, 58, 138, 0.6);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    padding: 10px 20px 15px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: rgba(59, 130, 246, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.dot.active,
.dot:hover {
    background-color: white;
}

/* === Intro Section === */
.content-with-image {
    display: flex;
    gap: 3vw;
    margin: 3vh auto;
    max-width: 80vw;
    align-items: flex-start;
}

.Intro {
    flex: 1;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    text-align: center;
    padding: 2vh 3vw;
    border-radius: 10px;
    min-height: 30vh;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.25);
    max-width: 40vw;
    margin-left: auto;
    margin-right: 3vw;
    margin-bottom: 8vh;
    
}

.Intro h2 {
    margin-top: 0;
}

.Intro p {
    font-size: 16px;
    line-height: 1.6;
}

.side-image {
    flex:  0 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid var(--accent-blue);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.25);
    background-color: black;
    margin-right: 4vw;
}

.side-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Responsive === */
@media (max-width: 1366px) and (min-width: 1024px) {
    .nav-buttons {
        gap: 15px;
    }
    
    .nav-buttons a {
        font-size: 15px;
        padding: calc(1.2vh - 2px) 8px;
    }
    
    .slider-container {
        width: 85vw;
    }
    
    .content-with-image {
        max-width: 85vw;
        gap: 2vw;
    }
}

@media (max-width: 1024px) {
    .navbar {
        margin-left: 5vw;
        margin-right: 5vw;
    }
    .Intro {
        max-width: 100%;
    }
    .nav-buttons {
        gap: 12px;
    }
    
    .nav-buttons a {
        font-size: 14px;
        padding: calc(1.1vh - 2px) 6px;
    }
    
    .content-with-image {
        flex-direction: column;
        max-width: 90vw;
    }

    .Intro {
        margin: 0;
        max-width: 100%;
    }
    
    .side-image {
        width: 100%;
        max-width: 500px;
        margin: 2vh auto 0;
    }
    
    .slide-text h2 {
        font-size: 28px;
    }
    
    .slider-container {
        width: 90vw;
    }
}

/* === Dark Mode === */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-blue: #111827;
        --secondary-blue: #1f2937;
        --accent-blue: #60a5fa;
        --light-bg: #0f1115;
        --light-bg-alt: #1a1f29;
    }

    body {
        color: #e5e7eb;
    }

    .side-image {
        background-color: #111827;
    }
}

@media (max-width: 1210px) {
    .navbar {
        flex-direction: column;
        margin: 15px 5vw 0;
        padding: 1.5vh;
        gap: 1.5vh;
    }
    
    .main-title h1 {
        font-size: 24px;
        margin-left: 0;
    }
    
    .nav-buttons {
        width: 100%;
        gap: 10px;
        margin: 0;
        justify-content: center;
    }
    
    .nav-buttons a {
        font-size: 14px;
        padding: calc(1vh - 2px) 10px;
        flex: 1 1 auto;
        min-width: 80px;
        text-align: center;
    }
    
    .slider-container {
        width: 90vw;
    }
    
    .content-with-image {
        max-width: 90vw;
    }
    
    .side-image {
        max-width: none;
    }
    
    .slider-btn {
        padding: 10px 15px;
        font-size: 20px;
    }
    
    .slider-btn.prev {
        left: 10px;
    }
    
    .slider-btn.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        margin-left: 2vw;
        margin-right: 2vw;
        padding: 1vh;
    }
    
    .main-title h1 {
        font-size: 20px;
    }
    
    .nav-buttons {
        gap: 8px;
    }
    
    .nav-buttons a {
        font-size: 12px;
        padding: calc(0.8vh - 2px) 8px;
    }
    
    .slider-container {
        width: 95vw;
    }
    
    .content-with-image {
        max-width: 95vw;
    }
    
    .Intro {
        padding: 1.5vh 2vw;
    }
    
    .slider-btn {
        padding: 8px 12px;
        font-size: 18px;
    }
}