/* ========== BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

:root {
  --primary: #ff6600;
  --dark: #1a1a1a;
  --light: #ffffff;
  --gray: #f6f6f6;
  --accent: #2c3e50;
}

body {
  background-color: #f9f9f9;
  color: #333;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  scroll-behavior: smooth;
}

/* ========== HEADER ========== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #2c2c2c;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Brand Name: Obed Owusu */
.brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.brand-name:hover {
  color: #ff6600;
}

/* Navbar Menu (Desktop) */
.navbar {
  display: flex;
  gap: 1.5rem;
}

.navbar a {
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: #ff6600;
  border-bottom: 2px solid #ff6600;
  padding-bottom: 4px;
}

/* ===== Dropdown Styles ===== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown i {
  font-size: 1rem;
  vertical-align: middle;
  margin-left: 4px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  z-index: 1;
  border-radius: 6px;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: #333;
  padding: 12px 16px;
  display: block;
  text-align: left;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background-color: #f2f2f2;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ===== Mobile View ===== */
@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    box-shadow: none;
    background-color: transparent;
  }

  .dropdown-content a {
    padding-left: 1.5rem;
    background-color: transparent;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
}


/* Menu Icon (Mobile) */
#menu-icon {
  font-size: 2rem;
  cursor: pointer;
  color: white;
  display: none;
}

/* ========== MOBILE RESPONSIVENESS ========== */
@media (max-width: 768px) {
  #menu-icon {
    display: block;
    margin-left: 1rem;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 2rem;
    background-color: #2c2c2c;
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default */
  }

  .navbar.show {
    display: flex;
  }

  .navbar a {
    width: 100%;
    padding: 8px 0;
    border-bottom: none;
  }
}

/* ========== HOME SECTION ========== */
.home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 6rem 2rem 4rem; /* Extra top padding for sticky header */
  background-color: #fff;
}

.home-content {
  max-width: 600px;
}

.home-content h3 {
  font-size: 1.4rem;
  color: #ff6600;
  margin-bottom: 0.5rem;
}

.home-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 0.5rem;
}

.home-content p {
  font-size: 1.1rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 1rem;
}

.fancy-title {
  color: #ff6600;
  font-weight: 600;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  #menu-icon {
    display: block;
    margin-left: 1rem;
  }

  .navbar {
    position: absolute;
    top: 100%;
    right: 2rem;
    background-color: #2c2c2c;
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
  }

  .navbar.show {
    display: flex;
  }

  .navbar a {
    width: 100%;
    padding: 8px 0;
    border-bottom: none;
  }

  .home {
    flex-direction: column;
    text-align: center;
    padding: 5rem 2rem;
  }

  .home-content {
    align-items: center;
    max-width: 100%;
  }
}


/* ========== SOCIAL MEDIA ========== */
.social-media {
  display: flex;
  gap: 16px; /* spacing between icons */
  margin-top: 20px;
}

/* ========== SOCIAL MEDIA / UNIFIED BUTTONS ========== */
.social-media {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.social-media a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #ff6600;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.social-media a svg {
  width: 20px;
  height: 20px;
  fill: white;
  transition: fill 0.3s ease;
}

.social-media a:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px #ff6600;
  color: #000;
}

.social-media a:hover svg {
  fill: #000;
}



/* Portfolio Section Style */
body {
  margin: 0;
  background-color: #1e1e1e;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.portfolio {
  padding: 60px 20px;
  text-align: center;
  color: #ffffff;
}

.portfolio .heading {
  font-size: 3rem;
  text-transform: uppercase;
  margin-bottom: 40px;
  color: #ffffff;
  letter-spacing: 2px;
}

.portfolio .heading span {
  color: #ff6600;
}

/* Grid Layout */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Project Cards */
.project-card {
  background-color: #ffffff;
  border: 2px solid #ff6600;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

/* Project Images */
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 2px solid #ff6600;
}

/* Project Info */
.project-info {
  padding: 20px;
  color: #333333;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ff6600;
}

.project-info p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

/* Button */
.project-info a {
  align-self: flex-start;
  margin-top: 10px;
  padding: 8px 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  color: #ff6600;
  border: 2px solid #ff6600;
  background-color: transparent;
  transition: background 0.3s ease, color 0.3s ease;
}

.project-info a:hover {
  background-color: #ff6600;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .portfolio {
    padding: 40px 10px;
  }
}


