/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar {
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 17px;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.nav-menu li a::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #764ba2);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu li a:hover {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.08);
}

.nav-menu li a:hover::before {
    width: 70%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #2c3e50;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section with Video */
.hero {
    margin-top: 80px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-text-section {
    text-align: center;
    padding: 0;
    animation: fadeInUp 1s ease;
}

.hero-text-section h1 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 500;
    color: white;
}

.hero-text-section p {
    font-size: 24px;
    font-weight: 300;
    color: white;
}

.video-section {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.hero-video {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.video-play-overlay.hidden {
    display: none;
}

.play-button {
    background: #0066cc;
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

.play-button:hover {
    background: #0052a3;
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 102, 204, 0.6);
}

.play-icon {
    font-size: 32px;
    color: white;
}

.play-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

/* Slider Section */
.slider-section {
    padding: 60px 0;
    background: #ffffff;
    overflow: hidden;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

.slide {
    display: none;
    opacity: 0;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.slide.active {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 12px;
    align-items: center;
    opacity: 1;
    position: relative;
}

.slide.page-flip-next {
    animation: pageFlipNext 1s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.slide.page-flip-prev {
    animation: pageFlipPrev 1s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.slide-image {
    position: relative;
    width: 100%;
    padding-top: 78.57%; /* 14:11 aspect ratio (11/14 * 100) */
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.slide-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slide-image:hover img {
    transform: scale(1.05);
}

.slide-content {
    padding: 32px;
}

.slide-content h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.slide-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
    text-align: justify;
}

/* Navigation Container */
.slider-navigation {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Navigation Arrows */
.slider-nav {
    background: rgba(0, 102, 204, 0.9);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.slider-nav:hover {
    background: #0052a3;
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.slider-nav span {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

/* Dot Navigation */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: #0066cc;
    transform: scale(1.2);
}

.dot.active {
    background: #0066cc;
    width: 30px;
    border-radius: 6px;
}

/* Page Flip Animations - 3D Book-like Effect */

/* Page Flip Forward (Next) */
@keyframes pageFlipNext {
    0% {
        opacity: 0;
        transform: perspective(2000px) rotateY(-90deg);
        transform-origin: left center;
    }
    20% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
        transform: perspective(2000px) rotateY(0deg);
        transform-origin: left center;
    }
}

/* Page Flip Backward (Previous) */
@keyframes pageFlipPrev {
    0% {
        opacity: 0;
        transform: perspective(2000px) rotateY(90deg);
        transform-origin: right center;
    }
    20% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
        transform: perspective(2000px) rotateY(0deg);
        transform-origin: right center;
    }
}

/* Content Animation - Stagger Effect */
.slide.active .slide-content h2 {
    animation: contentSlideIn 0.6s ease-out 0.2s both;
}

.slide.active .slide-content p:nth-of-type(1) {
    animation: contentSlideIn 0.6s ease-out 0.3s both;
}

.slide.active .slide-content p:nth-of-type(2) {
    animation: contentSlideIn 0.6s ease-out 0.4s both;
}

.slide.active .slide-content p:nth-of-type(3) {
    animation: contentSlideIn 0.6s ease-out 0.5s both;
}

.slide.active .slide-image {
    animation: imageZoomIn 0.8s ease-out both;
}

@keyframes contentSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes imageZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #2c3e50;
    font-weight: 700;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0066cc;
}

.card p {
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #ffffff;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info h3,
.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-item .icon {
    font-size: 24px;
}

.info-item strong {
    display: block;
    color: #0066cc;
    margin-bottom: 5px;
}

.info-item p {
    color: #555;
    margin: 0;
}

/* Contact Form */
.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #0052a3;
}

.btn-submit:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.form-message {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Contact Map */
.contact-map {
    margin-top: 50px;
    grid-column: 1 / -1;
}

.contact-map h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    display: block;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .hamburger {
        display: flex;
    }
    
    /* Mobile navigation menu */
    .nav-menu {
        position: fixed;
        top: 110px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 110px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        width: 100%;
        padding: 15px 30px;
        font-size: 16px;
        border-radius: 0;
        text-align: left;
    }
    
    .nav-menu li a::before {
        display: none;
    }
    
    .nav-menu li a:hover {
        background: rgba(0, 102, 204, 0.1);
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    /* Slider Responsive - Mobile Layout */
    .slider-wrapper {
        display: flex;
        flex-direction: column;
    }
    
    .slide {
        display: none;
    }
    
    .slide.active {
        display: contents;
    }
    
    .slide.active .slide-image {
        order: 1;
        width: 100%;
    }
    
    .slider-navigation {
        order: 2;
        margin-top: 20px;
        margin-bottom: 20px;
        gap: 15px;
    }
    
    .slide.active .slide-content {
        order: 3;
        padding: 32px 16px;
    }
    
    /* Mobile: Smaller button sizes */
    .slider-nav {
        width: 35px;
        height: 35px;
    }
    
    .slider-nav span {
        font-size: 20px;
    }
    
    .slider-dots {
        gap: 8px;
        overflow: hidden;
        max-width: calc(5 * 12px + 4 * 8px); /* 5 dots + 4 gaps */
    }
    
    .dot {
        transition: all 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    }
    
    /* Hide dots that are not in the visible range on mobile */
    .dot.mobile-hidden {
        display: none;
    }
    
    .slide-content h2 {
        font-size: 26px;
    }
    
    .slide-content p {
        font-size: 15px;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 50px;
    }
    
    .hero {
        margin-top: 80px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .card {
        padding: 25px;
    }
    
    .contact-form {
        padding: 25px;
    }
}
