/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
}

/* ==================== HEADER & NAVIGATION ==================== */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.left-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

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

.right-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.signup-btn,
.login-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signup-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}

.login-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
}

.login-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    min-height: calc(100vh - 70px);
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== HERO SECTION ==================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content .tagline {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.hero-placeholder svg {
    width: 80%;
    height: 80%;
}

/* ==================== FEATURES SECTION ==================== */
.features {
    margin-bottom: 100px;
}

.features h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}

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

.feature-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* ==================== STATS SECTION ==================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 60px 40px;
    border-radius: 16px;
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ==================== PROJECTS PAGE ==================== */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: white;
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-category {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    flex: 1;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    background: var(--light-bg);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ==================== IDEAS PAGE ==================== */
.ideas-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.idea-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.idea-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.idea-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.idea-category {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.idea-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.idea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.posted-by {
    font-size: 12px;
    color: var(--text-light);
}

.idea-actions {
    display: flex;
    gap: 15px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-icon:hover {
    color: var(--primary-color);
}

/* ==================== NEWS PAGE ==================== */
.news-container {
    display: grid;
    gap: 30px;
}

.news-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
}

.news-card.featured {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    border: 2px solid var(--primary-color);
}

.news-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.news-date {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
}

.news-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 12px 0;
}

.news-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 5px;
}

/* ==================== CONTACT PAGE ==================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.contact-info h2,
.contact-form h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--light-bg);
    border-radius: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
}

.contact-form {
    background: var(--light-bg);
    padding: 35px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group.checkbox input {
    width: auto;
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.form-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.map-section {
    text-align: center;
    margin-top: 80px;
}

.map-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
}

.map-placeholder {
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 80px 40px;
    color: var(--text-light);
}

/* ==================== MODAL STYLES ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--text-dark);
}

.modal-content h2 {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark-bg);
    color: #cbd5e1;
    margin-top: 100px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 20px;
    }

    .left-nav {
        width: 100%;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }

    .nav-links {
        width: 100%;
        flex-direction: column;
        gap: 10px;
    }

    .right-menu {
        width: 100%;
        gap: 10px;
    }

    .signup-btn,
    .login-btn {
        flex: 1;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-placeholder {
        width: 250px;
        height: 250px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .ideas-container {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .modal-content {
        width: 95%;
        padding: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
    }

    .logo h2 {
        font-size: 20px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-link {
        font-size: 12px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content .tagline {
        font-size: 16px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .features-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 32px;
    }

    .project-card,
    .idea-card,
    .news-card {
        border-radius: 8px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}
