
/* General styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Navigation */
header {
    background-color: #111c32;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    max-width: 1100px;
    margin: auto;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #38bdf8;
}

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

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #38bdf8;
}

/* Home section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.hero-content {
    max-width: 750px;
}

.intro {
    color: #38bdf8;
    letter-spacing: 3px;
    font-size: 13px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero h1 span {
    color: #38bdf8;
}

.hero h2 {
    font-size: 24px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.hero-content > p:not(.intro) {
    margin-bottom: 28px;
    color: #cbd5e1;
}

.btn {
    display: inline-block;
    background-color: #38bdf8;
    color: #0f172a;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #7dd3fc;
}

/* Common sections */
.section {
    max-width: 1100px;
    margin: auto;
    padding: 75px 24px;
    text-align: center;
}

.section h2 {
    color: #38bdf8;
    font-size: 32px;
    margin-bottom: 25px;
}

.section > p {
    max-width: 750px;
    margin: auto;
    color: #cbd5e1;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.skill-card {
    padding: 22px 15px;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    transition: transform 0.3s, border-color 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
}

/* Projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    text-align: left;
}

.project-card {
    padding: 25px;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    transition: transform 0.3s;
}

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

.project-card h3 {
    color: #38bdf8;
    margin-bottom: 12px;
}

.project-card p {
    color: #cbd5e1;
}

/* Footer */
footer {
    background-color: #111c32;
    text-align: center;
    padding: 22px;
    color: #94a3b8;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

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

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

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