/* 
  Kids Phonics Pondicherry - Styles 
  Theme: Vibrant, Professional, Glassmorphism, Animated
*/

:root {
    /* Authentic Aparna Website Color Palette */
    --primary: #066AAB;
    /* Main Trustworthy Blue */
    --primary-light: #4ba2e3;
    --primary-dark: #044b7a;
    --secondary: #FFB352;
    /* Warm Orange/Yellow */
    --accent: #F2277E;
    /* Vibrant Pink */

    --text-dark: #1E293B;
    --text-light: #64748B;
    --white: #ffffff;
    --bg-light: #f9fafc;
    --bg-body: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #066AAB 0%, #FFB352 100%);
    --gradient-glass: rgba(255, 255, 255, 0.95);

    /* Shadows & Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(6, 106, 171, 0.15);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-blur: blur(10px);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Quicksand', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-body);
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Classes */
.text-white {
    color: var(--white) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.shadow-soft {
    box-shadow: var(--shadow-soft);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.bg-primary {
    background-color: var(--primary);
    color: white;
}

.bg-secondary {
    background-color: var(--secondary);
    color: white;
}

.bg-accent {
    background-color: var(--accent);
    color: white;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism Class */
.glass {
    background: var(--gradient-glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

/* Background Abstract Shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.5;
}

.shape-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary-light);
}

.shape-2 {
    top: 20%;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--accent);
}

.shape-3 {
    bottom: 10%;
    left: 20%;
    width: 500px;
    height: 500px;
    background: var(--secondary);
    opacity: 0.2;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-family: var(--font-heading);
    gap: 0.5rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 112, 67, 0.3);
}

.btn-secondary:hover {
    background: #f4511e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 112, 67, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition-fast);
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.3);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    line-height: 1.1;
    color: var(--primary);
}

.logo-text small {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    color: var(--text-dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Sections Base */
section {
    padding: 6rem 0;
}

.page-header {
    position: relative;
    overflow: hidden;
    padding-top: 130px;
    /* Accounts for fixed navbar without massive gap */
    padding-bottom: 3rem;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content .badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 112, 67, 0.1);
    color: var(--secondary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    position: relative;
}

.hero-image .image-wrapper {
    border-radius: 30px;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: 20px;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.el-1 {
    top: -20px;
    left: -20px;
    animation-delay: 0s;
    color: var(--secondary);
}

.el-2 {
    bottom: 40px;
    right: -20px;
    animation-delay: 2s;
    color: var(--accent);
}

.el-3 {
    top: 50%;
    left: -30px;
    animation-delay: 4s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Stages Section */
.stages {
    background: linear-gradient(135deg, rgba(255, 179, 82, 0.1) 0%, rgba(242, 39, 126, 0.05) 100%);
    position: relative;
}

.stages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.stage-card {
    padding: 2.5rem;
    border-radius: 20px;
    transition: var(--transition-medium);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stage-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stage-card p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* About Section */
.about {
    background: linear-gradient(135deg, rgba(242, 39, 126, 0.05) 0%, rgba(255, 179, 82, 0.05) 100%);
    position: relative;
    padding: 6rem 0;
}

.about::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: inherit;
    transform: skewY(-2deg);
    z-index: -1;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image .image-wrapper {
    border-radius: 30px;
    padding: 1rem;
    transform: rotate(-3deg);
    transition: var(--transition-medium);
}

.about-image:hover .image-wrapper {
    transform: rotate(0deg);
}

.about-image img {
    border-radius: 20px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.about-content .subtitle {
    color: var(--secondary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.mission-box {
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 5px solid var(--accent);
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.mission-box h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.mission-box p {
    margin-bottom: 0;
    font-size: 1rem;
    font-style: italic;
}

/* Testimonials - Crystal Sea Water Animation */
.testimonials {
    background-color: var(--primary-light);
    background-image:
        radial-gradient(circle at 100% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(255, 179, 82, 0.2) 0%, transparent 50%);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before,
.testimonials::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 C150,60 350,0 600,60 C850,120 1050,60 1200,0 L1200,120 L0,120 Z' fill='rgba(6, 106, 171, 0.4)'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: bottom;
    background-size: 50% 100%;
    animation: wave-animation 15s linear infinite;
    z-index: 1;
}

.testimonials::after {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,60 C150,0 350,120 600,60 C850,0 1050,120 1200,60 L1200,120 L0,120 Z' fill='rgba(4, 75, 122, 0.6)'/%3E%3C/svg%3E");
    animation: wave-animation 10s linear infinite reverse;
    opacity: 0.8;
}

@keyframes wave-animation {
    0% {
        transform: translateX(0) scaleY(1);
    }

    50% {
        transform: translateX(-25%) scaleY(1.1);
    }

    100% {
        transform: translateX(-50%) scaleY(1);
    }
}

.testimonials .section-header h2,
.testimonials .section-header p {
    color: var(--white);
    position: relative;
    z-index: 2;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.review-card {
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 5px solid var(--primary-light);
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
}

.review-card p,
.review-card h4,
.review-card span {
    color: var(--text-dark);
}

.review-card span {
    color: var(--text-light);
}

.review-card:nth-child(2) {
    border-top-color: var(--secondary);
}

.review-card:nth-child(3) {
    border-top-color: var(--accent);
}

.stars {
    color: #ffc107;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.reviewer h4 {
    margin: 0;
    font-size: 1.1rem;
}

.reviewer span {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Values Grid (About Page) */
.values-sea-bg {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(6, 106, 171, 0.05) 100%);
    overflow: hidden;
}

.values-sea-bg::before,
.values-sea-bg::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 150px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V95.8C89.37,114.72,176.65,110.87,250.39,92.83A412.39,412.39,0,0,0,321.39,56.44Z" fill="%23066AAB" fill-opacity="0.1"></path></svg>') repeat-x;
    background-size: 50% 100%;
    transform-origin: bottom center;
}

.values-sea-bg::before {
    animation: wave-movement 15s linear infinite;
    z-index: 0;
}

.values-sea-bg::after {
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V120H0V95.8C89.37,114.72,176.65,110.87,250.39,92.83A412.39,412.39,0,0,0,321.39,56.44Z" fill="%234ba2e3" fill-opacity="0.15"></path></svg>') repeat-x;
    background-size: 50% 100%;
    animation: wave-movement 20s linear infinite reverse;
    z-index: 0;
}

@keyframes wave-movement {
    0% {
        transform: translateX(0) scaleY(1);
    }

    50% {
        transform: translateX(-25%) scaleY(1.3);
    }

    100% {
        transform: translateX(-50%) scaleY(1);
    }
}

.values-sea-bg .container {
    position: relative;
    z-index: 2;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition-medium);
    background: #f4f9fd;
    /* Subtle blue tint to contrast with white background */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-top: 5px solid transparent;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.value-card:nth-child(1) {
    border-top-color: var(--primary-light);
}

.value-card:nth-child(2) {
    border-top-color: var(--secondary);
}

.value-card:nth-child(3) {
    border-top-color: var(--accent);
}

.value-card:nth-child(4) {
    border-top-color: var(--primary);
}

.value-card:nth-child(5) {
    border-top-color: var(--primary-dark);
}

.value-card:nth-child(6) {
    border-top-color: #30A820;
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.value-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.value-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Shop Page */
.shop-products {
    background: linear-gradient(135deg, rgba(48, 168, 32, 0.05) 0%, rgba(255, 179, 82, 0.05) 100%);
    position: relative;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
}

@media (min-width: 768px) {
    .product-card {
        flex-direction: row;
        align-items: center;
    }
}

.product-image {
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.product-details {
    padding: 3rem;
    flex: 1;
}

.product-details h2 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
}

.original-price {
    font-size: 1.25rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.product-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.features-grid span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.trust-banner {
    padding: 3rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.05) 0%, rgba(242, 39, 126, 0.05) 100%);
    border-left: 5px solid var(--primary);
}

/* Blog Page */
.blog-section {
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    position: relative;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.blog-card {
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.blog-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    height: auto;
    width: auto;
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--primary);
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition-short);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-link:hover,
.page-link.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(6, 106, 171, 0.2);
}

/* Specific Contact Icon Overrides (Bulletproof) */
#contact-whatsapp {
    background-color: var(--primary-light) !important;
    color: white !important;
}

#contact-instagram {
    background-color: var(--accent) !important;
    color: white !important;
}

#contact-facebook {
    background-color: var(--primary) !important;
    color: white !important;
}

#contact-youtube {
    background-color: var(--secondary) !important;
    color: white !important;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
}

.info-content p,
.info-content a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-word;
    overflow-wrap: break-word;
}

.info-content a:hover {
    color: var(--primary);
}

.social-links-large {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links-large a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.social-links-large a:hover {
    transform: translateY(-5px);
}

.contact-form-block {
    padding: 3rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.05) 0%, rgba(242, 39, 126, 0.05) 100%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(6, 106, 171, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Custom Form Styles */
.custom-form .form-group {
    margin-bottom: 1.5rem;
}

.custom-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1.25rem;
    color: var(--primary);
    font-size: 1.1rem;
    pointer-events: none;
}

.input-wrapper input,
.input-wrapper textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition-fast);
}

.input-wrapper textarea {
    resize: vertical;
    min-height: 120px;
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(6, 106, 171, 0.1);
    background: var(--white);
}

/* CTA Section */
.cta-container {
    padding: 5rem 3rem;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(0, 188, 212, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Footer */
footer {
    background: white;
    padding-top: 5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin: 1.5rem 0;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-newsletter p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition-fast);
}

.newsletter-form input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.newsletter-form button {
    width: 45px;
    padding: 0;
    border-radius: 50%;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-light);
    font-size: 0.875rem;
    text-align: center;
}


/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsive Design */
@media (max-width: 992px) {

    .hero-container,
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .about-image {
        grid-row: 1;
        max-width: 600px;
        margin: 0 auto;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Prevent horizontal overflow on mobile */
    .container {
        padding: 0 1.5rem;
    }

    .header-container {
        justify-content: space-between;
        width: 100%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(244, 249, 253, 0.98);
        /* Soft blue tint for mobile menu */
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .header-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Padding adjustments for mobile */
    section {
        padding: 3rem 0;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 40px;
    }

    /* Typography scaling down */
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    /* Grid layout fixes */
    .stages-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .contact-form-block {
        padding: 2rem 1.5rem;
    }

    .social-links-large {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Scale down the 3D illustration */
    .css-illustration {
        height: 250px;
    }

    .book {
        transform: scale(0.7) rotateX(20deg) rotateZ(-10deg);
    }

    .doodle-text {
        font-size: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .about-image img {
        height: 250px;
    }

    /* Prevent floating elements from causing horizontal scroll */
    .el-1 {
        left: 10px;
    }

    .el-2 {
        right: 10px;
    }

    .el-3 {
        right: -10px;
    }

    /* Keep slight overflow if hidden by parent */
    .el-4 {
        left: 20%;
    }
}

/* Interactive 3D CSS Illustration */
.tilt-container {
    transform-style: preserve-3d;
    cursor: grab;
    will-change: transform;
}

.tilt-container:active {
    cursor: grabbing;
}

.css-illustration {
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, rgba(6, 106, 171, 0.15) 0%, rgba(242, 39, 126, 0.15) 50%, rgba(255, 179, 82, 0.15) 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: translateZ(30px);
    overflow: hidden;
    box-shadow:
        inset 0 0 40px rgba(255, 255, 255, 0.8),
        0 20px 40px rgba(6, 106, 171, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.css-illustration::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(242, 39, 126, 0.2) 0%, transparent 60%);
    animation: rotate-glow 15s linear infinite;
    z-index: -1;
}

@keyframes rotate-glow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Background Doodles */
.doodles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.doodle {
    position: absolute;
    opacity: 0.6;
}

.doodle-1 {
    top: 20px;
    left: 20px;
    animation: drift 10s ease-in-out infinite;
}

.doodle-2 {
    bottom: -10px;
    right: 20px;
    animation: drift 8s ease-in-out infinite reverse;
}

.doodle-text {
    position: absolute;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: rgba(255, 112, 67, 0.4);
    /* Secondary color faint */
    transform-style: preserve-3d;
}

.text-1 {
    top: 15%;
    left: 10%;
    color: rgba(255, 179, 82, 0.6);
    /* Orange faint */
    transform: rotateZ(-15deg);
}

.text-2 {
    bottom: 20%;
    left: 20%;
    color: rgba(6, 106, 171, 0.5);
    /* Blue faint */
    transform: rotateZ(10deg);
}

.text-3 {
    top: 30%;
    right: 15%;
    color: rgba(242, 39, 126, 0.5);
    /* Pink faint */
    transform: rotateZ(25deg);
}

@keyframes drift {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.book {
    position: relative;
    width: 200px;
    height: 140px;
    transform: rotateX(20deg) rotateZ(-10deg);
    transform-style: preserve-3d;
    animation: float-book 5s ease-in-out infinite;
}

@keyframes float-book {

    0%,
    100% {
        transform: translateY(0) rotateX(20deg) rotateZ(-10deg);
    }

    50% {
        transform: translateY(-15px) rotateX(25deg) rotateZ(-5deg);
    }
}

.page-left,
.page-right {
    position: absolute;
    bottom: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    opacity: 0.8;
}

.page-left .page-content {
    color: var(--secondary);
    transform: rotateY(10deg);
}

.page-right .page-content {
    color: var(--accent);
    transform: rotateY(-10deg);
}

/* Blob Cards for Stages */
.blob-card {
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Morphing Blob Body */
.blob-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    transition: border-radius 0.6s ease, transform 0.4s ease, box-shadow 0.4s ease;
    animation: morphing-blob 8s ease-in-out infinite both alternate;
}

/* Playful Bubble Tail */
.blob-card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 40px;
    height: 40px;
    z-index: -2;
    border-radius: 0 0 20px 0;
    transition: var(--transition-medium);
}

.blob-card:nth-child(1)::before {
    background: linear-gradient(135deg, #f768a6 0%, #F2277E 100%);
    animation-delay: 0s;
}

.blob-card:nth-child(1)::after {
    background: #F2277E;
    transform: translateX(-50%) rotate(45deg);
}

.blob-card:nth-child(2)::before {
    background: linear-gradient(135deg, #2b93d6 0%, #066AAB 100%);
    animation-delay: -2s;
    animation-direction: alternate-reverse;
}

.blob-card:nth-child(2)::after {
    background: #066AAB;
    transform: translateX(-50%) rotate(45deg);
}

.blob-card:nth-child(3)::before {
    background: linear-gradient(135deg, #ffd085 0%, #FFB352 100%);
    animation-delay: -4s;
}

.blob-card:nth-child(3)::after {
    background: #FFB352;
    transform: translateX(-50%) rotate(45deg);
}

.blob-card:nth-child(4)::before {
    background: linear-gradient(135deg, #5ce04a 0%, #30A820 100%);
    animation-delay: -6s;
    animation-direction: alternate-reverse;
}

.blob-card:nth-child(4)::after {
    background: #30A820;
    transform: translateX(-50%) rotate(45deg);
}

.blob-card:nth-child(5)::before {
    background: linear-gradient(135deg, #847aff 0%, #5D4FFF 100%);
    animation-delay: -8s;
}

.blob-card:nth-child(5)::after {
    background: #5D4FFF;
    transform: translateX(-50%) rotate(45deg);
}

.blob-card:nth-child(6)::before {
    background: linear-gradient(135deg, #ff6666 0%, #DD3333 100%);
    animation-delay: -10s;
    animation-direction: alternate-reverse;
}

.blob-card:nth-child(6)::after {
    background: #DD3333;
    transform: translateX(-50%) rotate(45deg);
}

@keyframes morphing-blob {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    33% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    66% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

html .stage-card.blob-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: none;
}

.blob-card:hover::before {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation-play-state: paused;
}

.blob-card:hover::after {
    opacity: 0;
    transform: translateX(-50%) rotate(45deg) translateY(20px);
}

.page-left {
    left: 0;
    transform-origin: right center;
    transform: rotateY(15deg);
    border-radius: 15px 5px 5px 15px;
}

.page-right {
    right: 0;
    transform-origin: left center;
    transform: rotateY(-15deg);
    border-radius: 5px 15px 15px 5px;
}

.bookmark {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 80px;
    background: var(--secondary);
    border-radius: 0 0 5px 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.magic-dust {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent);
    animation: sparkle 2s infinite alternate;
}

.dust-1 {
    top: 20%;
    left: 30%;
}

.dust-2 {
    top: 60%;
    right: 20%;
    background: var(--secondary);
    box-shadow: 0 0 15px var(--secondary);
    animation-delay: 0.5s;
}

.dust-3 {
    top: 30%;
    right: 40%;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    animation-delay: 1s;
}

@keyframes sparkle {
    0% {
        transform: scale(0.5) translateY(0);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5) translateY(-20px);
        opacity: 1;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        /* Switch to single column */
        text-align: center;
        /* Center align content */
        gap: 2rem;
        /* Reduce gap */
    }

    .hero-content h1 {
        font-size: 2.5rem;
        /* Scale down heading */
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        /* Stack buttons vertically */
        width: 100%;
        gap: 1rem;
        /* Spacing between stacked buttons */
    }

    .hero-buttons .btn {
        width: 100%;
        /* Full width for easier tap */
    }

    .hero-image {
        margin-top: 2rem;
        /* Space between text and image */
        overflow: hidden;
        /* Prevent floating letters from bleeding */
        border-radius: 30px;
    }

    /* Force floating elements completely inside bounds on small screens */
    .el-1 {
        left: 10px;
        top: 10px;
    }

    .el-2 {
        right: 10px;
        bottom: 10px;
    }

    .el-3 {
        right: 10px;
        top: 10px;
    }
}

/* Certificate Section */
.certificate-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(6, 106, 171, 0.15) !important;
}

.certificate-wrapper img {
    transition: transform 0.4s ease;
}

.certificate-wrapper:hover img {
    transform: scale(1.01);
}