/* ========== IMAGE ========== */
.home-img img {
  max-width: 320px;
  border-radius: 50%;
  border: 6px solid white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .home {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-img img {
    margin-top: 2rem;
  }

  #menu-icon {
    display: block;
  }

  .navbar {
    display: none;
  }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .header {
        padding: 1rem 2rem;
    }

    .navbar {
        display: none;
    }

    #menu-icon {
        display: inline-block;
    }

    .home {
        flex-direction: column;
        text-align: center;
    }

    .home-img img {
        width: 300px;
        margin-top: 1rem;
    }

    .home-content h1 {
        font-size: 2.5rem;
    }

    .home-content h3 {
        font-size: 1rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 2rem;
    }

    .home-content h3 {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.5rem 1rem;
    }

    .home-img img {
        width: 250px;
    }

    .social-media a {
        font-size: 1.5rem;
    }
}

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* About Section Styling */
section {
    padding: 20px 15px;
    max-width: 1200px;
    margin: auto;
    transition: all 0.3s ease-in-out;
}

.heading {
    font-size: 4rem;
    color: #333;
    text-align: center;
    font-weight: bold;
    margin-bottom: 1.5rem;
    position: relative;
}

.heading span {
    color: #333;
    display: inline-block;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.heading span:hover {
    transform: scale(1.1);
}

.about-content h3 {
    font-size: 1.7rem;
    color: #ff6600;
    text-align: center;
    margin-bottom: 1rem; /* Consistent spacing */
    font-weight: 500;
}

.about-content p {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 1rem; /* Consistent spacing */
    text-align: justify;
    border-left: 3px solid #ff6600;
    padding-left: 10px;
}

/* Media Query Adjustments for Consistent Spacing on Mobile */
@media (max-width: 768px) {
    .about-content h3,
    .about-content p {
        margin-bottom: 0.75rem; /* Reduced for smaller screens */
    }
}

@media (max-width: 1000px) {
    .about-content h3,
    .about-content p {
        font-size: 1.1rem; /* Smaller text size for narrow screens */
        margin-bottom: 0.5rem; /* Consistent and tighter spacing */
    }
}

/* General Styling */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #ffffff;
}

/* ======= SKILLS SECTION ======= */
#skills {
  padding: 4rem 2rem;
  background-color: var(--gray);
}

.section-title {
  text-align: center;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3rem;
}

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

/* ======= CARD ======= */
.card {
  background-color: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  padding-bottom: 0.2rem;
}

/* ======= SKILL ITEM ======= */
.skill {
  margin-bottom: 1.2rem;
}

.skill span {
  display: block;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

/* ======= PROGRESS BAR ======= */
.progress-bar {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  height: 12px;
  position: relative;
}

.progress-bar div {
  height: 100%;
  background-color: var(--primary);
  width: 0;
  animation: growBar 1.5s ease-out forwards;
  border-radius: 8px;
  text-align: right;
  padding-right: 6px;
  font-size: 0.7rem;
  color: white;
  line-height: 12px;
}

/* ======= PROGRESS BAR ANIMATION ======= */
@keyframes growBar {
  to {
    width: var(--width, 100%);
  }
}

/* Work Experience Section */
#work-experience {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid #ff6600;
    text-align: center;
}

/* Centered and Dual-Colored Heading */
#work-experience h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 30px;
    display: inline-block;
    color: #1a1a1a;
    text-transform: none; /* ✅ This stops all-caps */
}

#work-experience h2 .title-my {
    color: #1a1a1a;
}

#work-experience h2 .title-experience {
    color: #1a1a1a;
}

/* Experience Container Styling */
.experience-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.experience-item {
    background: #f7f7f7;
    padding: 20px 25px;
    border-left: 3px solid #ff6600;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.experience-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.experience-item h3 {
    font-size: 1.8rem;
    color: #333;
    font-weight: bold;
    margin: 0 0 5px;
}

.experience-item h4 {
    font-size: 0.95rem;
    color: #666;
    margin-top: 3px;
    font-style: italic;
}

.experience-item p {
    color: #444;
    margin: 10px 0;
    font-size: 1rem;
}

.experience-item ul {
    padding-left: 20px;
    list-style: none;
}

.experience-item ul li::before {
    content: "• ";
    color: #ff6600;
    font-weight: bold;
}

.experience-item ul li {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #555;
}

