/* Hero Section */
.hero {
    padding: 6rem 2rem; /* Increased from 4rem */
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem; /* Increased from 3rem */
    margin-bottom: 1.5rem; /* Increased from 1rem */
    line-height: 1.2;
    color: var(--text-emphasis);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-title-white {
    color: var(--text-standard);
    font-size: 0.8em;
}

.hero-title-emphasis {
    color: var(--text-emphasis);
}

.hero-subtitle {
    font-size: 1.4rem; /* Increased from 1.2rem */
    margin-bottom: 3rem; /* Increased from 2rem */
    opacity: 0;
    color: var(--text-standard);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem; /* Increased from 1rem */
    margin-bottom: 4rem; /* Increased from 3rem */
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.btn-primary, .btn-secondary {
    padding: 1.2rem 2.5rem; /* Increased from 1rem 2rem */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem; /* Added font-size */
    transition: all 0.3s;
}

.btn-primary {
    background: var(--header);
    color: #072b40;
    border: none;
    box-shadow: 0 2px 8px rgba(2,163,167,0.15);
}

.btn-primary:hover {
    background: #12cdd6;
    color: #072b40;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(18,205,214,0.08);
    color: var(--text-emphasis);
    border: 2px solid var(--header);
}

.btn-secondary:hover {
    background: rgba(18,205,214,0.18);
    color: var(--text-emphasis);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--header);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--text-standard);
}

/* Hero Visual with Stick Figures */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  
  .photo-container {
    display:flex;
    align-items: center;
    gap:2rem;
    box-sizing: border-box;
    border: 2px solid var(--header);
    border-color: rgba(18,205,214,0.08);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, border-color 0.25s ease, 0.25s ease;
    cursor: pointer;
  }
  
  .photo-container:hover {
    transform: scale(1.03);
    border-color: var(--header);
    background: rgba(18,205,214,0.12);
  }
  

.hero-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--header);
}

.photo-content {
    flex: 1;
}

.photo-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-emphasis);
}

.photo-desc {
    opacity: 0.95;
    line-height: 1.4;
    color: var(--text-standard);
}

/* Section Styles */
.section-full {
    padding: 4rem 2rem;
}

.section-alternate {
    background: rgba(18,205,214,0.04);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-emphasis);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-standard);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.section-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: rgba(18,205,214,0.08);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(18,205,214,0.05);
    /* border-left: 4px solid var(--header); */
    color: var(--text-standard);
}

.section-button {
    display: inline-block;
    background: var(--header);
    color: #072b40;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.section-button:hover {
    background: #12cdd6;
    color: #072b40;
    transform: translateY(-2px);
}

.visual-card {
    background: rgba(18,205,214,0.08);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(18,205,214,0.05);
    text-align: center;
}

.visual-icon {
    font-size: 3rem;
    color: var(--header);
    margin-bottom: 1rem;
}

.visual-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-emphasis);
    margin-bottom: 0.5rem;
}

.visual-desc {
    color: var(--text-standard);
}

/* Join Team Section */
.join-team-centered {
    text-align: center;
}

.join-team-container {
    max-width: 800px;
    margin: 0 auto;
}

.join-team-icon {
    font-size: 4rem;
    color: var(--header);
    margin-bottom: 2rem;
}

.join-team-title {
    font-size: 3rem;
    color: var(--text-emphasis);
    margin-bottom: 1rem;
}

.join-team-desc {
    font-size: 1.2rem;
    color: var(--text-standard);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.join-team-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.join-team-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(18,205,214,0.08);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(18,205,214,0.05);
    color: var(--text-standard);
}

.join-team-feature i {
    color: var(--header);
    font-size: 1.5rem;
}
.join-team-feature i,
.join-team-icon i {
    color: #02a3a7;
}

.join-team-button {
    display: inline-block;
    background: var(--header);
    color: #072b40;
    padding: 1.5rem 3rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.join-team-button:hover {
    background: #12cdd6;
    color: #072b40;
    transform: translateY(-2px);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    text-align: center;
}

.achievement-stat {
    background: rgba(18, 205, 214, 0.08);
    padding: 2rem 1rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.achievement-stat:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-emphasis);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-standard);
    font-weight: 500;
}

.universities-showcase {
    margin-top: 3rem;
    text-align: center;
}

.universities-showcase h4 {
    color: var(--text-emphasis);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.university-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    align-items: center;
}

.university-tag {
    background: rgba(18, 205, 214, 0.1);
    color: var(--text-standard);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(18, 205, 214, 0.2);
    transition: all 0.3s ease;
}

.university-tag.ivy {
    background: linear-gradient(135deg, #12cdd6 0%, #02a3a7 100%);
    color: #072b40;
    font-weight: 600;
    border: 1px solid #12cdd6;
}

.university-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 205, 214, 0.2);
}

.section-content {
    text-align: center;
}

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

.section-desc {
    font-size: 1.1rem;
    color: var(--text-standard);
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}


/* Achievements Section - restore two column layout */
.achievements-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.achievements-left {
    text-align: center;
}

.achievements-right {
    /* Remove background and border styling */
    padding: 0; /* Remove padding */
    text-align: center; /* Center align like left side */
}

