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

body {
    font-family: 'Outfit', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #0f172a;
}

/* Navbar */
nav {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.5rem;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: #0f172a;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
    justify-content: center;
}

.nav-links li a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #22d3ee;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

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

.hero-content .highlight {
    color: #22d3ee;
}

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

.btn {
    padding: 0.75rem 1.5rem;
    background-color: #22d3ee;
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
    margin: 2rem 0;
}

.btn:hover {
    background-color: #0f172a;
    color: #ffffff;
    border: 1px solid #22d3ee;
}

/* About me section */
.about-section {
    background: #fdfdfd;
    padding: 4rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    background-color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin: auto;
}

.profile-photo {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

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

.about-text p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* My skills section */
.skills-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.skill {
    background: #eef4f9;
    padding: 0.75rem 1rem;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Education section */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 1rem;
    border-left: 3px solid #0077b6;
}

.timeline-item {
    padding-left: 1rem;
    border-left: 2px solid #00b4d8;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #0077b6;
    border-radius: 50%; /* a dot marker with a parfect circle (initially rectangular, but after using border radius, it's now a circle) */
}

.timeline-item h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.timeline-item p {
    margin: 0.3rem 0 0;
    font-size: 0.95rem;
    color: #555;
}


/* download cv */
.download-cv {
    display: inline-block;
    margin: 2rem 0;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.download-cv:hover {
    background-color: #2c80b4;
}

/* Interests Section */
.interests-section {
    background-color: #f9f9f9;
    padding: 4rem 2rem;
    text-align: center;
}

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

.interest-card {
    background-color: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.interest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.interest-card .emoji {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.8rem;
}

.interest-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.interest-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

/* My projects section */
.projects {
    padding: 4rem 2rem;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.sub-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem;
    color: #0077b6;
}

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

.project-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.project-card img {
    background-image: cover;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.card-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 1.2rem;
}

.card-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.card-links a {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.card-links a:not(.live-link) {
    border: 2px solid #0077b6;
    color: #0077b6;
    font-weight: 600;
}

.card-links a:not(.live-link):hover {
    background-color: #0077b6;
    color: white;
}

/* Languages section */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: center;
    margin-top: 2rem;
}

.language-card {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.language-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.5rem;
}

.language-card p {
    font-weight: 500;
    color: #334155;
}

.language-card:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* Contact me Section */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
    background-color: #1e293b;
    color: #f1f5f9;
    border: none;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #94a3b8;
}

.contact-form .btn {
    align-self: flex-start;
}

/* footer */
footer {
    background-color: #0f172a;
    color: #f1f5f9;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 4rem;
}


/* Responsive layout */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .nav-links.show {
        display: flex;
        background-color: #ffffff;
        position: absolute;
        top: 60px;
        right: 0;
        padding: 1rem;
        border-radius: 0 0 0 8px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 768px) {
    .nav-links {
        flex-direction: row;
        justify-content: flex-end;
    }
}
