/* Global Styles */
:root {
    --primary-color: #1B263B;
    --dark-bg: #1B263B;
    --secondary-color: #00A8E8;
    --accent-color: #FFD60A;
    --text-color: #EAECEE;
    --light-gray: #F8F9F9;
    --white: #ffffff;
    --card-bg: #2A3D5F;
    --hover-color: #0077B6;
    --navbar-bg: #23395B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow: hidden;
    background: linear-gradient(to right, transparent 0%, transparent 40%, var(--navbar-bg) 40%, var(--navbar-bg) 100%);
    text-align: justify;
}

/* Main Container */
.main-container {
    display: flex;
    height: 100vh;
}

/* Left Section (Sticky) */
.left-section {
    width: 40%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    
}

.profile-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.profile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.profile-image.active {
    opacity: 1;
}

.slider-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slider-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.slider-button i {
    transition: transform 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slider-button:hover i {
    transform: rotate(180deg);
}

/* Right Section (Scrollable) */
.right-section {
    width: 60%;
    height: 100vh;
    margin-left: 40%; /* Match the width of left section */
    background-color: var(--dark-bg);
    color: var(--white);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    position: relative;
}

.right-section::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Navigation */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Higher z-index to stay on top */
    padding: 50px 60px 0;
    background: linear-gradient(to right, transparent 0%, transparent 40%, var(--primary-color) 40%, var(--primary-color) 100%);
}

