@import "tailwindcss";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    /* height: 100%; */
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;
    /* padding-top: 102px; */
}

/* Header */
.top-bar {
    /* background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); */
    background: #2a5298;
    color: white;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.college-branding {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.college-name-en {
    /* font-size: 1.5rem; */
    font-size: 2.2rem;
    /* font-weight: 700; */
    /* margin-bottom: 5px; */
    letter-spacing: 1px;
}

.college-name-hi {
    font-size: 1.1rem;
    /* margin-bottom: 5px; */
    opacity: 0.95;
}

.college-motto {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.9;
    /* margin-top: 5px; */
}

.vpm-logo {
    text-decoration: none;
    /* margin-right: 10px; */
    float: right;
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: sticky;
    /* position: fixed; */
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    /* justify-content: space-between; */
    justify-content: right;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    box-shadow: 0 3px 10px rgba(30,60,114,0.3);
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 2px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 25px 10px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: #1e3c72;
    background: rgba(30,60,114,0.05);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    /* padding: 10px 0; */
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu a {
    display: block;
    padding: 12px 25px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.mega-menu a:hover {
    background: rgba(30,60,114,0.08);
    color: #1e3c72;
    padding-left: 30px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #1e3c72;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Latest Information Banner */
.info-banner {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    /* padding: 15px 0; */
    padding: 10px 0 15px; /* Adjusted for fixed nav */
    border-bottom: 3px solid #1e3c72;
}

.info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.info-label {
    background: #1e3c72;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.info-items {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    flex: 1;
}

.info-item {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.info-item:hover {
    color: #1e3c72;
    background: rgba(30,60,114,0.08);
}

/* Hero Section */
.hero {
    /* background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%); */
    background-image: url("../images/hero_image_4.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    /* padding: 100px 20px; */
    padding: 50px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect fill="rgba(255,255,255,0.03)" width="100" height="100"/><path d="M50 0 L100 50 L50 100 L0 50 Z" fill="rgba(255,255,255,0.02)"/></svg>'); */
    /* background-image: url("file:///E:/My%20Computer/Websites/VPMTMCLC/website_version_2/images/hero_image.png"); */
    background-size: 100px 100px;
    opacity: 0.5;
}

.hero-content {
    /* max-width: 900px; */
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #1e3c72;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background: #f8f9fa;
}

/* About Section */
.about {
    padding: 80px 20px;
    background: white;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '⚖️';
    font-size: 8rem;
    opacity: 0.3;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 25px;
    font-weight: 700;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 20px;
}

/* Features Section */
.features {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1e3c72;
    margin-bottom: 40px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #1e3c72;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: #1e3c72;
    margin-bottom: 15px;
    font-weight: 700;
}

.feature-card p {
    color: #6c757d;
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    padding: 40px 20px;
    background: white;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    height: 250px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    /* opacity: 0.7; */
}

.gallery-item p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: #495057;
    opacity: 0.9;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Testimonials */
.testimonials {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-top: 40px;
}

.testimonial-card {
    background: rgba(255,255,255,0.1);
    padding: 10px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.testimonial-image {
    width: 200px;
    height: 200px;
}

.testimonial-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-5px);
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    /* font-weight: 700; */
    font-size: 1.1rem;
    text-align: center;
}

.testimonial-role {
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background: white;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 3px rgba(30,60,114,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 5px 15px rgba(30,60,114,0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30,60,114,0.4);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 40px;
    color: #adb5bd;
    padding: 0 40px;
}

.footer-section{
    /* padding-left: 40px; */
    /* font-size: small; */
}
.footer-section h3 {
    color: #1e3c72;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    /* text-align: center; */
    text-align: left;
    padding-top: 30px;
    border-top: 1px solid #343a40;
    color: #adb5bd;
    max-width: 1200px;
    margin: 0 auto;
}



/******* Sub Menu Styles *******/
/* Sub-menu within Mega Menu */
.mega-menu-item {
    position: relative;
}

.mega-menu-item > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mega-menu-item > a::after {
    content: '›';
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.mega-menu-item:hover > a::after {
    transform: translateX(3px);
}

.sub-menu {
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mega-menu-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-menu a {
    display: block;
    padding: 12px 25px;
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.sub-menu a:hover {
    background: rgba(30,60,114,0.08);
    color: #1e3c72;
    padding-left: 30px;
    border-left-color: #1e3c72;
}

/******* End of Sub Menu Styles *******/

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

.fade-in {
    animation: fadeInUp 0.8s ease;
    /* flex-direction: column; */
}


.marquee-container {
  overflow: hidden; /* Hides the extra content outside the view */
  white-space: nowrap; /* Prevents text from wrapping to a new line */
  width: 100%;
  box-sizing: border-box;
}

.marquee-content {
  display: inline-block; /* Aligns content horizontally */
  animation: marquee 30s linear infinite; /* Adjust duration to control speed */
}

.marquee-content img {
  vertical-align: middle; /* Aligns images with text */
  margin-right: 15px; /* Space between image and text */
  height: 120px; /* Adjust image height as needed */
  width: 100px; /* Adjust image width as needed */
}

@keyframes marquee {
  0% {
    transform: translateX(0); /* Start position */
  }
  100% {
    transform: translateX(-100%); /* End position: moves the full width of the original content off-screen */
  }
}

/* Optional: Pause animation on hover */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}



/* Responsive Design */
@media (max-width: 968px) {
    .mobile-toggle {
        display: flex;
    }

    .vpm-logo {
        display: none;
    }

    .college-name-en {
        line-height: 1.2;
    }

    .college-name-hi {
        font-size: x-small;
    }

    .college-motto {
        font-size: x-small;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
        max-height: 0;
        overflow-x: hidden;
        overflow-y: scroll;
        transition: max-height 0.3s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        max-height: 900px;
        overflow-x: hidden;
        overflow-y: scroll;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #e9ecef;
    }

    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item:hover .mega-menu {
        max-height: 800px;
    }

    .hero {
        /* padding: 80px 20px; */
        background-image: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .college-name-en {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .info-container {
        flex-direction: column;
        align-items: flex-start;
    }

    /***** Sub Menu Responsive Fix *****/
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #e9ecef;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-left: 20px;
    }

    .mega-menu-item:hover .sub-menu {
        max-height: 500px;
    }

    .mega-menu-item > a::after {
        content: '▼';
        font-size: 0.8rem;
    }

    .mega-menu-item:hover > a::after {
        transform: rotate(180deg);
    }

    .sub-menu a {
        padding-left: 30px;
        font-size: 0.85rem;
    }

    .sub-menu a:hover {
        padding-left: 35px;
    }
    /***** End of Sub Menu Responsive Fix *****/
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .about, .features, .gallery, .testimonials, .contact {
        padding: 50px 20px;
    }

    .contact-form {
        padding: 25px;
    }

    .features-grid, .gallery-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
}

@view-transition { navigation: auto; }