.achievements-title {
    font-size: 2.5rem; /* Match section-title size */
    color: var(--text-emphasis);
    margin-bottom: 1rem; /* Match section-title margin */
    text-align: center;
}


.achievement-list {
    list-style: none;
    padding: 0;
}

.achievement-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(18, 205, 214, 0.08);
    border-radius: 8px;
    color: var(--text-standard);
}

.achievement-list li i {
    color: var(--text-emphasis);
    font-size: 1.5rem;
    min-width: 30px;
}



/* Add keyframes for fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    body {
        overflow-x: hidden;
    }

    .hero {
        padding: 2rem 1rem; /* Reduce padding significantly */
    }

    .hero-container,
    .section-container {
        grid-template-columns: 1fr;
        gap: 1.5rem; /* Reduce gap */
        text-align: center;
        padding: 0 1rem; /* Add proper padding */
        max-width: 100vw; /* Ensure it doesn't exceed viewport width */
        box-sizing: border-box;
    }

    .hero-content {
        text-align: center;
        padding: 0; /* Remove padding */
        padding-top: 3rem;;
        width: 100%;
    }

    .hero-title {
        font-size: 2.5rem; /* Reduce significantly */
        text-align: center;
        line-height: 1.1; /* Tighter line height */
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem; /* Reduce from 1.4rem */
        text-align: center; 
        padding: 0; /* Remove padding */
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 1rem; /* Reduce gap */
        margin-bottom: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        width: auto;
        display: inline-block;
        padding: 0.8rem 1.5rem; /* Reduce padding */
        font-size: 0.9rem; /* Reduce font size */
        max-width: 85vw; /* Prevent overflow */
        box-sizing: border-box;
    }

    .photo-container {
        margin: 0; /* Remove margins */
        padding: 1rem; /* Reduce padding */
        gap: 1rem; /* Reduce gap */
    }

    .hero-photo {
        width: 80px; /* Reduce size */
        height: 80px;
    }

    .photo-title {
        font-size: 1.1rem; /* Reduce size */
    }

    .photo-desc {
        font-size: 0.9rem; /* Reduce size */
    }

    /* Section styles */
    .section-full {
        padding: 2rem 1rem; /* Reduce padding */
    }

    .section-title {
        font-size: 1.8rem; /* Reduce from 2.5rem */
        margin-bottom: 0.8rem;
    }

    .section-desc {
        font-size: 1rem; /* Reduce from 1.1rem */
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .section-features {
        grid-template-columns: 1fr; /* Single column */
        gap: 1rem;
        margin-bottom: 1.5rem;
        text-align: left;
    }

    .feature-item {
        padding: 0.8rem; /* Reduce padding */
        font-size: 0.9rem;
    }

    .section-button {
        padding: 0.8rem 1.5rem; /* Reduce padding */
        font-size: 0.9rem;
    }

    /* Join team section */
    .join-team-title {
        font-size: 2rem; /* Reduce from 3rem */
    }

    .join-team-desc {
        font-size: 1rem; /* Reduce from 1.2rem */
        padding: 0 0.5rem;
    }

    .join-team-features {
        grid-template-columns: 1fr; /* Single column */
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .join-team-feature {
        padding: 1rem; /* Reduce padding */
        font-size: 0.9rem;
    }

    .join-team-button {
        padding: 1rem 2rem; /* Reduce padding */
        font-size: 1rem;
    }

    /* Achievements section */
    .achievements-container {
        grid-template-columns: 1fr;
        gap: 3rem; /* Reduce gap */
        padding: 0 1rem;
    }

    .achievements-title {
        font-size: 1.8rem; /* Reduce from 2.5rem */
    }

    .achievements-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 1rem;
        margin: 2rem 0;
    }

    .achievement-stat {
        padding: 1.5rem 1rem; /* Reduce padding */
    }

    .stat-number {
        font-size: 2rem; /* Reduce from 3rem */
    }

    .stat-label {
        font-size: 1rem;
    }

    .universities-showcase h4 {
        font-size: 1.2rem; /* Reduce from 1.4rem */
        margin-bottom: 1rem;
    }

    .university-tags {
        gap: 0.5rem; /* Reduce gap */
        padding: 0 0.5rem;
    }

    .university-tag {
        padding: 0.5rem 1rem; /* Reduce padding */
        font-size: 0.85rem; /* Reduce font size */
    }

    .achievement-list li {
        margin-bottom: 1rem; /* Reduce margin */
        padding: 0.8rem; /* Reduce padding */
        font-size: 0.9rem;
        flex-direction: row; /* Stack icon and text */
        text-align: left;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .achievement-list li i {
        font-size: 1.2rem; /* Reduce icon size */
    }

    /* Visual cards */
    .visual-card {
        padding: 2rem 1rem; /* Reduce padding */
    }

    .visual-icon {
        font-size: 2.5rem; /* Reduce from 3rem */
    }

    .visual-title {
        font-size: 1.3rem; /* Reduce from 1.5rem */
    }

    .visual-desc {
        font-size: 0.9rem;
    }
}

/* Staggered animation for photo containers */
a:nth-child(1) .photo-container {
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.5s forwards;
}

a:nth-child(2) .photo-container {
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.7s forwards;
}

a:nth-child(3) .photo-container {
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.9s forwards;
}