/* Base Styles */
body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003366;
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
}

/* Banner Slider Styles */
.banner-slider {
    width: 100%;
    height: 80vh;
    max-height: 400px;
    position: relative;
    overflow: hidden;
    margin-bottom:clamp(5px, 7vw, 30px);
    
}

.swiper-slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(82, 117, 151, 0.37); /* Dark blue overlay */
}

.slide-content {
    position: relative;
    z-index: 2;
    padding:  20px;
    max-width: 1000px;
    animation: fadeInUp 2s ease;
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(68, 68, 68, 0.644);
    opacity: 2;
}

.swiper-pagination-bullet-active {
    background: white;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .banner-slider {
        height: 60vh;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1.2rem;
    }
}

/* Scrolling Marquee Banner */
.scrolling-banner {  
  z-index: 1000;
  overflow: hidden;
  background: linear-gradient(90deg, #e6f5e6, #f5fff5);
  border-top: 1px solid #cde3cd;
  border-bottom: 1px solid #cde3cd;
  padding: 10px 0;
  white-space: nowrap;
  margin-top: -30px; /* pushes next section down */
  margin-bottom: 30px; /* pushes next section down */
}

.scrolling-text {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 500;
  color: #136f36;
  animation: scroll-left 20s linear infinite;
  padding-left: 100%; /* start off-screen */
}

/* Animation for smooth continuous scroll */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Optional: responsive font size */
@media (max-width: 768px) {
  .scrolling-text {
    font-size: 0.95rem;
  }
}

/* Services Section */
.services-section {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:svgjs='http://svgjs.dev/svgjs' width='1440' height='560' preserveAspectRatio='none' viewBox='0 0 1440 560'%3e%3cg mask='url(%26quot%3b%23SvgjsMask1000%26quot%3b)' fill='none'%3e%3crect width='1440' height='560' x='0' y='0' fill='rgba(255%2c 255%2c 255%2c 1)'%3e%3c/rect%3e%3cpath d='M -720.8743034155154%2c232 C -624.87%2c266.8 -432.87%2c420.6 -240.87430341551544%2c406 C -48.87%2c391.4 47.13%2c183 239.12569658448456%2c159 C 431.13%2c135 527.13%2c282.4 719.1256965844846%2c286 C 911.13%2c289.6 1054.95%2c142 1199.1256965844846%2c177 C 1343.3%2c212 1391.83%2c404.2 1440%2c461' stroke='rgba(51%2c 121%2c 194%2c 0.58)' stroke-width='2'%3e%3c/path%3e%3cpath d='M -659.8304143940759%2c74 C -563.83%2c129.4 -371.83%2c330.4 -179.83041439407586%2c351 C 12.17%2c371.6 108.17%2c169.4 300.1695856059241%2c177 C 492.17%2c184.6 588.17%2c372 780.1695856059241%2c389 C 972.17%2c406 1128.2%2c282.8 1260.169585605924%2c262 C 1392.14%2c241.2 1404.03%2c280.4 1440%2c285' stroke='rgba(51%2c 121%2c 194%2c 0.58)' stroke-width='2'%3e%3c/path%3e%3cpath d='M -176.7249669127832%2c361 C -80.72%2c330.6 111.28%2c187 303.2750330872168%2c209 C 495.28%2c231 591.28%2c475.4 783.2750330872168%2c471 C 975.28%2c466.6 1071.28%2c208 1263.2750330872168%2c187 C 1455.28%2c166 1707.93%2c382 1743.2750330872168%2c366 C 1778.62%2c350 1500.66%2c158.8 1440%2c107' stroke='rgba(51%2c 121%2c 194%2c 0.58)' stroke-width='2'%3e%3c/path%3e%3cpath d='M -132.32118345102128%2c150 C -36.32%2c211 155.68%2c454.6 347.6788165489787%2c455 C 539.68%2c455.4 635.68%2c160.2 827.6788165489787%2c152 C 1019.68%2c143.8 1115.68%2c421.6 1307.6788165489788%2c414 C 1499.68%2c406.4 1761.21%2c97.6 1787.6788165489788%2c114 C 1814.14%2c130.4 1509.54%2c419.6 1440%2c496' stroke='rgba(51%2c 121%2c 194%2c 0.58)' stroke-width='2'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cmask id='SvgjsMask1000'%3e%3crect width='1440' height='560' fill='white'%3e%3c/rect%3e%3c/mask%3e%3c/defs%3e%3c/svg%3e");
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background-position:center ;
}

.section-title-services {
    margin-top: -50px; /* space between title and card */
    text-align: left;
    font-size: 1.5rem;
    color: #003366;
}

.section-title {
    margin-top: -60px;
    text-align: left;
    font-size: 2rem;
    color: #003366;
    position: relative;
    padding-bottom: 10px; /* Space for border */   
}

.typing-text {
    display: inline-block;
}

.typing-cursor {
    display: inline-block;
    animation: blink 0.7s infinite;
    color: #003366;
}

.border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00ff7f;
    transform-origin: left;
    transform: scaleX(0);
    animation: borderGrow 0.5s forwards 1.5s; /* Starts after typing finishes */
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes borderGrow {
    to { transform: scaleX(1); }
}

.section-subtitle {
    text-align: left;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 80px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    background: rgba(240, 240, 250, 0.8);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-icon {
    font-size: 1.7rem;
    color: #003366;
    margin-top: 2px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: #003366;
}

/* Special adjustments for very small screens */
@media (max-width: 480px) {
    .services-section {
        min-height: auto;
        padding: 15vw 5vw;
    }
    
    .services-grid {
        grid-template-columns: 1fr; /* Single column on tiny screens */
    }
    
    .service-card {
        padding: 20px 15px;
    }
}

/* Adjustments for landscape mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .services-section {
        min-height: 150vh; /* Extra space for landscape */
    }
}

