/* 
 * YUNet - Main Stylesheet
 * Version: 2.1
 * Fixed and optimized for all devices
 */

/* Variables */
:root {
    --blue: #008cbd;
    --blue-dark: #00689c;
    --green: #00A865;
    --green-dark: #008f55;
    --background: #f8f9fa;
    --white: #ffffff;
    --dark: #333333;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --shadow: rgba(0, 0, 0, 0.08);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 80px;
    --header-height-scrolled: 70px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--background);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    color: var(--dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--blue);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Button styles */
.cta-button {
    display: inline-block;
    background-color: var(--blue);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    border: 2px solid var(--blue);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background-color: var(--blue-dark);
    border-color: var(--blue-dark);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 139, 189, 0.2);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--blue);
}

.cta-button.secondary:hover {
    background-color: var(--blue);
    color: var(--white);
}

/* Ripple effect for buttons */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    margin-top: -50px;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Header styles */
#main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

#main-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Progress bar at top of header */
.scroll-progress {
    height: 3px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 100%);
    width: 0%;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.1s ease;
}

/* Hero section */
#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('images/through_the_lens/YUNet Navigator 4.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: var(--header-height);
    padding: 4rem 2rem;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 139, 189, 0.7) 0%, rgba(0, 104, 156, 0.7) 100%);
    mix-blend-mode: overlay;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-buttons .cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-buttons .primary {
    background-color: var(--blue);
    border: 2px solid var(--blue);
}

.hero-buttons .primary:hover {
    background-color: var(--blue-dark);
    border-color: var(--blue-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-buttons .secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.hero-buttons .secondary:hover {
    background-color: var(--white);
    color: var(--blue);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease 0.3s forwards;
    opacity: 0;
    margin-top: auto;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    width: fit-content;
}

.hero-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hero-stats .stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Featured Section */
#featured {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.featured-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
    position: relative;
}

.featured-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.featured-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-item:hover .featured-image::before {
    opacity: 1;
}

.featured-image.bg-1 {
    background-image: url('images/speakup-cover.jpg');
}

.featured-image.bg-2 {
    background-image: url('https://www.tbsnews.net/sites/default/files/styles/big_2/public/images/2024/11/28/whatsapp_image_2024-11-28_at_4.28.45_pm.jpeg');
}

.featured-image.bg-3 {
    background-image: url('https://media.licdn.com/dms/image/v2/D5622AQEUgzWyeIk_Uw/feedshare-shrink_800/B56ZQSyLOIH0Ak-/0/1735481934639?e=2147483647&v=beta&t=x2wM0UDcQ24T1dEy2FALdSDd8phESApkyr-c_OTC3og');
}

.featured-content {
    padding: 1.5rem;
    position: relative;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: var(--transition);
    background-color: var(--light-gray);
    margin-top: -40px;
    border: 4px solid var(--white);
}

.icon-wrapper.blue {
    color: var(--blue);
}

.icon-wrapper.green {
    color: var(--green);
}

.featured-item:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.featured-item h3 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.featured-item p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.learn-more {
    color: var(--blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.learn-more .arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.learn-more:hover {
    color: var(--blue-dark);
    text-decoration: none;
}

.learn-more:hover .arrow {
    transform: translateX(5px);
}

/* Mission & Vision section */
#mission-vision {
    padding: 5rem 0;
    background-color: var(--background);
    position: relative;
}

.mission-vision-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mission-box, .vision-box {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.mission-box:hover, .vision-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mission-box h2, .vision-box h2 {
    color: var(--blue);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.mission-box h2::after, .vision-box h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--blue);
    border-radius: 1.5px;
}

.vision-box h2 {
    color: var(--green);
}

.vision-box h2::after {
    background-color: var(--green);
}

/* Impact Metrics section */
#impact-metrics {
    padding: 5rem 0;
    background-color: var(--white);
    position: relative;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.metric {
    background-color: var(--background);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px var(--shadow);
}

.metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.metric h3 {
    color: var(--blue);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.metric p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Through the Lens section */
#through-the-lens {
    padding: 5rem 0;
    background-color: var(--background);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow);
}

.image-carousel {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 400px;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: calc(33.333% - 10px);
    margin: 0 5px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Partners Section with Draggable Slider Styles */

.partners-section {
    padding: 4rem 0;
    background-color: var(--white);
    position: relative;
}

.partners-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto 2rem;
    padding: 1rem 0;
}

.partners-track {
    display: flex;
    transition: transform 0.3s ease-out;
    cursor: grab;
}

.partners-track.dragging {
    cursor: grabbing;
    transition: none; /* Disable transition when dragging for immediate response */
}

.partner-item {
    min-width: calc(20% - 30px);
    margin: 0 15px;
    text-align: center;
    padding: 0 15px;
    transition: var(--transition);
    user-select: none; /* Prevent text selection while dragging */
}

.partner-item:hover {
    transform: translateY(-5px);
}

.partner-logo {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px var(--shadow);
    padding: 1.5rem;
    margin-bottom: 0.8rem;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.partner-item:hover .partner-logo {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.partner-logo img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.partner-name {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

/* Navigation dots (optional) */
.partners-navigation {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.partners-dots {
    display: flex;
    gap: 0.5rem;
}

.partners-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.partners-dot.active {
    background-color: var(--blue);
    transform: scale(1.2);
}

/* Visual indicator that the carousel is draggable */
.partners-carousel::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23008cbd" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 9l-3 3 3 3"></path><path d="M9 5l3-3 3 3"></path><path d="M15 19l3-3 3 3"></path><path d="M19 9l3 3-3 3"></path></svg>') no-repeat center center;
    opacity: 0.7;
    pointer-events: none;
    z-index: 10;
    animation: slide-hint 2s ease-in-out infinite;
}

@keyframes slide-hint {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(-10px); }
}

/* Responsive styles */
@media (max-width: 1200px) {
    .partner-item {
        min-width: calc(25% - 30px);
    }
}

@media (max-width: 992px) {
    .partner-item {
        min-width: calc(33.333% - 30px);
    }
}

@media (max-width: 768px) {
    .partner-item {
        min-width: calc(50% - 30px);
    }
    
    .partners-carousel {
        padding: 0.5rem 0;
    }
    
    .partner-logo {
        height: 90px;
        padding: 1.2rem;
    }
    
    .partner-logo img {
        max-width: 100px;
        max-height: 50px;
    }
}

@media (max-width: 576px) {
    .partner-item {
        min-width: calc(80% - 30px);
    }
    
    /* Make drag hint more visible on mobile */
    .partners-carousel::before {
        opacity: 0.9;
        right: 0.5rem;
    }
}

/* Footer */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--blue);
    transform: translateY(-3px);
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }
    
    .partner-item {
        min-width: calc(25% - 30px);
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        padding: 1.5rem;
        gap: 2rem;
    }

    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .mission-vision-content {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .carousel-slide {
        min-width: calc(50% - 10px);
    }
    
    .partner-item {
        min-width: calc(33.333% - 30px);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-slide {
        min-width: 100%;
    }
    
    .partner-item {
        min-width: calc(50% - 30px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    #hero {
        padding: 3rem 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-item {
        min-width: calc(100% - 30px);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}