/* ========================================= */
/* == BASE & DESKTOP STYLES (FINAL) == */
/* ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: #0a0a0a;
    overflow-x: hidden;
}

.container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e, #8E2DE2, #4A00E0);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    flex-direction: column;
    padding: 2rem 5%;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Header & Navigation --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 100;
}

header .logo a {
    text-decoration: none;
}

header .logo h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #f7b733, #fc4a1a, #8E2DE2, #4A00E0);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientBG 15s ease infinite;
    transition: transform 0.3s ease;
}
header .logo h1:hover {
    transform: scale(1.05);
}

.desktop-nav ul {
    list-style: none;
    display: flex;
}
.desktop-nav ul li {
    margin-left: 35px;
}
.desktop-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
}
.desktop-nav ul li a.active, .desktop-nav ul li a:hover {
    color: #f7b733;
}
.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #f7b733;
    transition: width 0.4s ease;
}
.desktop-nav ul li a:hover::after, .desktop-nav ul li a.active::after {
    width: 100%;
}

/* --- Main Content Sections --- */
main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

/* Home Page */
#home {
    text-align: center;
}
.intro-text h2 {
    font-size: 4rem;
    font-weight: 700;
}
.intro-text p {
    font-size: 1.5rem;
    margin: 1rem 0 2rem;
}
.typing-effect {
    color: #f7b733;
    font-weight: 600;
}
.btn-about {
    display: inline-block;
    background: linear-gradient(to right, #f7b733, #fc4a1a);
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-about:hover {
    transform: translateY(-5px);
}

/* About & Socials & Contact Page Layout */
.about-layout, .contact-main {
    flex-grow: 1;
    display: flex;
    gap: 20px;
    width: 100%;
    overflow: hidden;
}
#about-sidebar, #social-sidebar {
    flex: 0 0 280px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    overflow-y: auto;
}
#about-sidebar a, #social-sidebar a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    text-decoration: none;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s;
}
#social-sidebar a i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}
#about-sidebar a:hover, #social-sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
#about-sidebar a.active, #social-sidebar a.active {
    background: linear-gradient(to right, #f7b733, #fc4a1a);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#about-content, #social-content {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.content-section {
    display: none;
    flex-grow: 1;
}
.content-section.active {
    display: flex;
    flex-direction: column;
    height: 100%; /* << बस यह लाइन जोड़ें */
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#about-content h2 {
    font-size: 2.2rem;
    color: #f7b733;
    margin-bottom: 1rem;
}
#about-content p {
    font-size: 1rem;
    line-height: 1.8;
}
.embed-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
}
.embed-container iframe {
    max-width: 100%;
}
.btn-visit {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: auto;
    padding: 15px;
    border-radius: 8px;
    background: linear-gradient(to right, #f7b733, #fc4a1a);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Contact Page Specifics */
.contact-container {
    display: flex;
    width: 100%;
    gap: 20px;
}
.contact-info, .contact-form {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 40px;
}
.contact-info { flex: 1; }
.contact-form { flex: 1.5; }
.contact-info h2 { color: #f7b733; margin-bottom: 1rem; }
.contact-info p { margin-bottom: 1.5rem; }
.info-item { display: flex; align-items: center; margin-bottom: 1rem; }
.info-item i { color: #f7b733; margin-right: 15px; }
.social-links { margin-top: 1.5rem; }
.social-links a { color: #fff; font-size: 1.5rem; margin-right: 20px; }
.social-links a:hover { color: #f7b733; }
.input-group { position: relative; margin-bottom: 35px; }
.input-group input, .input-group textarea { width: 100%; padding: 10px 0; background: none; border: none; border-bottom: 2px solid rgba(255, 255, 255, 0.5); color: #fff; font-size: 1rem; outline: none; }
.input-group label { position: absolute; top: 10px; left: 0; color: rgba(255, 255, 255, 0.7); transition: all 0.3s ease; pointer-events: none; }
.input-group input:focus + label, .input-group input:valid + label, .input-group textarea:focus + label, .input-group textarea:valid + label { top: -15px; font-size: 0.8rem; color: #f7b733; }
.btn-submit { width: 100%; padding: 15px; border: none; border-radius: 8px; background: linear-gradient(to right, #f7b733, #fc4a1a); color: #fff; font-weight: 600; cursor: pointer; }


/* --- Footer --- */
footer {
    text-align: center;
    padding: 1rem 0 0;
    width: 100%;
    font-size: 0.9rem;
}


/* ========================================= */
/* == MOBILE & RESPONSIVE STYLES == */
/* ========================================= */

.hamburger, .mobile-nav {
    display: none;
}

@media (max-width: 850px) {
    .container {
        padding: 1.5rem 5%;
    }
    
    /* --- Mobile Navigation --- */
    .desktop-nav { display: none; }
    .hamburger { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 24px; background: transparent; border: none; cursor: pointer; z-index: 101; }
    .hamburger-line { width: 30px; height: 3px; background-color: #fff; border-radius: 3px; transition: all 0.3s ease-in-out; }
    .hamburger.active .hamburger-line:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
    .hamburger.active .hamburger-line:nth-child(2) { opacity: 0; }
    .hamburger.active .hamburger-line:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }
    .mobile-nav { position: fixed; top: 0; left: 100%; width: 100%; height: 100%; background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center; align-items: center; transition: left 0.4s ease-in-out; z-index: 100; }
    .mobile-nav.active { left: 0; }
    .mobile-nav a { color: #fff; text-decoration: none; font-size: 2rem; margin: 20px 0; }

    /* --- Font Size Adjustments --- */
    header .logo h1 { font-size: 1.8rem; }
    .intro-text h2 { font-size: 2.5rem; }
    .intro-text p { font-size: 1.1rem; }
    #about-content h2 { font-size: 1.8rem; }
    #about-content p { font-size: 0.95rem; }

    /* --- Layout Adjustments --- */
    .about-layout, .contact-container {
        flex-direction: column;
        margin-top: 1rem;
        gap: 15px;
    }
    #about-sidebar, #social-sidebar {
        flex: 0 0 auto;
        flex-direction: row;
        overflow-x: auto;
        padding: 8px;
    }
    #about-sidebar a, #social-sidebar a {
        flex: 0 0 auto;
        margin-bottom: 0;
        margin-right: 10px;
    }
    #about-content, #social-content, .contact-info, .contact-form {
        padding: 20px;
    }
}

/* Styling for the new title on the Socials page */
#social-content h2 {
    font-size: 2.2rem;
    color: #f7b733;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

#social-content h2 i {
    font-size: 1.8rem; /* Makes the icon in the title a bit smaller */
}
