

/* --------------------
   CSS RESET
-------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --------------------
   ROOT VARIABLES
-------------------- */
:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --primary-color: #2563eb;
    --secondary-color: #f1f5f9;
}

/* --------------------
   GLOBAL STYLES
-------------------- */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --------------------
   HEADER & NAV
-------------------- */
header {
    background: var(--secondary-color);
    padding: 1rem 2rem;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    font-size: 1.2rem;
    font-weight: 700;
}

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

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

nav a:hover {
    color: var(--primary-color);
}

nav {
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px);
    z-index: 10;
}


/* --------------------
   SECTIONS
-------------------- */
section {
    max-width: 1100px;
    margin: 6rem auto;
    padding: 0 2rem;
}

/* --------------------
   CONTENT CARDS
-------------------- */
.content-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2.5rem;

    background: var(--secondary-color);
    border-radius: 24px;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.skills-list {
    margin-top: 1.5rem;
    padding-left: 1.2rem;
}

.skills-list li {
    margin-bottom: 0.6rem;
}

/* --------------------
   PROJECTS GRID
-------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.project-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.project-card p {
    font-size: 0.95rem;
    color: #64748b;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* --------------------
   HERO
-------------------- */
#hero {
    padding: 4rem 2rem;
}

.hero-box {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem 3.5rem;
    text-align: center;

    background: linear-gradient(
        135deg,
        var(--primary-color),
        #1e40af
    );

    border-radius: 32px;
    color: #ffffff;
}

@media (max-width: 600px) {
    .hero-box {
        border-radius: 20px;
    }
}



#hero h2 {
    font-size: 3rem;
    letter-spacing: -1px;
    color: #ffffff;
}

#hero p {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #e5e7eb;
}


.hero-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid #ffffff;
    background: #ffffff;
}

.hero-name {
    font-size: 3.2rem;
    font-weight: 800;
    margin-top: 1rem;
    color: #ffffff;
}

.hero-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.9rem;
    backdrop-filter: blur(6px);
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.primary-btn {
    background: #ffffff;
    color: #1e40af;
}

.primary-btn:hover {
    background: #e5e7eb;
}

.secondary-btn {
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

#contact {
    padding: 6rem 2rem;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Title */
.contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Subtitle */
.contact-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 2.5rem;
}

/* Keep form text left-aligned */
#contact-form {
    text-align: left;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    text-align: center;

    background: var(--secondary-color);
    border-radius: 24px;
}


/* --------------------
   FOOTER
-------------------- */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--secondary-color);
    font-size: 0.9rem;
}


/* --------------------
   DARK MODE
-------------------- */
body.dark {
    --bg-color: #0f172a;
    --text-color: #e5e7eb;
    --primary-color: #38bdf8;
    --secondary-color: #020617;
}


#theme-toggle {
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

#theme-toggle:hover {
    background: var(--primary-color);
    color: #fff;
}

#form-status {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

#form-status.success {
    color: #16a34a;
}

#form-status.error {
    color: #dc2626;
}
