* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: #0d0704;
    color: #fff;
}

/* Sparkle Animation */
.sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.sparkles::before,
.sparkles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #d4af37;
    border-radius: 50%;
    box-shadow: 
        20vw 10vh 1px #d4af37,
        40vw 20vh 1px #f4e4a6,
        60vw 30vh 1px #d4af37,
        10vw 50vh 1px #f4e4a6,
        80vw 15vh 1px #d4af37,
        30vw 60vh 1px #d4af37,
        70vw 70vh 1px #f4e4a6,
        50vw 80vh 1px #d4af37,
        90vw 40vh 1px #f4e4a6,
        25vw 90vh 1px #d4af37,
        15vw 25vh 1px #d4af37,
        85vw 85vh 1px #f4e4a6,
        45vw 45vh 1px #d4af37,
        75vw 55vh 1px #d4af37,
        35vw 75vh 1px #f4e4a6;
    animation: sparkle 12s linear infinite;
}

.sparkles::after {
    animation-delay: 6s;
}

@keyframes sparkle {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    25% { opacity: 0.4; transform: translateY(-20vh) scale(1); }
    50% { opacity: 0.6; transform: translateY(-40vh) scale(1); }
    75% { opacity: 0.4; transform: translateY(-60vh) scale(1); }
    100% { opacity: 0; transform: translateY(-80vh) scale(0); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a0f08 0%, #0d0704 50%, #000000 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    animation: glow 8s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10px, 10px); }
}

.logo-container {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

/* TO ADD YOUR LOGO: Save your logo as 'your-logo.png' in same folder as HTML file */
.logo-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 3px solid #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    object-fit: cover;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.library-name {
    text-align: center;
    z-index: 2;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease 0.3s backwards;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.library-name .study-text {
    font-size: 56px;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    letter-spacing: 12px;
    line-height: 1;
}

.library-name .library-text {
    font-size: 32px;
    font-weight: 300;
    color: #f4e4a6;
    letter-spacing: 18px;
    line-height: 1;
}

.quote-container {
    max-width: 700px;
    text-align: center;
    z-index: 2;
    padding: 25px 35px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(139, 87, 42, 0.08));
    border-left: 4px solid #d4af37;
    border-right: 4px solid #d4af37;
    margin: 20px 0;
    animation: fadeIn 1s ease 0.6s backwards;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.quote-text {
    font-size: 20px;
    font-style: italic;
    color: #f4e4a6;
    margin-bottom: 12px;
    line-height: 1.6;
}

.quote-author {
    font-size: 16px;
    color: #d4af37;
    font-weight: bold;
}

.address-container {
    text-align: center;
    z-index: 10;
    margin-top: 40px;
    margin-bottom: 80px;
    animation: fadeInUp 1s ease 0.9s backwards;
    position: relative;
}

.address {
    font-size: 18px;
    color: #f4e4a6;
    margin-bottom: 20px;
    line-height: 1.8;
    max-width: 600px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.map-link,
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #d4af37, #f4e4a6);
    color: #000;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.map-link::before,
.contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.map-link:hover::before,
.contact-btn:hover::before {
    width: 300px;
    height: 300px;
}

.map-link:hover,
.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.location-icon {
    font-size: 20px;
    filter: drop-shadow(0 0 3px rgba(0,0,0,0.3));
}

.scroll-indicator {
    position: absolute;
    bottom: 80px;
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 36px;
    color: #d4af37;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Welcome Section */
.welcome {
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #0d0704 50%, #1a0f08 100%);
    padding: 80px 20px;
    position: relative;
}

.welcome-content {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 42px;
    text-align: center;
    color: #d4af37;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.tagline {
    text-align: center;
    font-size: 20px;
    color: #f4e4a6;
    margin-bottom: 60px;
    font-weight: 300;
}

.services-heading {
    font-size: 32px;
    text-align: center;
    color: #d4af37;
    margin-bottom: 40px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.service-card {
    background: linear-gradient(135deg, rgba(26, 15, 8, 0.9), rgba(13, 7, 4, 0.95));
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 25px 20px;
    text-align: left;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(26, 15, 8, 0.95));
    border-color: #f4e4a6;
}

.service-number {
    font-size: 28px;
    font-weight: bold;
    color: #d4af37;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.service-card h4 {
    font-size: 18px;
    color: #f4e4a6;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}

.timings-box {
    background: linear-gradient(135deg, #d4af37, #f4e4a6);
    color: #000;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.timings-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.timings-box h3 {
    font-size: 28px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.timings-box p {
    font-size: 18px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Gallery Section */
.gallery {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a0f08 0%, #0d0704 50%, #000000 100%);
    padding: 80px 20px;
    position: relative;
}

.gallery-grid {
    max-width: 1200px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    border-color: #d4af37;
}

/* TO ADD PHOTOS: Use <img> tags with your image paths */
.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* Contact Footer */
.contact {
    background: linear-gradient(135deg, #0d0704, #000000);
    padding: 60px 20px 30px;
    text-align: center;
    border-top: 3px solid #d4af37;
    box-shadow: 0 -5px 20px rgba(212, 175, 55, 0.1);
}

.contact h3 {
    font-size: 36px;
    color: #d4af37;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.contact-info {
    margin-bottom: 30px;
}

.contact-item {
    font-size: 18px;
    color: #f4e4a6;
    margin: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-label {
    color: #d4af37;
    font-weight: bold;
}

.contact-item a {
    color: #f4e4a6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #d4af37;
}

.copyright {
    font-size: 14px;
    color: #8b572a;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(139, 87, 42, 0.3);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .library-name .study-text {
        font-size: 38px;
        letter-spacing: 8px;
    }
    
    .library-name .library-text {
        font-size: 24px;
        letter-spacing: 12px;
    }
    
    .logo-image {
        width: 110px;
        height: 110px;
    }
    
    .address-container {
        margin-bottom: 100px;
    }
    
    .scroll-indicator {
        bottom: 100px;
    }
    
    .quote-text {
        font-size: 16px;
    }
    
    .quote-author {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .services-heading {
        font-size: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 20px 15px;
        flex-direction: row;
        gap: 10px;
    }
    
    .service-number {
        font-size: 24px;
    }
    
    .service-card h4 {
        font-size: 16px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .timings-box h3 {
        font-size: 22px;
    }
    
    .timings-box p {
        font-size: 16px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .map-link,
    .contact-btn {
        width: 100%;
        max-width: 250px;
    }
}