@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #F39C12;
    --background-color: #f4f4f9;
    --text-color: #333;
    --quote-background: linear-gradient(135deg, #fff5e6, #ffe6cc);
    --quote-border: #f0c27b;
    --quote-shadow: rgba(240, 194, 123, 0.2);
    --quote-hover-shadow: rgba(240, 194, 123, 0.3);
    --search-background: rgba(255, 255, 255, 0.9);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.navigation {
    background: linear-gradient(90deg, #151515, #292929);
    color: #fafafa;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 2px solid #F39C12;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.navigation .logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.navigation .logo img {
    margin-right: 15px;
    width: 45px;
    height: 45px;
    transition: transform 0.3s;
}

.navigation .items {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-grow: 2;
    justify-content: end;
}

.navigation .item {
    font-size: 18px;
    font-weight: 500;
    color: #fafafa;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}

.navigation .item:hover {
    color: #F39C12;
    transform: translateY(-3px);
}

.navigation .button-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    flex-grow: 1;
}

/* Button Styles */
.navigation .button {
    padding: 12px 26px;
    background-color: #F39C12;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background 0.3s, transform 0.2s;
}

.navigation .button:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
}

.navigation .button.secondary {
    background-color: transparent;
    color: #fafafa;
    border: 2px solid #F39C12;
}

.navigation .button.secondary:hover {
    background-color: #F39C12;
    color: white;
}

/* Links */
a {
    color: #ffcc00; /* Saffron */
    text-decoration: none;
    border-bottom: none; /* Remove underline */
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffcc00;
    transition: width 0.3s ease;
}

a:hover {
    color: #d4a017; /* Turmeric Gold */
    text-shadow: 0 0 8px rgba(212, 160, 23, 0.3);
}

a:hover::after {
    width: 100%;
}

/* Section */
.section {
    padding: 140px 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, #f4f4f9, #e2e2e6);
    transition: background-color 0.5s ease;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 40px;
    height: 4px;
    background-color: #F39C12;
    transform: translateX(-50%);
}

.section-subtitle {
    color: #828282;
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.section .button {
    padding: 16px 36px;
    background-color: #151515;
    color: #fafafa;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    transition: background-color 0.3s ease, transform 0.2s;
}

.section .button:hover {
    background-color: #333;
    transform: translateY(-3px);
}

/* Images */
.images {
    display: flex;
    justify-content: space-between;
    margin: 60px 0;
    gap: 25px;
    transition: all 0.3s ease;
}

.image {
    width: 48%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.image:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer-space {
    height: 120px;
    width: 100%;
}

.footer {
    background-color: #151515;
    color: #fafafa;
    padding: 70px 20px;
    position: relative;
    bottom: 0px;
    width: 100%;
    display: flex;
    justify-content:space-around;
    align-items: center;
    flex-wrap: auto;
    z-index: 1000;
    box-sizing: border-box;
}
.footer .logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    font-weight: 700;
}

.footer .logo img {
    margin-right: 12px;
    width: 45px;
    height: 45px;
}

.footer .items {
    display: flex;
    gap: 48px;
}

.footer .item {
    font-size: 18px;
    font-weight: 500;
    color: #fafafa;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
}

.footer .item:hover {
    color: #F39C12;
    transform: translateY(-2px);
}

.footer .social-icons {
    display: flex;
    gap: 16px;
}

.footer .icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #333;
    transition: background-color 0.3s, transform 0.2s;
}

.footer .icon img {
    width: 20px;
}

.footer .icon:hover {
    background-color: #F39C12;
    transform: scale(1.1);
}

.divider {
    width: 100%;
    height: 2px;
    background-color: #333;
    margin-top: 40px;
    opacity: 0.8;
}

/* Utility */
.centered {
    text-align: center;
}

.header-space {
    margin-top: 100px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fafafa;
    margin: 4px 0;
    transition: 0.4s;
}


/*404 error  */

/* 404 Section Styles */
.section-title1 {
    font-size: 80px;
    color: #F39C12;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 22px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 24px;
}

.images .image {
    max-width: 60%;
    margin: 30px auto;
}

.button.secondary {
    margin-left: 20px;
}

/*Article Section Styles */

/* Articles Section */
.articles-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f4f4f9, #e2e2e6);
    text-align: center;
}

.articles-section .section-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
}

.articles-container {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.article-card {
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    text-decoration: none;
    color: #333;
}

.article-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* General styling for article images */
.article-image {
    width: 100%;             /* Full width within container */
    max-width: 600px;        /* Set a maximum width for images */
    height: auto;            /* Maintain aspect ratio */
    object-fit: cover;       /* Ensure image covers the container without distortion */
    border-radius: 8px;      /* Optional: Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Optional: Shadow for effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

/* Optional: Hover effect */
.article-image:hover {
    transform: scale(1.02); /* Slight zoom on hover */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3); /* Enhanced shadow */
}
.article-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 16px 20px 8px;
}

.article-excerpt {
    font-size: 16px;
    color: #555;
    margin: 0 20px 20px;
    line-height: 1.5;
}

/* about us */
.about-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.about-content h2 {
    font-size: 28px;
    color: #F39C12;
    margin-top: 30px;
}

.about-content p {
    font-size: 18px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 16px;
}

/* Tools Grid Styles */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 1rem;
}

.tool-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-card h3 {
    color: #333;
    margin-bottom: 1rem;
}

