/* ============================================
   PROFESSIONAL MICRO-ENGINEERING WEBSITE CSS
   ============================================ */

/* CSS Variables */
:root {
    --primary-blue: #0066CC;
    --dark-blue: #003D7A;
    --light-blue: #E6F0FF;
    --accent-orange: #FF6B35;
    --success-green: #00C896;
    --text-dark: #1A1A1A;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    margin: 0 auto;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
    border-radius: 2px;
    margin-top: 15px;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-blue) !important;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
    padding: 100px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: -2;
    animation: backgroundShift 15s ease infinite;
}

@keyframes backgroundShift {
    0%, 100% { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
    50% { background: linear-gradient(135deg, #764ba2 0%, #667eea 100%); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 102, 204, 0.7);
    z-index: -1;
    animation: fadeInOut 8s ease infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.85; }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: slideInDown 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    animation: slideInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.95;
    animation: slideInUp 1s ease 0.4s backwards;
}

.btn-primary {
    background: var(--accent-orange);
    border: none;
    color: var(--white);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background: darken(#FF6B35, 10%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
    color: var(--white);
}

.btn-light {
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-light:hover {
    background: var(--light-blue) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

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

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

/* ============================================
   ABOUT SECTION
   ============================================ */

#about {
    padding: 5rem 0;
}

.feature-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.feature-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    transition: all 0.3s ease;
}

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

.feature-card h5 {
    color: var(--text-dark);
    margin-top: 1rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   INSTITUTION CARDS
   ============================================ */

.institution-card {
    background: linear-gradient(135deg, var(--light-blue) 0%, rgba(255, 107, 53, 0.1) 100%);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-blue);
    height: 100%;
}

.institution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-orange);
}

.institution-icon {
    background: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.institution-card:hover .institution-icon {
    transform: scale(1.1);
}

/* ============================================
   PROGRAMS SECTION
   ============================================ */

.program-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.program-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.program-image-container {
    position: relative;
    height: auto;
    overflow: visible;
}

.program-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.program-card:hover .program-image {
    transform: scale(1.1);
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.status-badge.ongoing {
    background: #28a745;
    color: var(--white);
}

.status-badge.active {
    background: var(--primary-blue);
    color: var(--white);
}

.status-badge.upcoming {
    background: #ffc107;
    color: var(--text-dark);
}

.program-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-content h5 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.program-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0;
}

.topic-tag {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.topic-tag:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.program-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ============================================
   MSME CARDS
   ============================================ */

.msme-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    height: 100%;
}

.msme-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.msme-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-orange);
    color: var(--white);
    padding: 8px 15px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
}

.msme-image {
    position: relative;
    height: auto;
    overflow: visible;
}

.msme-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.msme-card:hover .msme-image img {
    transform: scale(1.1);
}

.msme-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.msme-content h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.msme-content p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   STATISTICS SECTION
   ============================================ */

.statistics-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,133.3C1248,128,1344,128,1392,128L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.5;
}

.stat-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.95;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-item {
    position: relative;
    height: auto;
    border-radius: 15px;
    overflow: visible;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.gallery-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 102, 204, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-text {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 5px solid var(--accent-orange);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    flex-grow: 1;
}

.testimonial-content p {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
}

.testimonial-rating {
    color: #FFB800;
    font-size: 0.9rem;
}

.testimonial-author {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bg-light);
}

.testimonial-author p {
    color: var(--text-dark);
    margin: 0;
}

.testimonial-author small {
    color: var(--accent-orange);
}

/* Swiper Customization */
.swiper {
    padding-bottom: 50px;
}

.swiper-pagination-bullet {
    background: var(--primary-blue);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--accent-orange);
    opacity: 1;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.contact-item p {
    margin: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
}

.form-control,
.form-select {
    border: 2px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
    background-color: var(--white);
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
    background-color: var(--white);
}

.form-label {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

/* Action Buttons */
.action-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--light-blue) 0%, rgba(255, 107, 53, 0.1) 100%);
    border-radius: 15px;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 2rem;
}

.action-button:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
    color: var(--white);
    transform: translateY(-10px);
    border-color: var(--accent-orange);
}

.action-button p {
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.footer-link {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0;
}

.footer-link:hover {
    color: var(--accent-orange);
}

.footer-social {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-social:hover {
    background: var(--accent-orange);
    transform: translateY(-3px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .section-title {
        font-size: 2rem;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        background: var(--white);
        padding: 1rem 0;
        margin-top: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        margin: 0;
    }

    .hero-section {
        height: auto;
        min-height: 80vh;
        padding: 80px 0;
    }

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

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

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

    .program-image-container,
    .gallery-item {
        height: 200px;
    }

    .action-button {
        width: 100px;
        height: 100px;
        font-size: 1.5rem;
    }

    .action-button p {
        font-size: 0.7rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

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

    .feature-card,
    .institution-card,
    .msme-card,
    .program-card {
        padding: 1.5rem 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .d-flex.gap-3 .btn {
        width: 100%;
    }

    .program-image-container,
    .msme-image,
    .gallery-item {
        height: 180px;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .contact-item {
        gap: 10px;
    }

    .social-links {
        gap: 10px;
    }

    .social-link,
    .footer-social {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-orange {
    color: var(--accent-orange) !important;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
}

.shadow-custom {
    box-shadow: var(--shadow-md);
}

.rounded-large {
    border-radius: 20px;
}
