@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #4a90e2;
    --background-color: #f4f7f6;
    --form-bg-color: #ffffff;
    --text-color: #333;
    --input-border-color: #ccc;
    --error-color: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-color);
    min-height: 100vh;
}

/* Main Header and Navigation Bar */
.main-header {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}
.logo.loading {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}


.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-login {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.menu-toggle {
    display: none; /* Initially hidden on desktop */
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}
.nav-login:hover {
    background-color: #3a7ac8;
    transform: translateY(-2px);
}

/* Common styles for form pages */
.form-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Adjust height to account for header */
    min-height: calc(100vh - 80px); 
    padding: 20px 0;
}

/* Common error message style */
.error-message {
    color: var(--error-color);
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 15px;
    display: none; /* Initially hidden */
}

/* Hero Section & Circular Slider */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px);
    padding: 20px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    margin: 0 auto 25px auto;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 0 10px rgba(255, 255, 255, 0.2);
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.hero-text-content {
    text-align: center;
    color: white;
    max-width: 600px;
}

.hero-name {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* =================================== */
/* ========== Responsive CSS ========= */
/* =================================== */

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide nav links by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 71px; /* Position below header */
        left: 0;
        width: 100%;
        background-color: rgba(44, 62, 80, 0.95); /* Dark background for mobile menu */
        backdrop-filter: blur(5px);
        padding: 10px 0;
        gap: 0;
    }

    .nav-links.active {
        display: flex; /* Show when active */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        padding: 15px;
        display: block;
    }

    .menu-toggle {
        display: block; /* Show hamburger icon on mobile */
    }
}

/* Responsive styles for mobile devices */
@media (max-width: 480px) {
    .slider-container {
        width: 280px;
        height: 280px;
        margin-bottom: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 8px rgba(255, 255, 255, 0.2);
    }

    .hero-name {
        font-size: 32px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-description {
        font-size: 15px;
        padding: 0 10px;
    }
}

/* General Page Container for pages like Services, About, etc. */
.page-container {
    padding: 60px 5%;
    color: white;
    min-height: calc(100vh - 80px);
}

.page-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.page-subtitle {
    text-align: center;
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 50px auto;
    color: rgba(255, 255, 255, 0.85);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-description {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .page-title { font-size: 30px; }
    .page-subtitle { font-size: 16px; }
}

/* About Page Section */
.about-section {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 40px;
    border-radius: 15px;
}

.about-image {
    flex: 1;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-text {
    flex: 1.5;
}

.about-text h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        padding: 30px 20px;
    }
}

/* Contact Page Section */
.contact-section {
    display: flex;
    gap: 40px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 40px;
    border-radius: 15px;
}

.contact-form-container {
    flex: 2; /* Takes twice the space of the info container */
    min-width: 0; /* Allows the container to shrink if needed */
}

.contact-info-container {
    flex: 1;
    min-width: 280px; /* Ensures the info container has a minimum width */
    padding-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form-container h3,
.contact-info-container h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-family: 'Hind Siliguri', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.3);
}

.contact-form button {
    width: auto;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #3a7ac8;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 24px;
    margin-top: -3px;
}

@media (max-width: 900px) {
    .contact-section {
        flex-direction: column;
    }
    .contact-info-container {
        padding-left: 0;
        border-left: none;
        margin-top: 30px;
        padding-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}