/* ============================================
   Schooliofy - Creative & Professional Design
   ============================================ */

/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Fredoka+One&display=swap');

/* ===== Variables ===== */
:root {
    --primary: #F2CB34;
    /* Gold / Yellow */
    --secondary: #4B1D0A;
    /* Dark Brown */
    --accent-1: #4ECDC4;
    /* Teal */
    --accent-2: #FF6B6B;
    /* Coral */
    --accent-3: #06D6A0;
    /* Green */
    --accent-4: #FFD166;
    /* Light Yellow */
    --dark: #2C3E50;
    --light: #F9F9F9;
    --white: #FFFFFF;
    --gray: #6c757d;
    --gradient-1: linear-gradient(135deg, var(--primary), var(--accent-4));
    --gradient-2: linear-gradient(135deg, var(--secondary), #5A2810);
    --gradient-3: linear-gradient(135deg, var(--accent-1), #3DB8AF);
    --gradient-4: linear-gradient(135deg, var(--accent-2), #FF8E8E);
    --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
    --border-radius-sm: 10px;
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ===== Header ===== */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid var(--primary);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
}

.logo img {
    max-height: 50px;
    /* increased */
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    color: var(--secondary);
    font-size: 28px;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #f9f3e0 0%, #ffe9b0 100%);
    color: var(--secondary);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: var(--secondary);
    opacity: 0.05;
    border-radius: 50%;
    pointer-events: none;
}

.hero h1 {
    font-size: 4.5rem;
    font-family: 'Fredoka One', cursive;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.05);
    animation: fadeInDown 1s ease;
}

.hero .tagline {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary);
    font-weight: 500;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #5a3a1a;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero .stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 50px 0;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero .stat-item {
    text-align: center;
}

.hero .stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--secondary);
    display: block;
    line-height: 1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
}

.btn {
    display: inline-block;
    background: var(--gradient-2);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(75, 29, 10, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(75, 29, 10, 0.4);
    color: var(--secondary);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    box-shadow: none;
}

.btn-outline::before {
    background: var(--secondary);
}

.btn-outline:hover {
    color: var(--white);
}

/* ===== Section Styles ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    font-family: 'Fredoka One', cursive;
    color: var(--secondary);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gradient-1);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ===== Cards ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: translateX(0);
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 35px;
    color: var(--secondary);
    box-shadow: 0 8px 20px rgba(242, 203, 52, 0.3);
    transition: transform 0.3s ease;
}

.card:hover .card-icon {
    transform: rotateY(360deg);
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--secondary);
    font-weight: 700;
}

.card p,
.card ul {
    color: var(--gray);
    line-height: 1.7;
}

.card ul {
    list-style: none;
    padding: 0;
}

.card li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.card li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ===== Stats Banner ===== */
.stats-banner {
    background: var(--gradient-2);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-banner::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--white);
    transform: skewY(-1deg);
}

.stats-banner::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--white);
    transform: skewY(1deg);
}

.stats-banner .stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
}

.stats-banner .stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stats-banner .stat-label {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Partners Grid ===== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.partner-item {
    background: linear-gradient(135deg, #f5f5f5, #eaeaea);
    border-radius: var(--border-radius-sm);
    padding: 25px 15px;
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.partner-item:hover {
    transform: scale(1.05);
    border-left-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* ===== Founder Section ===== */
.founder-section {
    display: flex;
    align-items: center;
    gap: 60px;
    background: linear-gradient(135deg, #f9f3e0, #ffe9b0);
    border-radius: var(--border-radius);
    padding: 60px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.founder-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--primary);
    opacity: 0.1;
    border-radius: 50%;
}

.founder-image {
    flex: 1;
    text-align: center;
    position: relative;
}

.founder-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--white);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.founder-image:hover img {
    transform: scale(1.05);
}

.founder-content {
    flex: 2;
}

.founder-content h3 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 5px;
    font-family: 'Fredoka One', cursive;
}

.founder-content .title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
    font-size: 1.2rem;
}

.founder-content p {
    color: #5a3a1a;
    line-height: 1.8;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), #FFD166);
    color: var(--secondary);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="%234B1D0A" opacity="0.05"/></svg>');
    background-size: cover;
}

.cta-section h2 {
    font-size: 3rem;
    font-family: 'Fredoka One', cursive;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--secondary), #2A1208);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="%23F2CB34" opacity="0.1"/></svg>');
    background-size: cover;
}

.page-header h1 {
    font-size: 3.5rem;
    font-family: 'Fredoka One', cursive;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* ===== Content Pages ===== */
.page-content {
    padding: 80px 0;
    background: var(--white);
}

.page-content h2 {
    color: var(--secondary);
    margin: 40px 0 20px;
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

.page-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin-top: 5px;
}

.page-content h3 {
    color: var(--secondary);
    margin: 30px 0 15px;
    font-size: 1.5rem;
}

.page-content ul,
.page-content ol {
    margin: 20px 0;
    padding-left: 40px;
}

.page-content li {
    margin-bottom: 10px;
}

/* ===== Blog ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary);
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    margin-bottom: 10px;
}

.blog-content h3 a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-meta i {
    color: var(--primary);
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 10px;
}

/* ===== Contact Form ===== */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: var(--border-radius-sm);
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(242, 203, 52, 0.1);
}

.alert {
    padding: 15px;
    margin-bottom: 30px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ===== Footer ===== */
.site-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 80px 0 20px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-1);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.widget h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.widget h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.widget p,
.widget ul {
    margin-bottom: 10px;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 10px;
}

.widget a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.widget a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.widget i {
    margin-right: 8px;
    color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #888;
}

/* ===== Animations ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero .stats {
        gap: 30px;
    }

    .founder-section {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .founder-image img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 0;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        animation: slideDown 0.3s ease;
    }

    .main-nav.active ul {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav.active a {
        color: var(--white);
        display: block;
        padding: 8px 0;
    }

    .main-nav.active a::after {
        background: var(--primary);
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero .tagline {
        font-size: 1.3rem;
    }

    .hero .stats {
        flex-direction: column;
        gap: 20px;
    }

    .stats-banner .stats {
        flex-direction: column;
        gap: 30px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .founder-section {
        padding: 30px;
    }

    .founder-content h3 {
        font-size: 2rem;
    }

    .contact-form {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .stat-number {
        font-size: 2.5rem;
    }

    .btn {
        padding: 12px 25px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .founder-image img {
        width: 200px;
        height: 200px;
    }

    .founder-content h3 {
        font-size: 1.8rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}