/* style.css - Premium Academic Theme */
:root {
    --primary-color: #0A192F; /* Deep Navy */
    --secondary-color: #172A45;
    --accent-color: #D4AF37; /* Gold */
    --accent-hover: #F3E5AB;
    --text-color: #333333;
    --light-bg: #F8F9FA;
    --white: #FFFFFF;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    background-color: var(--primary-color) !important;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.navbar-brand {
    color: var(--accent-color) !important;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}
.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: 0.3s;
}
.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Common Section Styling */
.section-eyebrow {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: block;
}
.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 1.5rem auto;
}
.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
}

/* Swiper Hero Slider */
.hero-swiper {
    width: 100%;
    height: 600px;
}
@media (max-width: 768px) {
    .hero-swiper {
        height: 450px;
    }
}
.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0.4), rgba(10, 25, 47, 0.8));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}
.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.btn-accent {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 35px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: all 0.3s ease;
}
.btn-accent:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Swiper Controls Customization */
.swiper-button-next, .swiper-button-prev {
    color: var(--white) !important;
    background: rgba(255,255,255,0.1);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
    background: var(--accent-color);
    color: var(--primary-color) !important;
}
.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 1.2rem !important;
    font-weight: bold;
}
.swiper-pagination-bullet {
    background: var(--white) !important;
    opacity: 0.5 !important;
    width: 10px !important;
    height: 10px !important;
}
.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
    opacity: 1 !important;
    transform: scale(1.3);
}

/* Project & Doc Cards */
.premium-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(10, 25, 47, 0.1);
}
.premium-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 240px;
}
.premium-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.premium-card:hover .premium-card-img-wrap img {
    transform: scale(1.05);
}
.premium-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.premium-card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}
.premium-card-text {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-quote-icon {
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 30px;
}
.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--primary-color);
    font-style: italic;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}
.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
}
.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-author-info h6 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}
.testimonial-author-info span {
    color: #888;
    font-size: 0.85rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: rgba(255,255,255,0.7);
    padding: 70px 0 30px;
    font-size: 0.95rem;
}
footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}
footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
}
footer a:hover {
    color: var(--accent-color);
}
footer .social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--white);
}
footer .social-icons a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    font-size: 0.85rem;
}

/* ------------------------------------- */
/* GENERAL IMAGE SAFETY & FORM STYLES  */
/* ------------------------------------- */

/* Prevent any image from breaking the layout */
img {
    max-width: 100%;
    height: auto;
}

/* Detail Pages Image Safe Wrappers */
.detail-cover-img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* Responsive Video Wrapper (16:9) */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Premium Form Inputs */
.premium-input {
    background-color: #F8F9FA !important;
    border: 1px solid #E0E0E0 !important;
    color: var(--primary-color) !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.premium-input:focus {
    background-color: #FFFFFF !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25) !important;
}
.premium-input::placeholder {
    color: #adb5bd !important;
}
.content-formatted img {
    max-width: 100%;
    height: auto;
}

/* ------------------------------------- */
/* MOBILE HORIZONTAL SCROLL / CAROUSEL   */
/* ------------------------------------- */

@media (max-width: 767.98px) {
    .mobile-scroll-row {
        display: flex;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2rem;
        padding-left: 15px; /* Alignment fix */
        margin-left: -15px;
        margin-right: -15px;
    }
    
    /* Hide scrollbar for Chrome, Safari and Opera */
    .mobile-scroll-row::-webkit-scrollbar {
        display: none;
    }
    
    /* Hide scrollbar for IE, Edge and Firefox */
    .mobile-scroll-row {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }

    .mobile-scroll-row > [class*="col-"] {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
        padding-right: 15px;
        padding-left: 0;
    }
    
    /* Ensure cards inside scroll row are full height */
    .mobile-scroll-row .premium-card {
        height: 100%;
    }
}

