/* CSS Variables */
:root {
    --color-primary: #574092;
    /* Updated Purple Brand */
    --color-secondary: #01AFC8;
    /* Updated Cyan Accent */
    --color-bg-start: #ECE9F6;
    --color-bg-end: #FFFFFF;
    --color-text-dark: #333333;
    --color-text-light: #FFFFFF;
    --color-white: #FFFFFF;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --shadow-soft: 0 10px 30px rgba(87, 64, 146, 0.1);
    --shadow-hover: 0 20px 40px rgba(1, 175, 200, 0.2);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --transition-speed: 0.3s;
    --gradient-primary: linear-gradient(135deg, #574092 0%, #7B5AA6 100%);
    --gradient-accent: linear-gradient(135deg, #01AFC8 0%, #4DD0E1 100%);
    --gradient-hero: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    /* Subtle base */
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background: linear-gradient(to bottom, #F9FAFB, #FFFFFF);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--color-secondary);
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-login {
    display: inline-block;
	margin: 2px;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 6px rgba(107, 68, 146, 0.3);
}

.btn-primary:hover {
    background-color: #58387a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(107, 68, 146, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-login {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
}

.btn-login:hover {
    background-color: #239eb8;
    transform: scale(1.05);
}

/* Navbar - Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-weight: 600;
    color: var(--color-text-dark);
    position: relative;
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-secondary);
    transition: width var(--transition-speed);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-primary);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    /* Space for fixed navbar */
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 10% 20%, rgba(1, 175, 200, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(87, 64, 146, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, rgba(240, 245, 255, 0.5) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 1s ease;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease;
    width: 100%;
    max-width: 600px;
    /* Limit width */
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius-lg);
    border: 5px solid var(--color-white);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    aspect-ratio: 4/3;
    /* Maintain aspect ratio */
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.carousel-container:hover {
    transform: rotate(0) scale(1.02);
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 5;
}

.carousel-btn:hover {
    background: var(--color-white);
    color: var(--color-secondary);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
    background: var(--color-white);
    transform: scale(1.2);
}

/* About Section */
.about-ces {
    padding: 80px 0;
    background-color: var(--color-white);
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Features Section - Soft UI Cards */
.features {
    padding: 80px 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(1, 175, 200, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(87, 64, 146, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8) 0%, rgba(240, 245, 255, 0.5) 100%);
    color: var(--color-text-dark);
}

.features h2 {
    color: var(--color-primary);
    /* Reset to primary color for contrast on light bg */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 4px solid var(--color-white);
    /* Sticker effect base */
    transition: all var(--transition-speed);
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-secondary);
    /* Highlight on hover */
}

.icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(87, 64, 146, 0.08), rgba(1, 175, 200, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-primary);
    font-size: 1.8rem;
    transition: all var(--transition-speed);
}

.feature-card:hover .icon-box {
    background: var(--gradient-accent);
    color: var(--color-white);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: var(--color-white);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.cta-section .btn-primary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.cta-section .btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: var(--color-secondary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
}

.social-icons a:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Motto Section */
.motto-section {
    padding: 60px 0;
    background-color: #F9FAFB;
    display: flex;
    justify-content: center;
}

.quote-card-static {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--color-secondary);
    /* Accent border */
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.quote-card-static i {
    color: var(--color-secondary);
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.quote-card-static p {
    color: var(--color-primary);
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.4;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        left: -100%;
        top: 100%;
        flex-direction: column;
        background-color: var(--color-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    h1 {
        font-size: 2rem;
    }

    .hero {
        padding-top: 100px;
    }
}