.tool-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.tool-card .button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
}

.tool-icon {
    width: 100%;             /* Full width within container */
    max-width: 300px;        /* Set a maximum width for images */
    height: 200px;           /* Fixed height for consistency */
    object-fit: cover;       /* Ensure image covers the container */
    border-radius: 8px;      /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.tool-card:hover .tool-icon {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.tool-features {
    text-align: left;
    margin: 1.5rem 0;
}

.tool-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-features li {
    padding: 0.5rem 0;
    color: #666;
    font-size: 0.95rem;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.button.download {
    background-color: #2ecc71;
    color: white;
}

.button.download:hover {
    background-color: #27ae60;
}

.tool-requirements {
    margin-top: 1rem;
    color: #888;
    font-size: 0.9rem;
}

/* Support Page Styles */
.support-content {
    max-width: 800px;
    margin: 0 auto;
}

.support-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

/* Search and Filter Styles */
.search-filter-container {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-bar {
    padding: 12px 20px;
    border: 2px solid #F39C12;
    border-radius: 25px;
    width: 300px;
    font-size: 16px;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.search-bar:focus {
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

.category-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-filter {
    padding: 8px 16px;
    border: 2px solid #F39C12;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.category-filter.active {
    background: #F39C12;
    color: white;
}

/* Lazy Loading Styles */
.article-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.article-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Program Page Styles */
.program-section {
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.program-header {
    text-align: center;
    margin-bottom: 3rem;
}

.program-hero {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
}

.program-tagline {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 2rem;
}

.program-content {
    display: grid;
    gap: 3rem;
    margin-top: 4rem;
}

.features-list ul, 
.requirements ul {
    list-style: none;
    padding: 0;
}

.features-list li, 
.requirements li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.installation ol {
    padding-left: 1.2rem;
}   

.installation code {
    display: block;
    background: #f5f5f5;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    font-family: monospace;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.screenshot-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.screenshot-grid img:hover {
    transform: scale(1.05);
}

/* Privacy Page Styles */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.privacy-content h2 {
    color: #333;
    margin-bottom: 20px;
}

.privacy-content h3 {
    color: #444;
    margin: 30px 0 15px;
}

.privacy-content p, 
.privacy-content ul {
    line-height: 1.6;
    margin-bottom: 15px;
}

.privacy-content ul {
    padding-left: 20px;
}

.privacy-content li {
    margin-bottom: 8px;
}

/* Dark mode support for login page */
body.dark-mode .auth-container {
    background: #333;
    color: #fff;
}

body.dark-mode .auth-form input {
    background: #444;
    border-color: #555;
    color: #fff;
}

body.dark-mode .divider::before,
body.dark-mode .divider::after {
    background: #555;
}

body.dark-mode .toggle-form {
    color: #fff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .section {
        padding: 80px 20px;
    }

    .images {
        flex-direction: column;
    }

    .image {
        width: 100%;
    }

    .navigation .items,
    .navigation .button-container {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navigation.active .items,
    .navigation.active .button-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #292929;
        padding: 20px 0;
        gap: 16px;
        z-index: 99;
    }

    .footer .items {
        flex-direction: column;
        gap: 16px;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
    }

    .navigation .button-container {
        flex-direction: column;
        gap: 10px;
    }

    .articles-container {
        flex-direction: column;
        align-items: center;
    }

    .article-card {
        width: 100%;
        max-width: 320px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }
}

/* Profile Styles */
.profile-container {
    position: relative;
    display: inline-block;
}

.profile-photo {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    display: none;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.profile-photo.visible {
    display: block;
    opacity: 1;
}

#loginBtn {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#loginBtn.visible {
    display: inline-block;
    opacity: 1;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background-color: white;
    min-width: 200px;
    padding: 8px 0;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.user-info {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.user-name {
    font-weight: bold;
    margin-bottom: 4px;
}

.user-email {
    font-size: 0.9em;
    color: #666;
}

.dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}

.dropdown-menu button i {
    width: 16px;
    text-align: center;
}

.dropdown-menu button:hover {
    background-color: #f1f1f1;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
}

.toast.success {
    background: #4CAF50;
}

.toast.show {
    opacity: 1;
}

/* Quotes Showcase Styles */
.quotes-showcase {
    width: 100%;
    overflow: hidden;
    margin: 40px 0;
    position: relative;
    padding: 20px 0;
}

.quotes-container {
    display: flex;
    gap: 30px;
    animation: slideQuotes 45s linear infinite;
    width: fit-content;
}

@keyframes slideQuotes {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 15px)); /* Adjusted for gap */
    }
}

.quotes-container:hover {
    animation-play-state: paused;
}

.quote {
    min-width: 350px;
    background: var(--quote-background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--quote-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border: 1px solid var(--quote-border);
    position: relative;
}

.quote:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--quote-hover-shadow);
}

.quote-text {
    font-size: 1.4em;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
    font-weight: 500;
}

.quote-author {
    font-size: 1.1em;
    color: var(--primary-color);
    font-weight: 600;
    text-align: right;
}

.quote-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quote-tags .tag {
    background: rgba(243, 156, 18, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quote-tags .tag:hover {
    background: rgba(243, 156, 18, 0.2);
    transform: translateY(-2px);
}

.quote .watermark {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.9em;
    color: rgba(243, 156, 18, 0.5);
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quotes-container .quote {
        min-width: 280px;
    }
}
