/* Hero Section */
#hero {
    overflow: hidden;
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(135deg, #1e155a 0%, #3dcaff 100%);
    background: url('../images/second_background.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    /* Add padding for smaller screens */
}

.hero-content {
    z-index: 2;
    padding: 6rem;
    margin: 4rem;
    max-width: 800px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    /* Responsive font size */
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.7s forwards;
}

/* Responsive Design */
@media (max-width: 1024px) {
    #hero {
        padding: 3rem 1rem;
    }

    .hero-content {
        padding: 3rem 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        /* Adjust font size for tablets */
    }

    .hero-content p {
        font-size: 1.1rem;
        /* Adjust paragraph font size */
    }
}

@media (max-width: 768px) {
    #hero {
        padding: 2rem 1rem;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        /* Adjust font size for mobile */
    }

    .hero-content p {
        font-size: 1rem;
        /* Adjust paragraph font size */
    }
}

@media (max-width: 480px) {
    #hero {
        padding: 1.5rem 1rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        /* Smaller font size for very small screens */
    }

    .hero-content p {
        font-size: 0.9rem;
        /* Smaller paragraph font size */
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 2rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stats Bar Section */
.stats-section {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    /* margin-top: -3rem; */
    position: relative;
    z-index: 3;
}

.stats-bar {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(30, 21, 90, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1e155a, #3dcaff);
    transform: scaleX(0);
    transition: transform 0.6s ease;
    transform-origin: left;
}

.stats-bar:hover::before {
    transform: scaleX(1);
}

.stats-bar:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(61, 202, 255, 0.15);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.stat-item {
    text-align: center;
    padding: 1rem 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    width: 1px;
    height: 60%;
    background: linear-gradient(to bottom, transparent, #e0e0e0, transparent);
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e155a, #3dcaff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.stat-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.stat-item:hover .stat-icon::after {
    opacity: 1;
    animation: shimmer 0.6s ease-in-out;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1e155a;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.5rem;
}

.stat-description {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.4;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e155a;
}

/* Story Section */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.story-text p {
    margin-bottom: 1.5rem;
}

/* Default Styles for Story Section */
.story-visual {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* Ensure it takes full width of the container */
    object-fit: cover;
    /* Maintain aspect ratio */
}

/* Responsive Design for Mobile View */
@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
        /* Stack text and image vertically */
        gap: 2rem;
    }

    .story-visual {
        height: 250px;
        /* Reduce height for smaller screens */
        border-radius: 15px;
        /* Adjust border radius for mobile */
    }
}

@media (max-width: 480px) {
    .story-visual {
        height: 200px;
        /* Further reduce height for very small screens */
        border-radius: 10px;
        /* Smaller border radius */
    }
}

/* Values Section */
.values-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0 -2rem;
    padding: 2rem 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.value-card:hover::before {
    left: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e155a;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* Team Section */
.team-grid {
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* .team-member {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
} */

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #1e155a 0%, #3dcaff 100%);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    overflow: hidden;
}

/* .member-photo::before {
    content: '👤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.7;
    color: white;
} */

.member-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e155a;
}

.member-role {
    color: #3dcaff;
    font-weight: 500;
    margin-bottom: 1rem;
}

.member-bio {
    font-size: 0.95rem;
    color: #726262;
    line-height: 1.5;
}

.team-member {
    position: relative;
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.social-links {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 21, 90, 0.9);
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    opacity: 0;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: #3dcaff;
    transform: scale(1.2);
}

.team-member:hover .social-links {
    transform: translateY(0);
    opacity: 1;
}

.social-links .visible {
    transform: translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .values-section {
        margin: 0 -1rem;
        padding: 3rem 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-item:nth-child(2)::after,
    .stat-item:nth-child(4)::after {
        display: none;
    }

    .stat-item:nth-child(1)::after,
    .stat-item:nth-child(3)::after {
        display: block;
    }

    .stats-bar {
        padding: 2rem 1rem;
    }

    footer .logo {
        height: 12vw;
    }

    footer .brand {
        font-size: 1.5rem;
    }

    footer .tagline,
    footer .sub-tagline {
        font-size: 1rem;
    }

    footer .search-box {
        flex-direction: column;
        align-items: stretch;
    }

    footer .search-box input,
    footer .search-box button {
        border-radius: 25px;
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-item::after {
        display: none;
    }

    .stat-item:not(:last-child) {
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
}