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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0e0e0e;
    color: #e6e6e6;
    line-height: 1.6;
}

/* ---------- Utility ---------- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 3rem 0;
}

h1, h2, h3 {
    font-weight: 600;
    color: #ffffff;
}

/* ---------- Header ---------- */
.header {
    background: #121212;
    border-bottom: 1px solid #1f1f1f;
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.6rem;
    color: #00bcd4;
}

.logo span {
    color: #fff;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar a:hover, .navbar a.active {
    color: #00bcd4;
}

/* ---------- Hero Section ---------- */
.hero {
    height: 90vh;
    background: linear-gradient(to right, #121212, #1a1a1a);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: #aaa;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: #00bcd4;
    color: #fff;
    border: none;
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #0097a7;
}

/* ---------- About Section (Modern Dark Theme) ---------- */
.about {
    padding: 60px 20px;
    background-color: #301717; /* slightly lighter dark background */
}

.about-container {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 30px;
    background-color: #1a1a1a; /* subtle container contrast */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-image img {
    max-width: 200px;
    border-radius: 50%;
    border: 4px solid #00bcd4; /* accent color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,188,212,0.3);
}

.about-text {
    flex: 1;
    min-width: 250px;
}

.about-text h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #e6e6e6; /* light text for dark theme */
}

/* Stil pentru primul paragraf (intro-paragraph) */
.about-text .intro-paragraph {
    color: #e6e6e6; /* Setăm culoarea vizibilă pe fundal întunecat */
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Stil pentru paragrafele următoare (secondary-text) */
.about-text .secondary-text {
    font-size: 1em;
    line-height: 1.6;
    color: #e6e6e6; /* Setăm culoarea vizibilă pe fundal întunecat */
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .about-image img {
        margin-bottom: 20px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        min-width: 100%;
    }

    .about-image img {
        margin-bottom: 20px;
    }
}



/* ---------- Projects Section ---------- */
.projects {
    background: #0f0f0f;
    text-align: center;
}

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

.project-card {
    background: #161616;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
}

.project-card i {
    font-size: 2.5rem;
    color: #00bcd4;
    margin-bottom: 1rem;
}

/* ---------- Contact Section ---------- */
.contact {
    background-color: #111;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto;
}

.contact-form input,
.contact-form textarea {
    background-color: #1b1b1b;
    border: 1px solid #333;
    color: #fff;
    padding: 0.8rem;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00bcd4;
    outline: none;
}

/* ---------- Footer ---------- */
.footer {
    background: #0a0a0a;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid #1f1f1f;
}

.footer p {
    color: #777;
    font-size: 0.9rem;
}

.social-icons {
    margin-top: 1rem;
}

.social-icons a {
    color: #ccc;
    margin: 0 10px;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #00bcd4;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        display: none;
    }

    .navbar ul.show {
        display: block;
    }

    .navbar a {
        display: block;
        padding: 1rem;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .project-card {
        padding: 1.5rem;
    }
}

/* ---------- Scroll Animation ---------- */
.project-card,

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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