.navbar {
    background-color: rgba(26, 61, 92, 0.95); /* Lighter navbar color with opacity */
    border-radius: 50px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.appointment-btn {
    color: var(--secondary-color) !important;
}

/* Content Wrapper */
.content-wrapper {
    padding: 2rem;
    padding-right: 8rem;
    position: relative;
    margin-top: 120px; /* Space for navbar */
}

/* Hero Section */
.hero {
    position: relative;
    padding: 0;
    max-width: none;
    margin: 0;
}

.hero-title-container {
    position: absolute;
    top: 80px;
    left: -20%;
    background-color: var(--dark-bg);
    padding: 35px 50px 35px 25%;
    border-radius: 0 50px 50px 0;
    /* z-index: 2; */
}

.hero h1 {
    font-size: 3.2rem;
    margin: 0;
    color: var(--white);
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 120px;
}

.hero .subtitle {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero .intro-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 2rem;
    max-width: 100%;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.scroll-down {
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Social Links */
.social-links {
    position: fixed;
    right: 2rem;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: none;
    top: auto;
    z-index: 100;
}

.social-icon {
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    color: var(--accent-color);
    background-color: rgba(191, 161, 129, 0.2);
    transform: translateY(-3px) rotate(360deg);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 10000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(97, 97, 97, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
    color: var(--secondary-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 45, 45, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Styles */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .main-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .left-section {
        position: relative;
        width: 100%;
        height: 50vh;
        min-height: 400px;
    }

    .right-section {
        width: 100%;
        height: auto;
        margin-left: 0;
        overflow: visible;
    }

    .nav-container {
        padding: 0;
        display: none;
    }

    .navbar {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-overlay {
        overflow-y: auto;
    }

    .mobile-menu-overlay .nav-links {
        min-height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 80px 20px;
        position: relative;
    }

    .mobile-menu-overlay .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 2rem;
    }

    .mobile-menu-overlay .social-links {
        position: relative;
        bottom: auto;
        right: auto;
        transform: none;
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        margin-top: 3rem;
        padding-bottom: 3rem;
    }

    .content-wrapper {
        padding: 2rem;
        margin-top: 60px;
    }

    .hero {
        margin-top: 40px;
    }

    .hero-title-container {
        position: relative;
        top: 0;
        left: 0;
        padding: 25px;
        margin: 0 -20px;
        width: calc(100% + 40px);
        border-radius: 0;
    }

    .hero h1 {
        font-size: 2.2rem;
        white-space: normal;
        text-align: center;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero .intro-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .hero-content {
        margin-top: 2rem;
    }

    .social-links {
        position: fixed;
        bottom: 2rem;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        padding: 0;
        margin: 0;
    }
}

/* Additional responsive fixes */
@media (max-width: 480px) {
    .hero-title-container {
        padding: 20px;
        margin: 0 -15px;
        width: calc(100% + 30px);
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .hero .intro-text {
        font-size: 0.9rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .social-links {
        gap: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .hero-title-container {
        left: -15%;
        padding-left: 20%;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 1200px) {
    .hero-title-container {
        left: -10%;
        padding-left: 15%;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        height: auto;
    }

    .left-section {
        position: relative;
        width: 100%;
        height: 50vh;
    }

    .right-section {
        width: 100%;
        height: auto;
        margin-left: 0;
    }

    .nav-container {
        padding: 20px 20px 0;
    }

    .content-wrapper {
        margin-top: 60px;
    }

    .hero-title-container {
        position: relative;
        top: 0;
        left: -20px;
        padding: 30px;
        margin-bottom: 2rem;
        width: calc(100% + 40px);
    }

    .hero h1 {
        font-size: 2.5rem;
        padding-left: 0;
        text-align: left;
    }

    .hero-content {
        margin-top: 2rem;
        padding: 0 2rem;
    }
}

html {
    scroll-behavior: smooth;
  }
  
/* Content Layout Optimization */
.section {
    padding: 120px 0 60px;
    position: relative;
    border-bottom: 2px solid rgba(218, 215, 215, 0.3);
}

.section:last-child {
    border-bottom: none; /* Remove border from last section */
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

/* Adjust the first section (hero) to account for navbar */
#home {
    padding-top: 20px; /* Less padding for hero section */
    scroll-margin-top: 100px; /* Equal or slightly more than your navbar height */
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Card Styles */
.card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
}

/* List Styles */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #999;
}

.custom-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Progress Bars */
.progress-container {
    margin-bottom: 1.5rem;
}

.progress-title {
    display: flex;
    justify-content: space-between;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Responsive Content Adjustments */
@media (max-width: 768px) {
    .section {
        padding: 100px 0 40px; /* Adjust padding for mobile */
    }
    
    #home {
        padding-top: 60px; /* Adjust hero padding for mobile */
    }

    .section-title {
        font-size: 2rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }
}

/* Video Gallery Styles */
.video-grid {
    gap: 2rem;
}

.video-card {
    background-color: var(--dark-bg);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    overflow: hidden;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.play-button i {
    color: white;
    font-size: 24px;
    margin-left: 4px;
}

.video-card:hover .play-button {
    background-color: var(--secondary-color);
}

.video-title {
    padding: 1rem;
    margin: 0;
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Video Modal Styles */
.video-modal-content {
    max-width: 900px;
    padding: 0;
    background-color: transparent;
    margin-top: 250px; /* Add top margin to account for navbar */
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    margin-top: 120px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.modal .close-modal {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 30px;
    height: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1002;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .video-modal-content {
        margin: 20px;
        margin-top: 100px; /* Increase top margin for mobile */
    }

    .modal .close-modal {
        right: 10px;
        top: -40px;
    }
}

@media (max-width: 480px) {
    .video-grid {
        gap: 1rem;
    }

    .play-button {
        width: 40px;
        height: 40px;
    }

    .play-button i {
        font-size: 18px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    margin: 0 auto;
}

.video-modal-content {
    background: transparent;
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: -40px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    
    .close-modal {
        top: -30px;
        right: -30px;
    }
}

/* Appointment Section Styles */
.appointment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.location {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.location:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.location h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.location p {
    margin: 0.5rem 0;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location i {
    color: var(--secondary-color);
    width: 20px;
}

.appointment-form {
    display: grid;
    gap: 1.5rem;
}

.appointment-form .form-group {
    margin-bottom: 0;
}

.appointment-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2rem;
}

@media (max-width: 768px) {
    .appointment-info {
        grid-template-columns: 1fr;
    }
    
    .location {
        padding: 1.2rem;
    }
}

/* Contact Section Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-color);
}

.info-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(191, 161, 129, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.info-item:hover i {
    background-color: rgba(191, 161, 129, 0.2);
    transform: rotate(360deg);
}

.info-item p {
    margin: 0;
    color: var(--light-text);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.contact-form .form-group {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contact-info {
        gap: 1rem;
    }
    
    .info-item {
        padding: 0.8rem;
    }
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
}

.theme-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background-color: var(--hover-color);
}

.theme-toggle-btn i {
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover i {
    transform: rotate(180deg);
} 