/* Base Styles */
:root {
    --primary-color: #fff;
    --accent-color: #F0C14B;
    --accent-light: #f5d67d;
    --accent-dark: #e0b038;
    --text-color: #333;
    --text-light: #777;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --premium-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --premium-gradient: linear-gradient(135deg, var(--accent-color) 0%, #e6a819 100%);
    --subtle-gradient: linear-gradient(135deg, #f9f9f9 0%, #f1f1f1 100%);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--primary-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}
ul.dropdown-menu {
    display: none;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(224, 176, 56, 0.3);
}

/* Wave Shape */
.wave-shape {
    position: absolute;
    width: 100%;
    height: 150px;
    bottom: -2px;
    left: 0;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    border-bottom: 1px solid rgba(240, 193, 75, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--premium-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    position: relative;
    padding: 5px 0;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--premium-gradient);
    border-radius: 10px;
}

.logo span {
    position: relative;
    display: inline-block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
    overflow: hidden;
    margin-top: 75px;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-color) 0%, #000 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    letter-spacing: -1px;
}

.hero h1 span {
    background: var(--premium-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: block;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0;
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--premium-gradient);
    border-radius: 10px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    color: var(--text-light);
    animation: fadeInUp 1.2s ease-out;
}

.hero .btn {
    animation: fadeInUp 1.4s ease-out;
    box-shadow: 0 10px 30px rgba(240, 193, 75, 0.3);
    padding: 14px 36px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-dark);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero .btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.wave-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(135deg, rgba(240, 193, 75, 0.03) 0%, rgba(240, 193, 75, 0.08) 100%);
    clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(240, 193, 75, 0.15) 0%, rgba(240, 193, 75, 0) 70%);
    border-radius: 50%;
    animation: pulse 10s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(240, 193, 75, 0.1) 0%, rgba(240, 193, 75, 0) 70%);
    border-radius: 50%;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

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

/* Start Learning Section */
.start-learning {
    background-color: #f9f9f9;
    padding: 40px 0;
}

.start-learning-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.start-learning-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-info {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
}

.contact-item i {
    margin-right: 10px;
    font-size: 1.2rem;
    color: var(--accent-color);
}

/* Features Section */
.features {
    position: relative;
    background-color: white;
}

.section-title {
    margin-bottom: 70px;
    text-align: center;
}

.section-title h2 {
    font-size: 2.8rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    background: linear-gradient(135deg, var(--text-color) 0%, #000 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--premium-gradient);
    border-radius: 10px;
}

.section-title h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: rgba(240, 193, 75, 0.3);
    border-radius: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    perspective: 1000px;
}

.feature-card {
    background-color: white;
    border-radius: 12px;
    padding: 40px 30px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(240, 193, 75, 0.05);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, rgba(240, 193, 75, 0.5) 0%, rgba(240, 193, 75, 0) 70%);
    z-index: -2;
    transform: scale(0.95);
    filter: blur(20px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-15px) translateZ(30px);
    box-shadow: var(--card-shadow);
    border-color: rgba(240, 193, 75, 0.1);
}

.feature-card:hover::after {
    opacity: 0.8;
    transform: scale(1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 15px;
    transition: var(--transition);
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--premium-gradient);
    transition: var(--transition);
}

.feature-card:hover h3 {
    background: var(--premium-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.feature-card:hover h3::after {
    width: 60px;
}

.feature-card h3 span {
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: 700;
    transition: var(--transition);
}

.feature-card p {
    position: relative;
    z-index: 1;
}

/* Signup Section */
.signup {
    position: relative;
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    overflow: hidden;
}

.signup::before {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(240, 193, 75, 0.15) 0%, rgba(240, 193, 75, 0) 70%);
    border-radius: 50%;
    animation: pulse 15s infinite alternate;
}

.signup::after {
    content: '';
    position: absolute;
    top: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 193, 75, 0.1) 0%, rgba(240, 193, 75, 0) 70%);
    border-radius: 50%;
    animation: pulse 20s infinite alternate-reverse;
}

.signup-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.signup-text {
    flex: 1;
    min-width: 300px;
}

.signup-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color) 0%, #000 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: -0.5px;
}

.signup-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--premium-gradient);
    border-radius: 10px;
}

.signup-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
    max-width: 90%;
}

