/* Base Styles - Miss & Mrs Fabb India */
:root {
    /* Primary color palette based on the logo */
    --primary: #9c2a7b; /* Purple/Magenta from logo */
    --primary-light: #d252a8;
    --primary-dark: #7a1d5c;
    --secondary: #2a2a2a; /* Dark gray for text */
    --accent: #f1c9e3; /* Light pink/purple */
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    
    /* Typography */
    --heading-font: 'Playfair Display', Georgia, serif;
    --body-font: 'Nunito Sans', Arial, sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --section-spacing: 5rem;
    --element-spacing: 2rem;
    --border-radius: 5px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Web Font Loading - Load only essential fonts for better performance */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap; /* Improves loading performance */
    src: local('Playfair Display Bold'), 
         url('/fonts/playfair-display-bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Nunito Sans Regular'), 
         url('/fonts/nunito-sans-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Nunito Sans SemiBold'), 
         url('/fonts/nunito-sans-semibold.woff2') format('woff2');
}

/* Default Element Styles */
html {
    font-size: 62.5%; /* For easier rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    width: 8rem;
    height: 3px;
    background-color: var(--primary);
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.4rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.center-btn {
    text-align: center;
    margin-top: 3rem;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo img {
    max-height: 6rem;
    transition: var(--transition);
}

/* Navigation */
.menu {
    display: flex;
}

.menu li {
    position: relative;
    margin-left: 2rem;
}

.menu a {
    color: var(--dark-gray);
    font-weight: 600;
    padding: 1rem;
    display: block;
    transition: var(--transition);
}

.menu a:hover {
    color: var(--primary);
}

.has-submenu > a::after {
    content: '▼';
    font-size: 0.8rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 20rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

.submenu li {
    margin: 0;
}

.submenu a {
    padding: 1rem 1.5rem;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-gray);
    transition: var(--transition);
}

/* Main Content Spacing */
main {
    padding-top: 4rem; /* Accommodate fixed header */
}

section {
    padding: var(--section-spacing) 0;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    overflow: hidden;
    /*margin-top: -8rem; */
}

.slider-container {
    position: relative;
    height: 60vh;
    min-height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    z-index: 0; /* Base z-index */
}

.slide:first-child {
    opacity: 1;
    z-index: 1; /* First slide initially visible */
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    max-width: 60%;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 4.8rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-align: left;
}

.slide-content h2::after {
    display: none;
}

.slide-content p {
    font-size: 2.4rem;
    margin-bottom: 2rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10; /* Add this to ensure buttons appear above slides */
    display: flex; /* Add these for better centering of the arrow characters */
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.slider-btn.prev {
    left: 2rem;
}

.slider-btn.next {
    right: 2rem;
}

.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--white);
}

/* Registration Banner */
.registration-banner {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.registration-banner h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
}

