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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #1C1C1C;
    background-color: #F4F1EC;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #2F3E46;
    color: white;
    padding: 20px;
    z-index: 1000;
    border-radius: 10px;
    border: 2px solid #6C757D;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    width: 350px;
    max-width: calc(100vw - 40px);
}

.cookie-popup.show {
    transform: translateX(0);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: #F4F1EC;
    text-decoration: underline;
}

.btn-accept {
    background-color: #6C757D;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-end;
    font-weight: bold;
}

.btn-accept:hover {
    background-color: #5a6268;
}

/* Header */
.header {
    background-color: #F4F1EC;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.1);
}

.nav-logo h1 {
    color: #2F3E46;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0;
}

.logo-link {
    color: #2F3E46;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo-link:hover {
    color: #6C757D;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #1C1C1C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2F3E46;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #2F3E46;
    transition: width 0.3s ease;
}

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

.nav-link.active {
    color: #2F3E46;
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #2F3E46;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: url('../images/StudiuInvest.jpg') no-repeat center center/cover;
    color: white;
    padding: 150px 0 100px;
    text-align: center;
    margin-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 62, 70, 0.7);
    z-index: 1;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: #6C757D;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: rgba(47, 62, 70, 0.05);
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2F3E46;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: #2F3E46;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Despre Section */
.despre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.despre-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.despre-features {
    display: grid;
    gap: 2rem;
}

.feature {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
}

.feature h3 {
    color: #2F3E46;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Piața Section */
.piata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.piata-card {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.piata-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.piata-card:hover .card-icon {
    transform: scale(1.1);
}

.piata-card h3 {
    color: #2F3E46;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

/* Metode Section */
.metode-list {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.metoda {
    background-color: white;
    padding: 2rem;
    border-left: 5px solid #2F3E46;
    border-radius: 0 10px 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.metoda-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.metoda:hover .metoda-icon {
    transform: scale(1.1);
}

.metoda-content {
    flex: 1;
}

.metoda h3 {
    color: #2F3E46;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Tehnologii Section */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: linear-gradient(135deg, white 0%, #F4F1EC 100%);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tech-card:hover {
    border-color: #2F3E46;
    transform: translateY(-5px);
}

.tech-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.1);
}

.tech-card h3 {
    color: #2F3E46;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-content {
    padding: 2rem;
}

.gallery-content h3 {
    color: #2F3E46;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.gallery-content p {
    color: #1C1C1C;
    line-height: 1.6;
}

/* Success Stories Section */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.story-card {
    background: linear-gradient(135deg, white 0%, #F4F1EC 100%);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.story-card:hover {
    border-color: #2F3E46;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.story-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.story-card:hover .story-icon {
    transform: scale(1.1) rotate(5deg);
}

.story-card h3 {
    color: #2F3E46;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.story-card p {
    color: #1C1C1C;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.story-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat {
    background-color: #2F3E46;
    color: #F4F1EC;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: linear-gradient(135deg, white 0%, #F4F1EC 100%);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.resource-card:hover {
    border-color: #2F3E46;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.resource-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-icon {
    transform: scale(1.1);
}

.resource-card h3 {
    color: #2F3E46;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.resource-card p {
    color: #1C1C1C;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.resource-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    background-color: #6C757D;
    color: #F4F1EC;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Community Section */
.community-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.community-text h3 {
    color: #2F3E46;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.community-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.community-features {
    display: grid;
    gap: 2rem;
}

.community-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.community-feature:hover {
    transform: translateX(10px);
}

.community-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.community-feature h4 {
    color: #2F3E46;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.community-feature p {
    color: #1C1C1C;
    line-height: 1.5;
    margin: 0;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}

.news-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.news-card.featured {
    grid-row: span 2;
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card.featured .news-image {
    height: 300px;
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    background-color: #2F3E46;
    color: #F4F1EC;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.news-card h3 {
    color: #2F3E46;
    margin: 1rem 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.news-card.featured h3 {
    font-size: 1.4rem;
}

.news-card p {
    color: #1C1C1C;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #6C757D;
}

/* Events Section */
.events-timeline {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.event-item {
    display: flex;
    gap: 2rem;
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #2F3E46;
}

.event-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.event-date {
    text-align: center;
    background: linear-gradient(135deg, #2F3E46 0%, #6C757D 100%);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    min-width: 80px;
    height: fit-content;
}

.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

.event-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.event-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.event-content h3 {
    color: #2F3E46;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.event-content p {
    color: #1C1C1C;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-details {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.event-details span {
    background-color: #F4F1EC;
    color: #2F3E46;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.event-price {
    background-color: #2F3E46 !important;
    color: #F4F1EC !important;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    gap: 2rem;
}

.contact-item h3 {
    color: #2F3E46;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    font-size: 1.1rem;
}

.contact-form {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2F3E46;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2F3E46;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.submit-btn {
    width: 100%;
    background-color: #6C757D;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #5a6268;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Map */
.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

#map {
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background-color: #2F3E46;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #F4F1EC;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #F4F1EC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #6C757D;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #6C757D;
    color: #F4F1EC;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #F4F1EC;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 2rem;
    }

    .despre-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cookie-popup {
        width: 300px;
        bottom: 10px;
        right: 10px;
        padding: 15px;
    }
    
    .btn-accept {
        align-self: stretch;
    }

    .piata-grid,
    .tech-grid,
    .resources-grid,
    .stories-grid {
        grid-template-columns: 1fr;
    }
    
    .community-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .event-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .event-date {
        align-self: flex-start;
        min-width: auto;
        width: fit-content;
    }
    
    .event-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        padding: 0 15px;
    }
}

/* Tablet Styles */
@media screen and (max-width: 1024px) and (min-width: 769px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .news-card.featured {
        grid-column: span 2;
    }
    
    .community-content {
        gap: 3rem;
    }
    
    .event-item {
        padding: 1.5rem;
    }
    
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .section h2 {
        font-size: 1.6rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .feature,
    .piata-card,
    .tech-card {
        padding: 1.5rem;
    }

    .nav-logo h1 {
        font-size: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}