.signup-form {
    flex: 1;
    min-width: 350px;
    background-color: white;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: var(--premium-shadow);
    border: 1px solid rgba(240, 193, 75, 0.1);
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

.signup-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-color) 0%, rgba(240, 193, 75, 0.3) 50%, rgba(240, 193, 75, 0) 100%);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.signup-form:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
}

.signup-form:hover::before {
    opacity: 1;
}

/* Form enhancements */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: var(--transition);
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(240, 193, 75, 0.15);
    background-color: white;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

textarea.form-control {
    min-height: 60px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 6px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.radio-label input {
    margin-right: 8px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 6px;
    font-weight: 500;
    display: none;
}

.form-control.error {
    border-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
}

.form-control.valid {
    border-color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.05);
}

#form-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

#form-message.success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #27ae60;
    display: block;
}

#form-message.error {
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    display: block;
}

.signup-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(240, 193, 75, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.signup-form .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-dark);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.signup-form .btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Footer */
footer {
    background-color: #f9f9f9;
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(240, 193, 75, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(240, 193, 75, 0) 0%, 
        rgba(240, 193, 75, 0.5) 50%, 
        rgba(240, 193, 75, 0) 100%);
}

.footer-text {
    color: var(--text-light);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    padding: 10px 20px;
}

.footer-text::before,
.footer-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(240, 193, 75, 0.5) 0%, 
        rgba(240, 193, 75, 0) 100%);
}

.footer-text::before {
    left: -20px;
}

.footer-text::after {
    right: -20px;
    transform: rotate(180deg);
}

.heart {
    color: #e25555;
    display: inline-block;
    animation: heartbeat 1.5s infinite;
    transform-origin: center;
    margin: 0 3px;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.3);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1);
    }
}

/* Wave Animation */
@keyframes wave {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(0);
    }
}

.animated-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0 C150,90 350,0 500,100 C650,190 750,100 900,50 C1050,0 1150,90 1200,80 L1200,120 L0,120 Z" style="fill: white;"/></svg>');
    background-repeat: repeat-x;
    animation: wave 20s linear infinite;
}
.mobile-menu-toggle {
    display: none;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h1 span {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    
    .nav-links {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
        overflow-y: auto;
        max-height: calc(100vh - 75px);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid rgba(240, 193, 75, 0.1);
    }
    
    .nav-links li a {
        padding: 12px 25px;
        width: 100%;
    }
    
    ul.dropdown-menu {
        position: static;
        width: 100%;
        min-width: auto;
        box-shadow: none;
        border-radius: 0;
        border: none;
        padding: 0 0 0 15px;
        background-color: #f9f9f9;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none !important;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 1000px;
        padding: 10px 0 10px 15px;
    }
    
    .dropdown-toggle i {
        transition: all 0.3s ease;
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .nested-menu {
        position: static;
        width: 100%;
        min-width: auto;
        box-shadow: none;
        border-radius: 0;
        border: none;
        padding: 0 0 0 15px;
        background-color: #f5f5f5;
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s ease;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .nested-dropdown.active .nested-menu {
        max-height: 1000px;
        padding: 10px 0 10px 15px;
    }
    
    .nested-dropdown.active .nested-toggle i {
        transform: rotate(90deg);
    }
    
    .dropdown-menu li, .nested-menu li {
        margin: 0;
    }
    
    .dropdown:hover .dropdown-menu,
    .nested-dropdown:hover .nested-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .hero {
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h1 span {
        font-size: 1.5rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .wave-bg {
        width: 80%;
    }
    
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h1 span {
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .signup-form {
        padding: 30px 20px;
    }
    
    .dropdown-menu,
    .nested-menu {
        min-width: auto;
    }
}

/* iOS and Android specific fixes */
@media (hover: none) {
    /* Target touch devices */
    .dropdown-menu,
    .nested-menu {
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    /* Fix for iOS form elements */
    input, 
    textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
    
    /* Improve touch targets */
    .nav-links a,
    .dropdown-menu a,
    .nested-menu a,
    .btn,
    .form-control {
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

/* Fix for notched phones */
@supports (padding: env(safe-area-inset-top)) {
    .hero, 
    header,
    .nav-links.active {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    .nav-links.active {
        padding-bottom: env(safe-area-inset-bottom);
    }
}