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

:root {
    --bg-color: #f0f2f5;
    --text-color: #333;
    --card-bg: #fff;
    --header-bg: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
    --nav-hover-bg: #fff;
    --nav-hover-text: #2b5876;
}

.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --card-bg: #1e1e1e;
    --header-bg: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --nav-hover-bg: #4e4376;
    --nav-hover-text: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header & Navigation */
header {
    background: var(--header-bg);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 { font-size: 2.2rem; margin-bottom: 10px; letter-spacing: 1px; }

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}

nav ul li a:hover {
    background: var(--nav-hover-bg);
    color: var(--nav-hover-text);
}

.theme-btn {
    background: #ffb703;
    color: #121212;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

/* Main Content */
main {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    flex-grow: 1;
    width: 90%;
}

.hero-section { text-align: center; margin-bottom: 40px; }
.hero-section h2 { font-size: 2.5rem; color: #2b5876; margin-bottom: 15px; }
.dark-mode .hero-section h2 { color: #6fb1e4; }

/* Slideshow Container */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.mySlides { display: none; }
.mySlides img { width: 100%; height: 400px; object-fit: cover; border-radius: 12px; }
.fade { animation-name: fade; animation-duration: 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }
.prev, .next {
    cursor: pointer; position: absolute; top: 50%; width: auto; padding: 16px;
    margin-top: -22px; color: white; font-weight: bold; font-size: 18px;
    transition: 0.6s ease; border-radius: 0 3px 3px 0; user-select: none;
    background-color: rgba(0,0,0,0.4);
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.gallery-grid img { width: 100%; height: 250px; object-fit: cover; border-radius: 8px; transition: transform 0.3s; }
.gallery-grid img:hover { transform: scale(1.05); }

/* Buttons */
.btn {
    display: inline-block; padding: 12px 30px; background: #4e4376; color: #fff;
    text-decoration: none; border-radius: 25px; font-weight: 600; border: none; cursor: pointer; margin-top: 15px;
    transition: transform 0.3s;
}
.btn:hover { background: #2b5876; transform: translateY(-2px); }
.dark-mode .btn { background: #6fb1e4; color: #121212; }

/* Contact Form */
form { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
input, textarea { 
    width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; background: var(--bg-color); color: var(--text-color);
}
input:focus, textarea:focus { outline: none; border-color: #4e4376; }

/* Scroll Fade-In Animation */
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Floating Social Media Bar */
.social-bar {
    position: fixed; top: 50%; left: 10px; transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 15px; z-index: 100;
}
.social-bar a {
    background: var(--header-bg); color: white; width: 45px; height: 45px;
    display: flex; justify-content: center; align-items: center; border-radius: 50%;
    text-decoration: none; font-size: 1.2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background 0.3s;
}
.social-bar a:hover { transform: translateX(15px); background: #ffb703; color: #121212; }

/* Back to Top Button */
#backToTop {
    position: fixed; bottom: 30px; right: 30px; background: #ffb703; color: #121212;
    border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
    font-size: 1.5rem; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 100;
    opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
}
#backToTop.show { opacity: 1; pointer-events: auto; }
#backToTop:hover { transform: translateY(-5px); }

/* Typing Cursor Effect */
.typing-text::after { content: '|'; animation: blink 0.7s infinite; color: #ffb703; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

footer { text-align: center; padding: 20px; background: var(--header-bg); color: #fff; margin-top: auto; }

/* Responsive */
@media screen and (max-width: 768px) {
    .mySlides img { height: 250px; }
    .social-bar { display: none; /* Mobile par hide rakhein */ } 
}