/* =====================================
   1. ROOT VARIABLES (NEW BRAND COLORS)
===================================== */
:root {
    --primary-color: #2C100F;
    --secondary-color: #EE8B22;
    --accent-color: #EE8B22;

    --light-bg-color: #FAF6F2;
    --white-color: #ffffff;
    --dark-text-color: #2b2b2b;
    --light-text-color: #6c757d;
    --card-bg-color: #ffffff;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* =====================================
   2. RESET
===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.8;
    background: var(--light-bg-color);
    color: var(--dark-text-color);
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
    color: var(--accent-color);
}

a:hover { opacity: 0.85; }

/* =====================================
   3. HEADER
===================================== */
header {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 90px 0;
    text-align: center;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    margin-bottom: 15px;
}

header p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.social-links a {
    color: var(--white-color);
    font-size: 1.6rem;
    margin: 0 15px;
    display: inline-block;
}

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* =====================================
   4. NAVIGATION
===================================== */
nav {
    background: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary-color);
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

nav ul li a {
    color: var(--white-color);
    padding: 15px 25px;
    display: block;
    font-weight: 500;
}

/* =====================================
   5. SECTIONS
===================================== */
.section {
    padding: 100px 0;
}

.section h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
}

.section h2::after {
    content: "";
    width: 70px;
    height: 3px;
    background: var(--secondary-color);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* =====================================
   6. ABOUT
===================================== */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: auto;
}

.profile-photo {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--white-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* =====================================
   7. PROJECTS
===================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}

.project-card {
    background: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
}

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

.project-card img {
    height: 220px;
    object-fit: cover;
}

.project-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-content h3 {
    font-family: var(--font-heading);
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-card-content p {
    color: var(--light-text-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
}

.btn:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white-color);
}

/* =====================================
   8. SKILLS
===================================== */
.skills-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    background: var(--card-bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.05);
}

.skill-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.skill-header i {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-right: 12px;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

/* =====================================
   9. CONTACT
===================================== */
.contact-form {
    background: var(--card-bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 20px; }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(238,139,34,0.2);
}

.contact-form button {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* =====================================
   10. FOOTER
===================================== */
footer {
    background: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
}

/* =====================================
   11. RESPONSIVE DESIGN
===================================== */

/* Tablet */
@media (max-width: 992px) {
    .skills-table {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {

    header {
        padding: 70px 0;
    }

    header h1 {
        font-size: 2.3rem;
    }

    header p {
        font-size: 1rem;
    }

    .section {
        padding: 70px 0;
    }

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

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

    .project-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .skills-table {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li a {
        padding: 10px;
    }
}