/* Button Styling */
button {
    padding: 10px 20px;
    background-color: #ff6600;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #e65c00;
    transform: scale(1.05);
}

/* Responsive Design */
@media (min-width: 768px) {
    .experience-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    #work-experience {
        padding: 50px 30px;
    }
    .experience-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Portfolio Section Style */
.portfolio {
    padding: 50px 20px;
    background-color: #ffffff #fffacd;
    text-align: center;
}

.portfolio .heading {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #1a1a1a;
    text-transform: none; /* ✅ This stops all-caps */;
}

.portfolio .heading span {
    color: #1a1a1a;
}

.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0 auto;
    max-width: 1200px;
}

.portfolio-box {
    position: relative;
    width: 35px;
    overflow: hidden;
    border-radius: 10px;
    border: 3px solid #ff6600;
    transition: transform 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.portfolio-box:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.portfolio-box img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

/* Updated Portfolio Layer */
.portfolio-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Increased opacity for better readability */
    color: #ffffff;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    opacity: 0; /* Default hidden */
    overflow-y: auto; /* Allows scrolling if content overflows */
    transition: opacity 0.3s ease;
    z-index: 10; /* Ensures it appears above other content */
}

.portfolio-box:hover .portfolio-layer {
    opacity: 1; /* Show layer on hover */
}

.portfolio-layer h4 {
    font-size: 1.2em;
    font-weight: bold;
    color: #ff6600;
    margin-bottom: 10px;
}

.portfolio-layer p {
    font-size: 0.9em;
    line-height: 1.5em;
    margin-bottom: 15px;
}

/* Button Animation */
.portfolio-layer a {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    border: 2px solid #ff6600;
    color: #ff6600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    transition: background 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.portfolio-layer a:hover {
    background-color: #ff6600;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-container {
        flex-direction: column;
        align-items: center;
    }

    .portfolio-box {
        width: 100%;
        margin-bottom: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .portfolio-container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .portfolio-box {
        width: 45%;
    }
}

@media (min-width: 1025px) {
    .portfolio-box {
        width: 30%;
    }
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #ffffff #fffacd ;
    color: #333333;
}

.contact {
    padding: 60px 20px;
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.contact .heading {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: #1a1a1a;
    text-transform: none; /* ✅ This stops all-caps */
}

.contact .heading span {
    color: #1a1a1a;
}

.contact form {
    background: #f2f2f2;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact form .input-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.contact form .input-box input,
.contact form textarea {
    flex: 1;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.contact form .input-box input:focus,
.contact form textarea:focus {
    border-color: #ff6600;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 102, 0, 0.3);
}

.contact form textarea {
    width: 100%;
    resize: vertical;
}

.contact form .btn {
    background: #ff6600;
    color: #fff;
    padding: 14px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.contact form .btn:hover {
    background: #e65a00;
    transform: translateY(-3px);
}

/* ===== Toast Popup Styles ===== */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 16px 24px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

.toast-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.toast-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer Styling */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 15px;
    background: #333;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.footer-text p {
    color: #888;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-text p:hover {
    color: #ff6600;
}

/* Icon Styling */
.footer-iconTop {
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 1.5rem;
    color: #ff6600;
    cursor: pointer;
    transition: transform 0.4s ease, color 0.3s ease;
}

.footer-iconTop a {
    color: inherit;
    text-decoration: none;
}

.footer-iconTop:hover {
    transform: scale(1.3) rotate(360deg);
    color: #ffffff;
}

/* Media Query for Responsiveness */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }
    
    .footer-iconTop {
        position: relative;
        right: 0;
        bottom: 0;
        margin-top: 10px;
    }
}

/* Bounce Hover Effect */
.footer:hover {
    animation: bounceEffect 1s ease infinite alternate;
}

@keyframes bounceEffect {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Back-to-Top Button */
.footer-iconTop a i {
    font-size: 2rem;
    transition: color 0.3s ease, transform 0.4s ease;
}

.footer-iconTop a:hover i {
    color: #ff6600;
    transform: rotate(180deg);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .contact .heading {
        font-size: 2rem;
    }

    .contact form {
        padding: 20px;
    }

    .contact form .input-box {
        flex-direction: column;
    }

    .contact form .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .contact .heading {
        font-size: 1.8rem;
    }

    .contact form {
        padding: 15px;
    }

    .contact form .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}