/* Portfolio Section */
.portfolio-section {
    background: white;
    margin-top: -90px;
    padding: clamp(5px, 7vw, 10px) 0;
}

.section-title-portfolio {
    border-bottom: 2px solid #00ff7f;
    text-align: left;
    font-size: 2rem;
    color: #003366;   
}

.portfolio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 4vw, 50px);
    align-items: center;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(15px, 3vw, 30px);
    margin-top: 35px;
    margin-bottom: clamp(30px, 7vw, 75px);
}

.stat-item {
    background: rgba(240, 240, 250, 0.8);
    padding: 10px;
    border-radius: clamp(5px, 1vw, 10px);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-item h3 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: #003366; 
    margin-bottom: -40px;
    margin: 5px 0 5px 0;  /* Top | Right | Bottom | Left */
    transition: all 0.3s ease;
}

.stat-item p {
    margin: 10px 0 5px 0;  /* Top | Right | Bottom | Left */
}

.stat-icon {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #003366;
    margin-top: clamp(15px, 3vw, 20px);
    display: block;
    padding: -20px;
}

.portfolio-collaborators h3 {
    color: #003366;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: clamp(5px, 2vw, 10px);
    margin-top: clamp(10px, -3vw, -70px);
}

/* Image Reveal Animation Styles */
.portfolio-collaborators {
    position: relative;
    overflow: hidden;
}

