:root {
    /* Color Palette */
    --primary-green: #2E7D32;
    /* Forest Green - Nature */
    --primary-green-light: #4CAF50;
    --primary-blue: #0277BD;
    /* Tech Blue - Circuit */
    --primary-blue-dark: #01579B;

    --text-dark: #1A1A1A;
    --text-light: #666666;
    --text-white: #FFFFFF;

    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-dark: #121212;

    --border-color: #E0E0E0;

    /* Spacing */
    --header-height: 80px;
    --container-width: 1200px;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-standard: all 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition-standard);
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    color: var(--text-white);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

/* Header */
.header {
    height: var(--header-height);
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    /* Adjust based on actual logo aspect ratio */
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 16px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: var(--transition-standard);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-close,
.nav-toggle {
    display: none;
}

/* Mobile Menu adjustments would go here in media queries */

/* Main Content Placeholder */
.main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 300px);
    /* Approx footer height */
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    /* Force vertical stacking */
}

/* Hero Section */
.hero-section {
    padding: 120px 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e6f7ff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Footer */
.footer {
    background-color: #050a10;
    /* Darker custom tone for contrast */
    color: var(--text-white);
    padding-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    /* Reduced gap to fit */
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-brand-col {
    flex: 1;
    /* Equal width */
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo-side {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.footer-col {
    flex: 1;
    /* Equal width */
    text-align: center;
    padding-left: 0;
    /* Remove padding for center alignment */
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-green-light) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #A0A0A0;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-green-light);
}

.social-list {
    display: flex;
    gap: 15px;
    justify-content: center;
    /* Center icons */
    padding: 0;
    list-style: none;
    margin: 0;
}

.social-icon {
    font-size: 20px;
    color: #A0A0A0;
    transition: var(--transition-standard);
}

.social-icon:hover {
    color: var(--primary-green-light);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 24px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.built-by a {
    color: var(--primary-green-light);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-standard);
}

.built-by a:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .bar {
        width: 25px;
        height: 2px;
        background-color: var(--text-dark);
        transition: var(--transition-standard);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--bg-white);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 80px 40px;
        flex-direction: column;
        align-items: flex-start;
        transition: var(--transition-standard);
        z-index: 1001;
    }

    .nav-menu.show {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 24px;
        right: 24px;
        font-size: 32px;
        cursor: pointer;
        color: var(--text-dark);
    }

    .header-actions .btn {
        display: none;
    }

    .nav-menu .btn {
        display: block;
        margin-top: 20px;
        width: 100%;
    }

    /* Footer Mobile */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-brand-col {
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .footer-col {
        text-align: center;
        width: 100%;
    }

    .social-list {
        justify-content: center;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    /* Hidden by default */
    left: 0;
    width: 100%;
    background-color: #F0F2F5;
    /* Light grey to contrast with dark footer */
    color: var(--text-dark);
    /* Dark text for readability */
    padding: 20px 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: bottom 0.5s ease;
    border-top: 1px solid var(--primary-green);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    font-size: 14px;
    color: var(--text-dark);
    margin: 0;
}

.cookie-content p a {
    color: var(--primary-blue);
    text-decoration: underline;
    font-weight: 500;
}

.cookie-content p a:hover {
    color: var(--primary-green);
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-standard);
}

.btn-primary {
    background-color: var(--primary-green);
    color: white;
    border: 1px solid var(--primary-green);
}

.btn-primary:hover {
    background-color: var(--primary-green-light);
    border-color: var(--primary-green-light);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid #ccc;
}

.btn-outline:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
}

@media screen and (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Contact Page Styles */
.contact-section {
    padding: 80px 0;
    width: 100%;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    text-align: center;
    max-width: 600px;
}

/* Update info-item to be centered */
/* Update info-item to be centered and clickable */
.info-item {
    justify-content: center;
    text-align: left;
    /* Keep text aligned left for better readability in the block */
    background-color: var(--bg-white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;

    /* Interactive styles */
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}



.page-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-desc {
    margin-bottom: 40px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-green);
    margin-top: 4px;
}

.info-item h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}



@media screen and (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }


}

/* Ebooks Page Styles */
.ebooks-section {
    padding: 60px 0;
}

.construction-container {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.construction-icon {
    font-size: 4rem;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.construction-container h2 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-size: 2rem;
}

.construction-container p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 500px;
}

/* App Loader */
app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

app-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(46, 125, 50, 0.1);
    border-top: 4px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Hero Section - Block 1 */
.hero-section {
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, #e0f2f1 0%, #e3f2fd 100%);
    /* Soft Green to Blue */
    text-align: center;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle separation */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Feature Section - Block 2 */
.features-section {
    padding: 80px 20px;
    background-color: #f8f9fa;
    /* Light Gray to distinguish from Hero and Cards */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 32px;
    border-radius: 12px;
    background: #ffffff;
    /* White card on Gray background */
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

/* Newsletter Section */
.newsletter-section {
    padding: 100px 20px;
    background: var(--primary-blue);
    color: #fff;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.newsletter-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    color: #fff;
}

/* Buttons */
.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

.btn-white {
    background-color: #fff;
    color: var(--primary-blue);
    border: none;
}

.btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}