/* Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #e8f4f8;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(26, 74, 115, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 168, 0.03) 0%, transparent 50%);
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Container */
.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
}

/* Navbar */
.navbar {
    background: #ffffff;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 15px rgba(26, 74, 115, 0.08);
    border-bottom: 1px solid rgba(26, 74, 115, 0.1);
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    height: 65px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563a8;
    transition: width 0.3s ease;
}

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

nav a.active,
nav a:hover {
    color: #2563a8;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1e5a8a 0%, #2563a8 50%, #2d7bc8 100%);
    color: white;
    text-align: center;
    padding: 60px 20px;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    position: relative;
    box-shadow: 0 4px 20px rgba(26, 74, 115, 0.15);
}

.hero.small-hero {
    padding: 50px 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.hero.small-hero h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero.small-hero p {
    font-size: 18px;
    opacity: 0.95;
}

.hero-fullwidth {
    padding: 0;
    border-radius: 0;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 90, 138, 0.88), rgba(37, 99, 168, 0.80));
    z-index: 1;
}

.hero-fullwidth .hero-content {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero .hero-content img {
    margin-bottom: 30px;
}

/* Animated Text */
.animated-text {
    display: inline-block;
    min-width: 200px;
    text-align: left;
    color: #ffffff;
    font-weight: 700;
    border-right: 3px solid #ffffff;
    padding-right: 10px;
    animation: blink 0.75s infinite;
}

@media (max-width: 768px) {
    .logo {
        height: 50px;
        max-width: 220px;
    }

    .navbar {
        padding: 14px 0;
        box-shadow: 0 2px 12px rgba(26, 74, 115, 0.1);
    }

    nav a {
        font-size: 14px;
        margin-left: 12px;
        font-weight: 600;
        color: #2c3e50;
    }

    nav a.active,
    nav a:hover {
        color: #2563a8;
    }

    .animated-text {
        min-width: 150px;
        display: block;
        margin-top: 10px;
    }
    
    .hero-fullwidth {
        min-height: 500px;
    }
    
    .hero-fullwidth .hero-content {
        padding: 60px 20px;
    }

    .hero.small-hero h1 {
        font-size: 28px;
    }

    .hero.small-hero p {
        font-size: 16px;
    }
}

@keyframes blink {
    0%, 50% { border-color: #ffffff; }
    51%, 100% { border-color: transparent; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-text.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.btn-primary {
    background: #ffffff;
    color: #1e5a8a;
    padding: 14px 32px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Sections */
.section {
    padding: 50px 0;
}

.section.gray {
    background: #f0f7fa;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(26, 74, 115, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(37, 99, 168, 0.02) 0%, transparent 50%);
}

.section-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.section-text {
    max-width: 750px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e0e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 74, 115, 0.06);
}

.feature-card h3 {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
}

.feature-card p {
    font-weight: normal;
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(26, 74, 115, 0.12);
    border-color: #2563a8;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a4a73 0%, #1e5a8a 100%);
    color: white;
    padding: 30px 0;
    margin-top: auto;
    width: 100%;
    box-shadow: 0 -2px 15px rgba(26, 74, 115, 0.1);
}

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

.footer-content div {
    margin-top: 10px;
}

.footer a {
    color: #aee0ff;
    margin: 0 8px;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Responsive */
@media(max-width: 768px) {
    .nav-content {
        flex-wrap: wrap;
    }

    .logo-link {
        margin-bottom: 10px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
        width: 100%;
    }
    
    nav a {
        display: inline-block;
        margin: 5px 8px;
        font-weight: 600;
    }
}

/* Login / Signup */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 70px 20px;
}

.login-box {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e0e8f0;
    box-shadow: 0 6px 25px rgba(26, 74, 115, 0.1);
}

.login-box h2 {
    margin-bottom: 10px;
}

.login-box form {
    margin-top: 20px;
}

.login-box label {
    display: block;
    font-size: 14px;
    margin-top: 15px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border-radius: 6px;
    border: 1px solid #cfd8e3;
    font-size: 15px;
}

.login-btn {
    width: 100%;
    text-align: center;
    margin-top: 25px;
    padding: 12px;
    font-size: 16px;
}

.small-text {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}
/* Modern Navbar */
.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    height: 3px;
    width: 28px;
    background: white;
    margin: 5px 0;
    border-radius: 4px;
    transition: 0.3s;
}

/* Mobile Nav */
@media(max-width: 820px) {
    .logo {
        height: 55px;
        max-width: 250px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: #ffffff;
        padding-top: 80px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        transition: 0.4s ease;
        padding-left: 20px;
        z-index: 999;
        box-shadow: -2px 0 15px rgba(26, 74, 115, 0.1);
    }

    nav a {
        font-size: 18px;
        color: #2c3e50;
    }

    .menu-icon {
        display: flex;
    }

    /* When active */
    nav.active {
        right: 0;
    }

    /* Animate hamburger to X */
    .menu-icon.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

    .menu-icon.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }
}

/* Signup Button Style */
.signup-btn {
    background: linear-gradient(135deg, #2563a8, #2d7bc8);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 168, 0.3);
}

.signup-btn:hover {
    background: linear-gradient(135deg, #2d7bc8, #3579d4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 168, 0.4);
    color: #ffffff;
}
/* Services Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid #e0e8f0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(26,74,115,0.07);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card img {
    width: 100%;
    height: 170px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card p {
    flex-grow: 1;
    font-size: 14px;
    color: #555;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #2563a8;
    box-shadow: 0 8px 25px rgba(26,74,115,0.15);
}
.contact-form {
    max-width: 650px;
    margin: auto;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #cfd8e3;
    font-size: 15px;
    margin-top: 8px;
}

@media(max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
}
.login-section, .signup-section {
    padding-bottom: 120px; /* gives space so footer stays below */
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border: 1px solid #e0e8f0;
    transition: 0.3s;
}

.service-card img {
    width: 100%;
    height: 170px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 15px;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.login-section {
    padding: 80px 20px;
    padding-bottom: 140px;  /* footer ke liye gap */
}


