* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f0f8ff, #e6f7ff);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Primary Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    height: 70px;
}

/* Site Logo & Name */
.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.logo i {
    font-size: 28px;
    color: #007bff;
    margin-right: 8px;
}

.nav-logo{
    height: 50px;
    width: 50px;
}
/* Primary Navigation Links */
.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

.nav-links a.active {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.3);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Secondary Navigation with Dropdowns */
.secondary-nav {
    background: linear-gradient(135deg, #4A90E2, #007AFF);
    padding: 0;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 60px;
    overflow: visible;
}

.secondary-nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.secondary-nav-links li {
    position: relative;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-toggle i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
    color: #007bff;
    padding-left: 25px;
}

/* Main Content */
.main-content {
    margin-top: 130px;
    padding: 0;
}

.hero-banner {
    display: flex;
    padding: 0px;
    justify-content: center;
}

.hero-banner img {
    height: auto;
    width: 100%;
    padding: 10px;
    box-shadow: rgba(3, 102, 214, 0.3) 0px 0px 0px 3px;
}

/* Cards Section */
.cards {
    display: flex;
    flex-direction: column;
    gap: 80px;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.cards h2 {
    font-size: 34px;
    color: purple;
    text-align: center;
}

.cards-block {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}
.card-container-a{
    text-decoration: none;
}
.card-container {
    position: relative;
    width: 220px;
    height: fit-content;
    min-height: 200px;
    background: #4A90E2;
    border-radius: 20px;
    box-shadow: 0px 4px 15px rgba(0, 0, 255, 0.3);
    text-align: left;
    color: white;
    padding: 20px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.card-header {
    position: absolute;
    top: -45px;
    right: -25px;
    background: white;
    color: #4A90E2;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 60px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0px 4px 8px rgba(0, 0, 255, 0.2);
    transform: scale(0);
    transition: transform 0.8s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    font-size: 28px;
    margin-top: 10px;
}

.card-description {
    font-size: 14px;
    margin-top: 30px;
    opacity: 0.9;
}

/* Animate on page load */
.loaded .card-container {
    opacity: 1;
    transform: translateY(0);
}

.loaded .card-header {
    transform: scale(1);
}

/* Animations */
@keyframes floatText {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatImage {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .navbar {
        padding: 20px 50px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .nav-links a {
        font-size: 18px;
        padding: 10px 16px;
    }
    
    .cards {
        gap: 100px;
        padding: 60px 40px;
    }
    
    .cards h2 {
        font-size: 42px;
    }
    
    .cards-block {
        gap: 40px;
    }
    
    .card-container {
        width: 250px;
        min-height: 220px;
    }
}

/* Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .navbar {
        padding: 15px 40px;
    }
    
    .cards {
        padding: 50px 30px;
    }
    
    .cards-block {
        max-width: 1000px;
    }
}

/* Tablet Landscape (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .navbar {
        padding: 15px 30px;
    }
    
    .secondary-nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dropdown-toggle {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .hero-banner img {
        height: 350px;
    }
    
    .cards {
        gap: 60px;
        padding: 40px 20px;
    }
    
    .cards h2 {
        font-size: 30px;
    }
    
    .cards-block {
        gap: 25px;
        max-width: 800px;
    }
    
    .card-container {
        width: 200px;
        min-height: 180px;
    }
    
    .card-header {
        width: 60px;
        height: 60px;
        font-size: 50px;
        top: -40px;
        right: -20px;
    }
    
    .card-content {
        font-size: 24px;
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .navbar {
        height: 60px;
        padding: 10px 20px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .secondary-nav {
        top: 60px;
        padding: 5px 0;
        max-height: none;
        position: relative;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .secondary-nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0;
    }
    
    .dropdown {
        position: relative;
        border-bottom: none;
    }
    
    .dropdown-toggle {
        padding: 10px 15px;
        justify-content: center;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 200px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        background: white;
        transform: translateY(-10px);
        margin-top: 0;
        padding: 10px 0;
    }
    
    .dropdown.active .dropdown-menu {
        transform: translateY(0);
    }
    
    .main-content {
        margin-top: 120px;
    }
    
    .hero-banner img {
        height: 300px;
        width: 100%;
        object-fit: cover;
    }
    
    .cards {
        gap: 50px;
        padding: 30px 15px;
    }
    
    .cards h2 {
        font-size: 28px;
    }
    
    .cards-block {
        gap: 20px;
        justify-content: center;
    }
    
    .card-container {
        width: 180px;
        min-height: 160px;
        padding: 18px;
    }
    
    .card-header {
        width: 55px;
        height: 55px;
        font-size: 45px;
        top: -35px;
        right: -18px;
    }
    
    .card-content {
        font-size: 22px;
    }
    
    .card-description {
        font-size: 13px;
        margin-top: 25px;
    }
}

/* Mobile Landscape (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .navbar {
        height: 55px;
        padding: 8px 15px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo i {
        font-size: 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        font-size: 20px;
    }
    
    .secondary-nav {
        top: 55px;
        padding: 5px 0;
        max-height: none;
        position: relative;
    }
    
    .secondary-nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0;
    }
    
    .dropdown {
        position: relative;
        border-bottom: none;
    }
    
    .dropdown-toggle {
        padding: 8px 12px;
        justify-content: center;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 180px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        background: white;
        transform: translateY(-10px);
        margin-top: 0;
        padding: 8px 0;
    }
    
    .dropdown.active .dropdown-menu {
        transform: translateY(0);
    }
    
    .dropdown-menu a {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .main-content {
        margin-top: 110px;
    }
    
    .hero-banner img {
        height: 250px;
        width: 100%;
        object-fit: cover;
    }
    
    .cards {
        gap: 40px;
        padding: 25px 10px;
    }
    
    .cards h2 {
        font-size: 24px;
    }
    
    .cards-block {
        gap: 15px;
        justify-content: center;
    }
    
    .card-container {
        width: 160px;
        min-height: 140px;
        padding: 15px;
    }
    
    .card-header {
        width: 50px;
        height: 50px;
        font-size: 40px;
        top: -30px;
        right: -15px;
    }
    
    .card-content {
        font-size: 20px;
    }
    
    .card-description {
        font-size: 12px;
        margin-top: 20px;
    }
}

/* Mobile Portrait (480px - 599px) */
@media (min-width: 480px) and (max-width: 599px) {
    .navbar {
        height: 50px;
        padding: 5px 10px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .logo i {
        font-size: 18px;
        margin-right: 5px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        font-size: 18px;
    }
    
    .secondary-nav {
        top: 50px;
        padding: 5px 0;
        max-height: none;
        position: relative;
    }
    
    .secondary-nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0;
    }
    
    .dropdown {
        position: relative;
        border-bottom: none;
    }
    
    .dropdown-toggle {
        padding: 6px 8px;
        justify-content: center;
        font-size: 11px;
        white-space: nowrap;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 160px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        background: white;
        transform: translateY(-10px);
        margin-top: 0;
        padding: 6px 0;
    }
    
    .dropdown.active .dropdown-menu {
        transform: translateY(0);
    }
    
    .dropdown-menu a {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .main-content {
        margin-top: 100px;
    }
    
    .hero-banner img {
        height: 200px;
        width: 100%;
        object-fit: cover;
    }
    
    .cards {
        gap: 30px;
        padding: 20px 8px;
    }
    
    .cards h2 {
        font-size: 22px;
    }
    
    .cards-block {
        gap: 12px;
        justify-content: center;
    }
    
    .card-container {
        width: 140px;
        min-height: 120px;
        padding: 12px;
    }
    
    .card-header {
        width: 45px;
        height: 45px;
        font-size: 35px;
        top: -25px;
        right: -12px;
    }
    
    .card-content {
        font-size: 18px;
    }
    
    .card-description {
        font-size: 11px;
        margin-top: 15px;
    }
}

/* Small Mobile (320px - 479px) */
@media (max-width: 479px) {
    .navbar {
        height: 45px;
        padding: 5px 8px;
    }
    
    .logo {
        font-size: 14px;
    }
    
    .logo i {
        font-size: 16px;
        margin-right: 4px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        font-size: 16px;
    }
    
    .secondary-nav {
        top: 45px;
        padding: 3px 0;
        max-height: none;
        position: relative;
    }
    
    .secondary-nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 0;
    }
    
    .dropdown {
        position: relative;
        border-bottom: none;
    }
    
    .dropdown-toggle {
        padding: 5px 6px;
        justify-content: center;
        font-size: 10px;
        white-space: nowrap;
    }
    
    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 140px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
        background: white;
        transform: translateY(-10px);
        margin-top: 0;
        padding: 5px 0;
    }
    
    .dropdown.active .dropdown-menu {
        transform: translateY(0);
    }
    
    .dropdown-menu a {
        padding: 4px 6px;
        font-size: 10px;
    }
    
    .main-content {
        margin-top: 90px;
    }
    
    .hero-banner img {
        height: 150px;
        width: 100%;
        object-fit: cover;
    }
    
    .cards {
        gap: 25px;
        padding: 15px 5px;
    }
    
    .cards h2 {
        font-size: 20px;
    }
    
    .cards-block {
        gap: 10px;
        justify-content: center;
    }
    
    .card-container {
        width: 120px;
        min-height: 100px;
        padding: 10px;
    }
    
    .card-header {
        width: 40px;
        height: 40px;
        font-size: 30px;
        top: -20px;
        right: -10px;
    }
    
    .card-content {
        font-size: 16px;
    }
    
    .card-description {
        font-size: 10px;
        margin-top: 12px;
    }
}

/* Orientation Change Support */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-banner img {
        height: 150px;
    }
    
    .cards {
        gap: 20px;
        padding: 15px 10px;
    }
    
    .card-container {
        min-height: 100px;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-banner img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card-container {
        transform: none !important;
        opacity: 1 !important;
    }
    
    .card-header {
        transform: scale(1) !important;
    }
}