* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a{
    text-decoration: none;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Hero Section */
#hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.hero-content {
    text-align: center;
    padding: 0 20px;
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 4.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.cta-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    transition: transform 0.3s, background-color 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Content Sections */
.content-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    z-index: 1;
}

.text-card {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 650px;
    margin: 0 auto;
    transition: transform 0.4s ease;
}

.cards-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cards-container .text-card {
    flex: 1;
    min-width: 250px;
}

@media (max-width: 768px) {
    .cards-container {
        flex-direction: column;
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

/* Odd sections styling */
#section1, #section3 {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
}

/* Parallax sections */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

#section2 {
    background-image: url('./img/speaking.jpg');
}

#section4 {
    background-image: url('./img/speaking-2.jpg');
}

.parallax .text-card {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Section 3 Journey Cards */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    color: #2c3e50;
}

.journey-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.journey-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex: 1;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.journey-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.journey-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.journey-arrow {
    flex: 0 0 50px;
    height: 2px;
    background-color: #3498db;
    position: relative;
}

.journey-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #3498db;
}

.journey-card h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: #3498db;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
}

/* Equal height cards for section 1 */
#section1 .journey-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

#section1 .journey-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 200px; /* Set a minimum height for all cards */
  height: 100%;     /* Take up full height of container */
  margin: 0 10px;   /* Add space between cards */
}

#section1 .journey-card h2 {
  margin-top: 0;    /* Remove top margin for consistent spacing */
}

#section1 .journey-card p {
  flex-grow: 1;     /* Allow paragraph to expand and fill space */
}

/* Responsive styles */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .text-card {
        padding: 2rem;
    }
    
    /* Fix for sections bleeding into each other on mobile */
    .content-section {
        height: auto;
        min-height: 100vh;
        padding: 4rem 1.5rem;
    }
    
    #hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 1rem;
    }
    
    .journey-container {
        margin: 2rem 0;
    }
    
    .journey-card {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        margin: 1rem 0 2rem;
    }
    
    /* Add space between sections */
    #section1, #section2, #section3, #section4 {
        scroll-margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Additional fixes for very small screens */
    .content-section {
        padding: 3rem 1rem;
    }
    
    .text-card {
        padding: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .journey-container {
        flex-direction: column;
    }
    
    .journey-arrow {
        flex: 0 0 30px;
        width: 2px;
        height: 40px;
        background-color: #3498db;
    }
    
    .journey-arrow::after {
        right: 50%;
        top: 100%;
        transform: translateX(50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 10px solid #3498db;
        border-bottom: none;
    }
    
    /* Fix for sections on tablets */
    .content-section {
        height: auto;
        min-height: 100vh;
    }
}

/* Footer Styles */
footer {
    background-color: white;
    padding: 15px 0;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer-left {
    color: #333;
}

.footer-right a {
    color: #333;
    text-decoration: none;
}

.footer-right a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}
