/* =========================================================
   🤎 Warm Brown Executive Theme (Sophisticated + Professional)
   Author: Kuku Faruq Olabiyi
   Last Updated: 2025
   ========================================================= */

/* --- 1. Variables (Warm Brown Palette) --- */
:root {
    /* --- Core Colors --- */
    --primary-color: #3E2723;        /* Deep Espresso Brown */
    --secondary-color: #6D4C41;      /* Rich Mocha */
    --accent-color: #A1887F;         /* Warm Taupe */
    
    /* --- Backgrounds --- */
    --light-bg-color: #FFF8F0;       /* Soft Cream */
    --card-bg-color: #FFFFFF;        /* Clean White Surface */
    --white-color: #FFFFFF;

    /* --- Text Colors --- */
    --dark-text-color: #3E2723;      /* Deep Brown Text */
    --light-text-color: #795548;     /* Medium Brown for secondary text */

    /* --- Shadows & Borders --- */
    --shadow-light: 0 2px 8px rgba(62, 39, 35, 0.08);
    --shadow-medium: 0 6px 20px rgba(62, 39, 35, 0.12);
    --border-color: #EFEBE9;

    /* --- Fonts --- */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- 2. Base & Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

a:hover {
    opacity: 0.8;
}

/* --- 3. Header with Gradient --- */
header {
    background: linear-gradient(135deg, #3E2723 0%, #5D4037 100%);
    color: var(--white-color);
    padding: 80px 0;
    text-align: center;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

/* --- 3.5 Social Icons --- */
.social-links a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

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

/* --- 4. Navigation --- */
nav {
    background-color: rgba(62, 39, 35, 0.97);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 12px 0;
}

nav ul li a {
    color: var(--white-color);
    font-weight: 500;
    padding: 14px 22px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #D7CCC8;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #A1887F;
    transition: width 0.4s ease;
}

nav ul li a:hover::after {
    width: 40%;
}

/* --- 5. Sections --- */
.section {
    padding: 100px 0;
}

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

.section h2::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent-color);
}

/* ABOUT SECTION */
.about-section {
  text-align: center;
  padding: 4rem 1.5rem;
  background-color: var(--light-bg-color);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  position: relative;
}

.section-underline {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #8D6E63, #A1887F);
  margin: 0.5rem auto 2.5rem auto;
  border-radius: 2px;
}

.about-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-photo img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(62, 39, 35, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 4px solid #D7CCC8;
}

.about-photo img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(62, 39, 35, 0.3);
}

.about-info {
  max-width: 600px;
  text-align: left;
  font-size: 1rem;
  color: var(--dark-text-color);
  line-height: 1.8;
}

/* Responsive Layout */
@media (max-width: 900px) {
  .about-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .about-info {
    text-align: center;
  }
}

/* --- 5.5 Project Cards --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-color);
}

.project-card {
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(62, 39, 35, 0.1);
}

.project-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.project-card img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border-color);
  object-fit: contain;
}

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

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

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

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

.project-skills-text {
    font-size: 0.9rem;
    color: #795548;
    margin-bottom: 20px;
    padding-top: 10px;
    font-style: italic;
}

.project-skills-text strong {
    color: #3E2723;
    font-weight: 600;
    font-style: normal;
}
/* --- Buttons --- */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #6D4C41, #8D6E63);
    color: var(--white-color);
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    letter-spacing: 0.3px;
    border: none;
}

.btn:hover {
    background: linear-gradient(135deg, #5D4037, #6D4C41);
    transform: translateY(-2px);
}

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

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

/* --- 6. Skills Section --- */
.skills-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    background-color: var(--card-bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}

.skill-column {
    padding: 0 20px;
}

.skill-column:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

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

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

.skill-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
}

.skill-list {
    list-style: none;
    padding-left: 0;
}

.skill-list li {
    padding: 10px 0;
    font-size: 1rem;
    color: var(--dark-text-color);
    border-bottom: 1px solid var(--border-color);
    padding-left: 20px;
    position: relative;
}

.skill-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: 700;
}

/* --- SKILLS SECTION --- */
.skills-section {
  background: linear-gradient(135deg, #FFF8F0 0%, #F5F5F5 100%);
  padding: 80px 0;
  color: var(--dark-text-color);
}

.skills-section .section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.skills-section .section-subtitle {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 3rem;
  color: var(--light-text-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.skill-card {
  background-color: var(--white-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-color);
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.skill-card p {
  font-size: 0.95rem;
  color: var(--light-text-color);
}

.resume-download {
  text-align: center;
  margin-top: 3rem;
}

.resume-download .btn {
  background: linear-gradient(135deg, #6D4C41, #8D6E63);
  color: var(--white-color);
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.resume-download .btn:hover {
  background: linear-gradient(135deg, #5D4037, #6D4C41);
  transform: translateY(-2px);
}

/* --- CERTIFICATIONS SECTION --- */
.certifications-section {
  background-color: var(--light-bg-color);
  padding: 80px 0;
}

.certifications-section .section-title {
  color: var(--primary-color);
}

.certifications-section .section-subtitle {
  color: var(--light-text-color);
}

.cert-card {
  background: var(--white-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-color);
}

/* --- 7. Contact Form --- */
#contact {
  background-color: var(--white-color);
}

#contact .container {
    max-width: 800px;
}

.contact-form {
    background: var(--card-bg-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

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

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #FAFAFA;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(161, 136, 127, 0.15);
    background: var(--white-color);
}

.contact-form button.btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

/* --- 8. Footer --- */
footer {
    background: linear-gradient(135deg, #3E2723 0%, #5D4037 100%);
    color: var(--white-color);
    text-align: center;
    padding: 40px 0;
    margin-top: 80px;
}

footer p {
    opacity: 0.85;
    font-size: 0.95rem;
}

/* --- 9. Responsive Design --- */
@media (max-width: 992px) {
    .skills-table {
        grid-template-columns: 1fr 1fr;
    }
    .skill-column:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.4rem;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .projects-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .skills-table {
        grid-template-columns: 1fr;
        padding: 25px;
    }
}