.reveal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2;
    transform-origin: left center;
    transform: scaleX(1);
    transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.portfolio-collaborators img {
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    will-change: transform, opacity; /* Optimize for animation */
    transform-origin: left center;
    position: relative;
    z-index: 1;
    display: block;
   
    opacity: 1 !important; /* Override any previous opacity settings */
    transform: none !important; /* Override any previous transform settings */
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .portfolio-content {
        grid-template-columns: 1fr;
    }
    
    .portfolio-stats {
        order: 2;
        margin-top: 30px;
    }
    
    .portfolio-collaborators {
        order: 1;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .stat-item {
        padding: 15px 10px;
    }
    
    .portfolio-collaborators h3 {
        margin-top: 0;
    }
}

/* ANNOUNCEMENTS SECTION */
.announcement-section {
    background: white;
    padding: clamp(5px, 7vw, 10px) 0;
    margin-top: -80px;
}

.section-title-announcement {
    border-bottom: 3px solid #00ff7f;
    text-align: left;
    font-size: 1.7rem;
    margin-bottom: 50px;
}

.announcement-box {
    background-color: #f9f9f9;
    border-left: 4px solid #53a9ff;
    padding: 20px;
    margin-top: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 10px;
}

.announcement-box:hover {
    background-color: #f0f0ff;
}

.announcement-section h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #003366;
}

.announcement-box h3 {
    font-size: 1.5rem;
    margin: 0;
    color: #003366;
}

.announcement-box p {
    margin: 10px 0 0;
    color: #666;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: bold;
    color: #53a9ff;
}

/* =========================
   PUBLICATION SECTION
========================= */

.publication-section {
    background: white;
    padding: clamp(5px, 7vw, 10px) 0;
    margin-top: -50px;
}

.section-title-publication {
    border-bottom: 3px solid #00ff7f;
    text-align: left;
    font-size: 1.7rem;
    margin-bottom: 50px;
}

/* =========================
   SLIDER CONTAINER
========================= */

.publication-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Horizontal scroll wrapper */
.publication-wrapper {
    display: flex;
    gap:50px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;

    /* Hide scrollbar */
    scrollbar-width: none;          /* Firefox */
}

.publication-wrapper::-webkit-scrollbar {
    display: none;                  /* Chrome, Safari */
}

/* =========================
   INDIVIDUAL SLIDE CARD
========================= */

.publication-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: rgba(240, 240, 250, 0.8);
    
    padding: 20px;
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;   
    box-shadow: 0 5px 15px rgba(71, 71, 71, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.publication-slide:hover {
    transform: translateY(-4px);    
}

.publication-slide h3 {
    font-size: 18px;
    text-align: center;
    font-weight: 650;
    color: #003366;
    margin-bottom: -25px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.publication-slide p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #353535;
    margin-bottom: 10px;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* =========================
   READ MORE BUTTON
========================= */

.publication-slide button {
    align-self: flex-start;
    background: #003366;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.publication-slide button:hover {
    background: #0055aa;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);       
    border: none;
    padding: 20px 18px;
    font-size: 1.5rem;  
    background: rgba(255, 255, 255, 0);  
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
    color: #003366;
}


.slide-btn.prev {
    left: 15px;
}

.slide-btn.next {
    right: 15px;
}


/* =========================
   RESPONSIVE ADJUSTMENTS
========================= */
/* ===== TABLETS ===== */
@media (min-width: 768px) {
    .publication-slide {
        flex: 0 0 70%;
    }

    .publication-slide h3 {
        font-size: 2rem;
    }
}

/* ===== DESKTOP ===== */
@media (min-width: 1024px) {
    .publication-slide {
        flex: 0 0 55%;
        min-height: 300px;
        font-size: 24px;
    }
}

/* ===== LARGE SCREENS ===== */
@media (min-width: 1400px) {
    .publication-slide {
        flex: 0 0 45%;
    }
}

/* ===== SMALL TABLETS ===== */
@media (min-width: 400px) {
    .publication-slide {
        flex: 0 0 85%;
        padding: 25px;
    }
    .slide-btn {
        top: 50%;                /* move slightly higher */
        padding: 8px 12px;       /* smaller buttons */
        font-size: 1.2rem;       /* smaller arrow icon */
    }

    .slide-btn.prev {
        left: 5px;               /* closer to edge */
    }

    .slide-btn.next {
        right: 5px;              /* closer to edge */
    }
}