* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    overflow-x: hidden;
    background: #ffffff;
}

/* Parallax Container */
.parallax-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.content-layer {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8faf9 50%, #ffffff 100%);
    position: relative;
}

.hero-bg {
    background: radial-gradient(ellipse at center, rgba(0, 119, 122, 0.05) 0%, transparent 70%);
}

/* Grid Background */
.grid-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 119, 122, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 119, 122, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Course Elements Canvas */
.course-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

#courseCanvas {
    width: 100%;
    height: 100%;
}

/* Floating Geometric Shapes */
.hero-shape {
    position: absolute;
    opacity: 0.12;
    animation: floatShape 25s ease-in-out infinite;
    border: 1px solid #00777a;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
    animation-delay: 0s;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: linear-gradient(135deg, #06402b 0%, #00777a 100%);
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -100px;
    animation-delay: 3s;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    background: linear-gradient(225deg, #00777a 0%, #06402b 100%);
}

.hero-shape-3 {
    width: 250px;
    height: 250px;
    top: 40%;
    right: 5%;
    animation-delay: 6s;
    border-radius: 50%;
    background: radial-gradient(circle, #00777a 0%, transparent 70%);
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.06;
    }
    50% {
        transform: translate(-30px, 20px) rotate(180deg);
        opacity: 0.08;
    }
}

/* Glow Lines */
.glow-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.glow-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00777a, transparent);
    animation: glowLine 12s ease-in-out infinite;
}

.glow-line-1 {
    top: 20%;
    width: 60%;
    left: -60%;
    animation-delay: 0s;
}

.glow-line-2 {
    top: 60%;
    width: 40%;
    right: -40%;
    animation-delay: 4s;
}

.glow-line-3 {
    top: 80%;
    width: 50%;
    left: -50%;
    animation-delay: 8s;
}

@keyframes glowLine {
    0% {
        transform: translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.2;
    }
    100% {
        transform: translateX(200vw);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    color: #06402b;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accent Line Above Title */
.accent-line {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00777a, transparent);
    margin: 0 auto 2rem;
    animation: expandLine 1s ease-out;
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 80px;
        opacity: 1;
    }
}

.logo {
    font-size: 4.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #06402b 0%, #00777a 50%, #06402b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 1s ease-out;
    position: relative;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 200;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: rgba(6, 64, 43, 0.8);
    animation: fadeIn 1.5s ease-out;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
}

.hero-topics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    animation: fadeIn 1.8s ease-out;
}

.topic-tag {
    font-size: 0.95rem;
    font-weight: 400;
    color: #00777a;
    padding: 8px 24px;
    border: 1px solid rgba(0, 119, 122, 0.3);
    border-radius: 4px;
    background: rgba(0, 119, 122, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.topic-tag:hover {
    border-color: #00777a;
    background: rgba(0, 119, 122, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 122, 0.3);
}

.hero-description {
    font-size: 1.05rem;
    font-weight: 300;
    margin-bottom: 3.5rem;
    color: rgba(6, 64, 43, 0.7);
    animation: fadeIn 2s ease-out;
    line-height: 1.8;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.3px;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 2.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cta-button {
    display: inline-block;
    padding: 16px 45px;
    color: white;
    text-decoration: none;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.cta-primary {
    background: linear-gradient(135deg, #06402b, #00777a);
    box-shadow: 0 5px 25px rgba(0, 119, 122, 0.4);
    border: 1px solid #00777a;
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00777a, #06402b);
    transition: all 0.3s ease;
    z-index: -1;
}

.cta-primary:hover::before {
    left: 0;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 119, 122, 0.6);
}

.cta-secondary {
    background: transparent;
    border: 1px solid rgba(6, 64, 43, 0.4);
    color: #06402b;
    box-shadow: 0 5px 20px rgba(6, 64, 43, 0.1);
}

.cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(6, 64, 43, 0.05);
    transition: all 0.3s ease;
    z-index: -1;
}

.cta-secondary:hover {
    border-color: #06402b;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(6, 64, 43, 0.2);
}

.cta-secondary:hover::before {
    left: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 20;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    stroke: #00777a;
    fill: none;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 10px rgba(0, 119, 122, 0.5));
}

/* Corner Accents */
.corner-accent {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(0, 119, 122, 0.3);
    z-index: 5;
}

.corner-top-left {
    top: 40px;
    left: 40px;
    border-right: none;
    border-bottom: none;
}

.corner-top-right {
    top: 40px;
    right: 40px;
    border-left: none;
    border-bottom: none;
}

.corner-bottom-left {
    bottom: 40px;
    left: 40px;
    border-right: none;
    border-top: none;
}

.corner-bottom-right {
    bottom: 40px;
    right: 40px;
    border-left: none;
    border-top: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        display: flex;
        align-items: center;
        padding: 0 15px;
    }

    .hero-content {
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        max-height: 100vh;
    }

    .accent-line {
        width: 50px;
        margin-bottom: 1rem;
    }

    .logo {
        font-size: 1.8rem;
        letter-spacing: 1px;
        margin-bottom: 0.8rem;
        line-height: 1.1;
    }

    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }

    .hero-topics {
        gap: 10px;
        margin-bottom: 1.2rem;
        flex-wrap: wrap;
    }

    .topic-tag {
        font-size: 0.65rem;
        padding: 5px 12px;
        letter-spacing: 0.5px;
    }

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .cta-buttons {
        gap: 12px;
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 0.75rem;
        width: 100%;
        text-align: center;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator svg {
        width: 24px;
        height: 24px;
    }

    .corner-accent {
        width: 40px;
        height: 40px;
    }

    .corner-top-left,
    .corner-top-right {
        top: 15px;
    }

    .corner-bottom-left,
    .corner-bottom-right {
        bottom: 15px;
    }

    .corner-top-left,
    .corner-bottom-left {
        left: 15px;
    }

    .corner-top-right,
    .corner-bottom-right {
        right: 15px;
    }

    /* Adjust grid for mobile */
    .grid-background {
        background-size: 30px 30px;
    }

    /* Make glow lines shorter on mobile */
    .glow-line-1,
    .glow-line-2,
    .glow-line-3 {
        width: 30%;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .topic-tag {
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    .cta-button {
        padding: 11px 25px;
        font-size: 0.7rem;
    }
}

/* Landscape mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
    }

    .logo {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }

    .subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .hero-topics {
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 10px;
        max-width: 100%;
    }

    .cta-button {
        padding: 10px 25px;
        font-size: 0.7rem;
        width: auto;
    }

    .scroll-indicator {
        display: none;
    }
}