@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* CSS Variables */
:root {
    --primary-color: #FFC107;
    --primary-dark: #FF8F00;
    --primary-light: #FFF9C4;
    --accent-color: #795548;
    --dark-color: #212121;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --gray: #757575;
    --gradient-1: linear-gradient(135deg, #FFC107 0%, #FF8F00 100%);
    --gradient-2: linear-gradient(135deg, #FF8F00 0%, #FFC107 100%);
    --shadow-light: 0 8px 25px rgba(255, 193, 7, 0.15);
    --shadow-medium: 0 15px 35px rgba(255, 193, 7, 0.2);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite linear;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    animation-delay: 0s;
}

.shape-2 {
    top: 70%;
    left: 80%;
    width: 40px;
    height: 40px;
    background: var(--gradient-2);
    border-radius: 50%;
    animation-delay: -5s;
}

.shape-3 {
    top: 20%;
    left: 60%;
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: -10s;
}

.shape-4 {
    top: 60%;
    left: 20%;
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    border-radius: 10px;
    animation-delay: -15s;
}

.shape-5 {
    top: 40%;
    left: 90%;
    width: 30px;
    height: 30px;
    background: var(--gradient-1);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation-delay: -7s;
}

.shape-6 {
    top: 80%;
    left: 50%;
    width: 70px;
    height: 70px;
    background: var(--gradient-2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: -12s;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, transparent 24%, rgba(255, 193, 7, 0.03) 25%, rgba(255, 193, 7, 0.03) 26%, transparent 27%, transparent 74%, rgba(255, 193, 7, 0.03) 75%, rgba(255, 193, 7, 0.03) 76%, transparent 77%, transparent),
        linear-gradient(0deg, transparent 24%, rgba(255, 193, 7, 0.03) 25%, rgba(255, 193, 7, 0.03) 26%, transparent 27%, transparent 74%, rgba(255, 193, 7, 0.03) 75%, rgba(255, 193, 7, 0.03) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

/* Navigation Bar */
.navbar {
    background: rgba(255, 255, 255);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    transform:scale(4.18);
    margin-left:1.5em;
}
/* 
.logo:hover .logo-image {
    transform: scale(3.0);
} */

.logo-icon {
    font-size: 32px;
    animation: bounce 2s infinite;
}

.logo:hover {
    transform: scale(0.918);
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 8px 0;
    transition: all 0.3s ease;
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1002;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--gradient-1);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Main Content */
.main-content {
    padding: 120px 0 80px;
    min-height: calc(100vh - 200px);
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.2s both;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient-1);
    border-radius: 3px;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    justify-items: center;
}

.module-card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 450px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease both;
}

.module-card:nth-child(1) { animation-delay: 0.1s; }
.module-card:nth-child(2) { animation-delay: 0.2s; }
.module-card:nth-child(3) { animation-delay: 0.3s; }
.module-card:nth-child(4) { animation-delay: 0.4s; }
.module-card:nth-child(5) { animation-delay: 0.5s; }
.module-card:nth-child(6) { animation-delay: 0.6s; }

.module-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.module-card:hover .module-glow {
    opacity: 1;
}

.module-card:hover .module-icon {
    transform: scale(1.1) rotate(5deg);
}

.module-card:hover .module-arrow {
    transform: translateX(10px);
    opacity: 1;
}

.module-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.module-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--dark-color);
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.module-content {
    flex: 1;
}

.module-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.module-description {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.module-arrow {
    font-size: 1.5rem;
    color: var(--primary-dark);
    opacity: 0.7;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

/* Back Section */
.back-section {
    text-align: center;
    margin-top: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--white);
    color: var(--primary-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-light);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    font-size: 16px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(-5px);
}

.back-btn {
    background: var(--primary-dark);
    color: var(--white);
}

.back-btn::before {
    background: var(--white);
}

.back-btn:hover {
    color: var(--primary-dark);
}

/* Footer */
footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

footer::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--light-color);
    transform: skewY(-2deg);
    transform-origin: top left;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about {
    flex: 1;
    min-width: 300px;
}

.footer-about h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.footer-about p {
    color: #bdc3c7;
    margin-bottom: 25px;
    line-height: 1.7;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-medium);
}

.quick-links, .connect-with-us {
    flex: 1;
    min-width: 200px;
}

.quick-links h3, .connect-with-us h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 600;
}

.quick-links ul, .connect-with-us ul {
    list-style: none;
}

.quick-links li, .connect-with-us li {
    margin-bottom: 12px;
}

.quick-links a, .connect-with-us a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.quick-links a:hover, .connect-with-us a:hover {
    color: var(--primary-color);
    transform: translateX(8px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 193, 7, 0.2);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .page-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: all 0.5s ease;
        z-index: 999;
        gap: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 18px;
        margin: 15px 0;
        padding: 15px 20px;
        width: 90%;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background: var(--primary-light);
        color: var(--primary-dark);
        transform: translateY(0);
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .main-content {
        padding: 110px 0 60px;
    }

    .page-header {
        margin-bottom: 60px;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .modules-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 50px;
    }

    .module-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .module-title {
        font-size: 1.2rem;
        margin-bottom: 8px;
    }

    .module-description {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .module-arrow {
        font-size: 1.2rem;
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    .footer-about h3 {
        font-size: 1.6rem;
    }

    .quick-links h3, .connect-with-us h3 {
        font-size: 1.3rem;
    }
}

/* Performance optimizations */
.shape,
.module-card,
.module-icon {
    will-change: transform;
}

/* Focus states for accessibility */
.btn:focus,
.nav-links a:focus,
.module-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Additional responsive improvements */
@media (max-width: 320px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .modules-grid {
        gap: 12px;
    }
    
    .module-card {
        padding: 18px 12px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

/* Smooth transitions for all interactive elements */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Ensure no horizontal scroll */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}card {
        max-width: 100%;
        padding: 25px 20px;
        flex-direction: row;
        text-align: left;
    }

    .module-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .module-title {
        font-size: 1.4rem;
    }

    .module-description {
        font-size: 0.95rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-about,
    .quick-links,
    .connect-with-us {
        min-width: auto;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

.navhelp {
    cursor: help;
}

/* @media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .navbar .container {
        padding: 15px 15px;
    }

    .logo {
        font-size: 24px;
    }

    .logo-icon {
        font-size: 28px;
    }

    .main-content {
        padding: 100px 0 40px;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .modules-grid {
        gap: 15px;
    }

    .module-card {
        padding: 20px 15px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
} */