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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2563eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "🎓";
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-menu a:hover {
    color: #2563eb;
    background: #f1f5f9;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-login {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #f1f5f9;
}

.btn-register {
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #2563eb;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #545f75 0%, #253966 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 30s infinite linear;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50px, -50px);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease-out;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: slideInLeft 1s ease-out 0.3s both;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: slideInLeft 1s ease-out 0.6s both;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInLeft 1s ease-out 0.9s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #ff6b6b;
    color: white;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-visual {
    position: relative;
    animation: slideInRight 1s ease-out 0.6s both;
}

.image-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    padding: 3rem 2rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

/* Features illustration specific styling */
.features-visual .image-placeholder {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e0;
    color: #64748b;
    backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.features-visual .image-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(102, 126, 234, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

/* Course thumbnail specific styling */
.course-header .image-placeholder {
    background: linear-gradient(135deg, #545f75 0%, #253966 100%);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: none;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.course-header .image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="25" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.12)"/><circle cx="25" cy="75" r="1.5" fill="rgba(255,255,255,0.09)"/><circle cx="75" cy="75" r="2" fill="rgba(255,255,255,0.11)"/></svg>') repeat;
    opacity: 0.6;
}

.course-header .image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: courseShimmer 2s ease-in-out infinite;
}

@keyframes courseShimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: -100%;
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(0%) translateY(0%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stats Section */
.stats-section {
    background: #f8fafc;
    padding: 3rem 0;
    margin-top: -20px;
    position: relative;
    z-index: 3;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Course Categories */
.categories {
    padding: 5rem 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #545f75, #253966);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #545f75, #253966);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.category-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.course-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: #f8fafc;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.features-text h2 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.features-text p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.feature-check {
    width: 24px;
    height: 24px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Popular Courses */
.popular-courses {
    padding: 5rem 0;
    background: white;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.course-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.course-header {
    position: relative;
    overflow: hidden;
}

.course-level {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
}

.course-body {
    padding: 1.5rem;
}

.course-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.course-instructor {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-duration {
    color: #64748b;
    font-size: 0.9rem;
}

.course-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2563eb;
}

/* Testimonials */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, #545f75 0%, #253966 100%);
    color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.star {
    color: #fbbf24;
    font-size: 1.2rem;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.author-info h4 {
    margin-bottom: 0.25rem;
}

.author-info p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #545f75, #253966);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #64748b;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
}

/* iPad Pro Specific Optimizations */
@media screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    /* iPad Pro 12.9" and 11" in landscape */
    .hero {
        padding: 140px 0 100px;
        min-height: 80vh;
    }
    
    .hero-content {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 4rem;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 2.5rem;
    }
    
    .hero-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .feature-tag {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
        text-align: center;
    }
    
    .hero-buttons {
        display: flex;
        gap: 1.5rem;
        justify-content: flex-start;
    }
    
    .btn {
        padding: 1.1rem 2.5rem;
        font-size: 1.05rem;
        min-width: 200px;
    }
    
    .hero-visual img {
        max-height: 500px !important;
        width: 100%;
        object-fit: cover;
    }
    
    /* Popular Courses - 3 columns on iPad Pro landscape */
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .course-card {
        max-width: none;
    }
    
    .course-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .course-body {
        padding: 1.2rem;
    }
    
    /* Testimonials - 3 columns on iPad Pro landscape */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Contact Info - 2 columns on iPad Pro landscape */
    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-info h3 {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
}

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* iPad Pro in portrait mode */
    .hero {
        padding: 120px 0 80px;
        min-height: 75vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero-text p {
        font-size: 1.15rem;
        line-height: 1.6;
        margin-bottom: 2rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 2.5rem;
        justify-content: center;
    }
    
    .feature-tag {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-buttons {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
        min-width: 220px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-visual img {
        max-height: 400px !important;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        display: block;
    }
    
    /* Popular Courses - 3 columns on iPad Pro portrait */
    .courses-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .course-card {
        max-width: none;
    }
    
    .course-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
    }
    
    .course-body {
        padding: 1rem;
    }
    
    .course-instructor {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .course-meta {
        margin-bottom: 0.8rem;
    }
    
    .course-rating {
        font-size: 0.85rem;
    }
    
    .course-duration {
        font-size: 0.8rem;
    }
    
    .course-price {
        font-size: 1rem;
    }
    
    /* Testimonials - 3 columns on iPad Pro portrait */
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .testimonial-card {
        padding: 1.2rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .testimonial-author {
        gap: 0.8rem;
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .author-info h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .author-info p {
        font-size: 0.8rem;
    }
    
    /* Contact Info - 2 columns on iPad Pro portrait */
    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-info h3 {
        grid-column: 1 / -1;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .contact-details h4 {
        font-size: 1rem;
    }
    
    .contact-details p {
        font-size: 0.9rem;
    }
}

/* iPad Mini Specific Optimizations */
@media screen and (min-width: 768px) and (max-width: 820px) and (orientation: landscape) {
    /* iPad Mini in landscape */
    .hero {
        padding: 100px 0 70px;
        min-height: 75vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1.2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.8rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        margin-bottom: 2rem;
        justify-content: center;
    }
    
    .feature-tag {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        text-align: center;
    }
    
    /* Hero Buttons - 2 columns on iPad Mini */
    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .hero-visual img {
        max-height: 350px !important;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        display: block;
    }
    
    /* Course Categories - 2 columns on iPad Mini landscape */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .category-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .category-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    .course-count {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Features Section - 2 columns on iPad Mini landscape */
    .features-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .features-text {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .features-text h2 {
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }
    
    .features-text p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .features-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .features-list li {
        margin-bottom: 0;
        padding: 1rem;
        text-align: left;
    }
    
    .features-list li div strong {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
        display: block;
    }
    
    .features-list li div p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0;
    }
    
    .features-visual {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .features-visual img {
        max-height: 350px !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 820px) and (orientation: portrait) {
    /* iPad Mini in portrait */
    .hero {
        padding: 100px 0 60px;
        min-height: 70vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
        margin-bottom: 2rem;
        justify-content: center;
    }
    
    .feature-tag {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        text-align: center;
    }
    
    /* Hero Buttons - 2 columns on iPad Mini portrait */
    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .btn {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-visual img {
        max-height: 300px !important;
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        display: block;
    }
    
    /* Course Categories - 2 columns on iPad Mini portrait */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.2rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .category-card h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }
    
    .category-card p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .course-count {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Features Section - 2 columns on iPad Mini portrait */
    .features-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .features-text {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .features-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .features-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }
    
    .features-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .features-list li {
        margin-bottom: 0;
        padding: 0.8rem;
        text-align: left;
    }
    
    .features-list li div strong {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
        display: block;
        line-height: 1.3;
    }
    
    .features-list li div p {
        font-size: 0.8rem;
        line-height: 1.3;
        margin: 0;
    }
    
    .features-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .features-visual img {
        max-height: 300px !important;
    }
}

/* Additional iPad Mini specific rules to ensure 2 columns */
@media screen and (min-device-width: 768px) and (max-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 2) {
    /* iPad Mini specific targeting */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.2rem;
    }
    
    .category-card {
        padding: 1.3rem;
    }
    
    .category-icon {
        width: 65px;
        height: 65px;
        font-size: 1.7rem;
        margin-bottom: 1.1rem;
    }
    
    .category-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }
    
    .category-card p {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: 1.1rem;
    }
    
    .course-count {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
    
    /* Features Section - 2 columns on iPad Mini device specific */
    .features-content {
        grid-template-columns: 1fr !important;
        gap: 1.8rem;
        text-align: center;
    }
    
    .features-text {
        max-width: 650px;
        margin: 0 auto;
    }
    
    .features-text h2 {
        font-size: 1.9rem;
        margin-bottom: 1.1rem;
    }
    
    .features-text p {
        font-size: 0.98rem;
        margin-bottom: 1.8rem;
    }
    
    .features-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.9rem;
    }
    
    .features-list li {
        margin-bottom: 0;
        padding: 0.9rem;
        text-align: left;
    }
    
    .features-list li div strong {
        font-size: 0.92rem;
        margin-bottom: 0.35rem;
        display: block;
    }
    
    .features-list li div p {
        font-size: 0.82rem;
        line-height: 1.35;
        margin: 0;
    }
    
    .features-visual {
        order: -1;
        max-width: 550px;
        margin: 0 auto;
    }
    
    .features-visual img {
        max-height: 325px !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .features-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-actions {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 0;
        z-index: 1000;
        border-top: 1px solid #e2e8f0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
        padding: 0.5rem 0;
    }

    .nav-menu a {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        display: block;
        width: 100%;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: 70vh;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-features {
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .course-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .features-text h2 {
        font-size: 2rem;
    }

    .features-list li {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-item {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        align-items: flex-start;
    }

    .contact-icon {
        flex-shrink: 0;
        margin-top: 0.2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 0.5rem;
    }

    .feature-tag {
        width: 100%;
        text-align: center;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .course-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .hero-visual img {
        max-height: 300px !important;
    }

    .features-visual img {
        max-height: 400px !important;
    }

    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    .contact-item {
        padding: 1rem;
        gap: 0.8rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-top: 0;
    }

    .contact-details h4 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .contact-details p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2563eb;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #1d4ed8;
    transform: translateY(-5px);
}

/* Floating Back to Appshop Button */
.back-to-appshop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #2563eb;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-appshop:hover {
    background: #1d4ed8;
    transform: translateY(-5px);
}

.back-to-appshop .back-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.back-to-appshop:hover .back-icon {
    transform: translateX(-2px);
}

/* Show only on mobile devices */
@media (max-width: 767px) {
    .back-to-appshop {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
}