/* Ivy Minds Academy Website Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
    font-weight: 400;
}

/* Header Styles */
header {
    background: #ffffff;
    color: #1d1d1f;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 64px;
    transition: all 0.3s ease;
}

header.scrolled {
    background: #ffffff;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    height: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    flex-shrink: 0;
}

.logo-image {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-image img {
    height: 80px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
}

.logo-text {
    text-decoration: none;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
    white-space: nowrap;
}

.logo-text:hover {
    color: #0066cc;
}

.logo-text-only {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-text-only a {
    text-decoration: none;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.logo-text-only a:hover {
    color: #0066cc;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-menu li {
    display: flex;
    align-items: center;
    height: 100%;
    flex-shrink: 0;
}

.nav-menu a {
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.05);
}

.nav-menu a.active {
    color: #0066cc;
    background: rgba(0, 102, 204, 0.08);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #1d1d1f;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
main {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* Hero Section */
.hero {
    background: #ffffff;
    color: #1d1d1f;
    padding: 6rem 2rem 4rem;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-logo {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: contain;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: #86868b;
    line-height: 1.4;
}

/* Page Hero (for interior pages) */
.hero.page-header {
    text-align: center;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 6rem 2rem 4rem;
}

.hero.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    max-width: 800px;
}

.hero.page-header .tagline {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.125rem;
    margin: 0 0 2.5rem;
    line-height: 1.6;
    color: #1d1d1f;
    max-width: 600px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    background: #1d1d1f;
    color: #ffffff;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 500;
    font-size: 17px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    margin-right: 1rem;
    line-height: 1;
}

.btn:hover {
    background: #424245;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #1d1d1f;
    color: #1d1d1f;
    padding: 12px 26px;
}

.btn-secondary:hover {
    background: #1d1d1f;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-secondary:hover {
    background: #f39c12;
    color: white;
}

/* Navigation specific button styling */
.nav-menu .btn {
    color: #ffffff !important;
    background: #0066cc;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    margin-left: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-menu .btn:hover {
    color: #ffffff !important;
    background: #0052a3;
}

/* Navigation contact number styling */
.nav-contact {
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    border-radius: 6px;
    background: rgba(107, 114, 128, 0.06);
    margin: 0 4px;
    flex-shrink: 0;
}

/* Sections */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section h3 {
    font-size: 1.5rem;
    color: #1d1d1f;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.section p {
    line-height: 1.6;
    color: #1d1d1f;
    font-size: 17px;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
    align-items: stretch;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Cards */
.card {
    background: #f5f5f7;
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e5e5e7;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #ffffff;
}

.card h3 {
    color: #1d1d1f;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.375rem;
}

.card p {
    line-height: 1.6;
    color: #1d1d1f;
    font-size: 17px;
}

.card p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonial {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e5e5e7;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.testimonial:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.testimonial-text {
    font-style: italic;
    font-size: 17px;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #1d1d1f;
}

.testimonial-author {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 16px;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #1d1d1f;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ecf0f1;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Pricing */
.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured {
    border: 3px solid #f39c12;
    transform: scale(1.05);
}

.pricing-card.featured::before {
    content: "Most Popular";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #f39c12;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: #3498db;
    margin: 1rem 0;
}

.price span {
    font-size: 1rem;
    color: #7f8c8d;
}

/* Footer */
footer {
    background: #1d1d1f;
    color: #86868b;
    text-align: center;
    padding: 3rem 2rem 1rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.footer-section h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section a {
    color: #86868b;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #424245;
    padding-top: 1rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        height: 50px;
    }
    
    main {
        margin-top: 50px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 0 0 16px 16px;
    }

    .nav-menu li {
        height: auto;
        width: 100%;
    }

    .nav-menu a {
        padding: 1rem 1.5rem;
        font-size: 18px;
        border-radius: 12px;
        width: 100%;
        justify-content: center;
    }

    .nav-contact {
        padding: 1rem 1.5rem;
        font-size: 18px;
        justify-content: center;
        background: rgba(107, 114, 128, 0.12);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 4rem 2rem 3rem;
        min-height: calc(100vh - 64px);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-logo {
        flex: none;
        order: 1;
    }

    .hero-logo img {
        max-width: 200px;
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero .tagline {
        font-size: 1.25rem;
    }

    .hero p {
        font-size: 16px;
        max-width: 100%;
    }

    .btn {
        display: block;
        margin: 0.5rem auto;
        text-align: center;
        max-width: 280px;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-image img {
        height: 48px;
    }

    .logo-container {
        gap: 0.6rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .grid {
        gap: 1rem;
    }

    .pricing-card.featured {
        transform: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

.highlight {
    background: linear-gradient(120deg, #1d1d1f 0%, #1d1d1f 100%);
    background-size: 100% 40%;
    background-position: 0 80%;
    padding: 0 5px;
    color: #ffffff;
    border-radius: 4px;
}
