/* --- Reset & basic typography --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fafafa;
}

/* --- Layout helpers --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 2rem 0;
}
.section {
    padding: 4rem 0;
}
.bg-light {
    background: #f0f4f8;
}

/* --- Header / Hero --- */
.hero {
    background: linear-gradient(135deg, #2d5be3, #1e90ff);
    color: #fff;
    text-align: center;
    padding: 6rem 0;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: .5rem;
}
.hero .tagline {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.hero .phone {
    display: inline-block;
    background: #fff;
    color: #1e90ff;
    padding: .5rem 1rem;
    border-radius: 30px;
    margin-bottom: 1.5rem;
    text-decoration: none;
    font-weight: 600;
}
.hero .nav a {
    color: #fff;
    margin: 0 .8rem;
    text-decoration: none;
    font-weight: 500;
}
.hero .nav a:hover {
    text-decoration: underline;
}

/* --- Sections --- */
h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}
p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
}

/* --- Skills --- */
.skill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .8rem;
}
.skill-list li {
    background: #e2e8f0;
    padding: .5rem 1rem;
    border-radius: 20px;
}

/* --- Projects grid --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,.07);
}
.card h3 {
    margin-bottom: .5rem;
    color: #1e90ff;
}

/* --- Contact form --- */
#contactForm {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}
#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: .8rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font: inherit;
}
#contactForm button {
    background: #1e90ff;
    color: #fff;
    border: none;
    padding: .9rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}
#contactForm button:hover {
    background: #0d78d1;
}
.note {
    text-align: center;
    font-size: .9rem;
    color: #555;
    margin-top: .5rem;
}

/* --- Footer --- */
.footer {
    background: #2d5be3;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}
.footer a {
    color: #fff;
}

/* --- Responsive tweaks --- */
@media (max-width: 600px) {
    .hero h1 {font-size: 2.4rem;}
    .hero .tagline {font-size: 1.1rem;}
}