.registration-banner .btn {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.registration-banner .btn:hover {
    background-color: transparent;
    color: var(--white);
}

/* About Section */
.about-section {
    background-color: var(--light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    text-align: left;
}

.about-text h2::after {
    left: 0;
    transform: none;
}

.about-images {
    flex: 1;
    position: relative;
}

.image-container {
    position: relative;
    height: 40rem;
}

.image-container img:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 70%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.image-container img:last-child {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60%;
    height: 60%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Guests Section */
.guests-section {
    background-color: var(--white);
    overflow: hidden;
}

.guests-slider {
    display: flex;
    gap: 2rem;
    margin: 0 -1rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth;
    padding-bottom: 2rem;
}

.guests-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.guest-card {
    flex: 0 0 25%;
    min-width: 25rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    padding: 1.5rem;
}

.guest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.guest-image {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.guest-image img {
    width: 100%;
    height: 35rem;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.social-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.guest-image:hover .social-links {
    opacity: 1;
}

.social-links a {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--white);
    color: var(--primary);
}

.guest-card h3 {
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.guest-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.slider-arrow {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* Events Section */
.events-section {
    background-color: var(--light-gray);
}

.events-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-row {
    display: flex;
    gap: 2rem;
}

.event-card {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    background-color: var(--white);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.event-card img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.event-card h3 {
    padding: 1.5rem;
    font-size: 1.8rem;
    text-align: center;
}

/* Accomplishments Section */
.accomplishments-section {
    background-color: var(--white);
}

.accomplishment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.accomplishment-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.accomplishment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.accomplishment-card img {
    width: 100%;
    height: 25rem;
    object-fit: cover;
}

.accomplishment-card h3 {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

/* Video Section */
.video-section {
    background-color: var(--light-gray);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.video-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card h3 {
    padding: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
}

/* Sponsors Section */
.sponsors-section {
    background-color: var(--white);
    padding-bottom: calc(var(--section-spacing) * 0.7);
}

.sponsor-slider {
    overflow: hidden;
    margin: 0 -1rem;
}

.sponsor-track {
    display: flex;
    animation: scrollSponsors 20s linear infinite;
}

.sponsor {
    flex: 0 0 16.666%;
    min-width: 16.666%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor img {
    max-width: 100%;
    max-height: 8rem;
    opacity: 1;
    transition: var(--transition);
}

.sponsor:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scrollSponsors {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Footer */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 5rem;
    height: 2px;
    background-color: var(--primary);
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section ul li a {
    color: var(--medium-gray);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
    padding-left: 0.5rem;
}

.footer-section.contact p {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-section.contact i {
    margin-right: 1rem;
    color: var(--primary-light);
    font-size: 1.8rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
}

.copyright {
    background-color: var(--secondary);
    padding: 2rem 0;
    margin-top: 5rem;
    text-align: center;
}

/* SVG Icons */
[class^="icon-"] {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

/* Use SVG Background for better performance */
.icon-facebook {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'%3E%3C/path%3E%3C/svg%3E") no-repeat center center;
}

/* Animation for Page Load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Media Queries */
@media (max-width: 1200px) {
    .accomplishment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    html {
        font-size: 56.25%; /* 9px */
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-images {
        width: 100%;
    }
    
    .event-row {
        flex-direction: column;
    }
    
    .guest-card {
        flex: 0 0 33.333%;
        min-width: 30rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%; /* 8px */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .menu {
        position: fixed;
        top: 8rem;
        left: 0;
        width: 100%;
        height: calc(100vh - 8rem);
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;
        padding: 3rem 0;
        transform: translateX(100%);
        transition: var(--transition);
        overflow-y: auto;
    }
    
    .menu.active {
        transform: translateX(0);
    }
    
    .menu li {
        margin: 0;
    }
    
    .submenu {
        position: static;
        min-width: auto;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    
    .submenu.active {
        display: block;
    }
    
    .has-submenu > a::after {
        content: '+';
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .accomplishment-grid {
        grid-template-columns: 1fr;
    }
    
    .guest-card {
        flex: 0 0 50%;
        min-width: 28rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .slide-content {
        left: 5%;
        max-width: 90%;
    }
    
    .slide-content h2 {
        font-size: 3.6rem;
    }
    
    .slide-content p {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .guest-card {
        flex: 0 0 100%;
        min-width: 20rem;
    }
    
    .slider-container {
        height: 50vh;
        min-height: 400px;
    }
    
    .slider-btn {
        width: 4rem;
        height: 4rem;
        font-size: 1.6rem;
    }
    
    .sponsor {
        flex: 0 0 50%;
        min-width: 50%;
    }
}

/* Performance optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.lazy-load.loaded {
    opacity: 1;
}

/* Prevent content jumps when images load */
[data-aspect-ratio] {
    position: relative;
    height: 0;
    overflow: hidden;
}
[data-aspect-ratio="16:9"] {
    padding-bottom: 56.25%;
}
[data-aspect-ratio="1:1"] {
    padding-bottom: 100%;
}
[data-aspect-ratio] > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Print styles */
@media print {
    header, footer, .slider-btn, .slider-dots, .social-links {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    main {
        padding-top: 0;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    h2::after {
        display: none;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    section {
        padding: 1cm 0;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
    
    .hero-slider, .registration-banner {
        display: none;
    }
}





/* Mobile Image Scaling Fixes */

/* Guest Section Image Fixes */
@media (max-width: 768px) {
    .guest-image img {
        height: auto;
        max-height: 35rem;
        width: 100%;
        object-fit: contain;
    }
    
    /* Adjust guest card for better mobile display */
    .guest-card {
        padding: 1rem;
    }
}

/* Past Events Section Image Fixes */
@media (max-width: 768px) {
    .event-card img {
        height: auto;
        max-height: 20rem;
        width: 100%;
        object-fit: contain;
    }
}

/* Accomplishments Section Image Fixes */
@media (max-width: 768px) {
    .accomplishment-card img {
        height: auto;
        max-height: 25rem;
        width: 100%;
        object-fit: contain;
    }
}

/* Additional fixes for smallest screens */
@media (max-width: 576px) {
    /* Ensure cards take full width */
    .guest-card, .event-card, .accomplishment-card {
        width: 100%;
    }
    
    /* Universal image sizing for all section cards */
    .guest-image img, .event-card img, .accomplishment-card img {
        height: auto;
        width: 100%;
        object-fit: contain;
        max-height: none; /* Remove fixed height constraints */
    }
    
    /* Add some margin between stacked cards */
    .event-card, .accomplishment-card {
        margin-bottom: 2rem;
    }
    
    /* Adjust aspect ratio to prevent awkward spaces */
    [data-aspect-ratio] {
        padding-bottom: 75%; /* 4:3 aspect ratio - better for mobile */
    }
}

/* Optional: Add smooth image transitions when resizing */
.guest-image img, .event-card img, .accomplishment-card img {
    transition: height 0.3s ease, object-fit 0.3s ease;
}



/* Fix to position slider below the header */

/* Remove negative margin that was placing slider behind header */
.hero-slider {
    position: relative;
    overflow: hidden;
    /*margin-top: 0;*/
    /*z-index: 1000;*/
}

/* Adjust main content padding - we'll handle this in the slider itself */
main {
    padding-top: 4rem; /* Slightly increased to ensure content starts below header */
}

/* Adjust slider height to compensate */
.slider-container {
    position: relative;
    height: 55vh; /* Slightly reduced from 60vh */
    min-height: 450px; /* Slightly reduced from 500px */
    z-index: 1000;
}

/* Make sure the slide content is properly positioned */
.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    max-width: 60%;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1010; /* Ensure text is above the slider image */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero-slider {
        /*margin-top: 0;*/
    }
    
    main {
        padding-top: 4rem;
    }
    
    .slider-container {
        height: 45vh;
        min-height: 350px;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 40vh;
        min-height: 300px;
    }
}


























