/* General Styling */
:root {
    --primary-color: #007bff; /* Example: A vibrant blue */
    --secondary-color: #6c757d; /* Example: A muted gray */
    --accent-color: #ff8c00; /* Example: A bright orange for highlights */
    --dark-bg: #1a1a2e; /* Deep dark background */
    --mid-dark-bg: #2a2a44;
    --light-text: #e0e0e0;
    --heading-color: #ffffff;
    --border-color: #3e3e5c;
    --hover-bg: #3a3a5e;
}

html {
  scroll-behavior: smooth;
}


body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;  /*Prevent horizontal scroll */
}

.site-wrapper {
  width: 100%;
  max-width: 100vw;
  margin: 0 auto;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    margin-top: 0;
    font-weight: 600;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.custom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 10px;
    color: var(--heading-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--heading-color);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.secondary-btn {
    background-color: transparent;
    color: var(--heading-color);
    border: 2px solid var(--heading-color);
    margin-left: 15px;
}

.secondary-btn:hover {
    background-color: var(--heading-color);
    color: var(--dark-bg);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: var(--primary-color);
    color: white;
    border-radius: 3px;
}

.btn-small:hover {
    background-color: var(--accent-color);
}

/* ==============================
   Navbar Styling (Final Version)
============================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #1a202c; /* deep dark blue/gray */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Base link styles */
.navbar a {
  color: #f8f9fa;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
}

.navbar a:hover {
  color: #3b82f6; /* Tailwind blue */
  transform: translateY(-2px);
}

/* Contact button styling */
.btn-nav-contact {
  background-color: #3b82f6;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-nav-contact:hover {
  background-color: #2563eb; /* slightly darker blue */
  transform: translateY(-2px);
}

/* Hamburger icon rotation when active */
#menu-toggle.active i {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}


/* Back to top button */
#backToTop {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: none;
  background-color: #3b82f6;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

#backToTop:hover {
  background-color: #2563eb;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('imgs/bg-img.png') no-repeat center center/cover; /* Replace with your actual dynamic background image */
    /* The generated image above can be replaced here. */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1; /* For potential future animations */
}

.hero-content {
    max-width: 900px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.4em;
    color: var(--light-text);
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    margin-top: 30px;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--mid-dark-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text p {
    margin-bottom: 15px;
}

.skills-grid ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr; /* Adjust for more columns on larger screens */
    gap: 10px;
    margin-top: 20px;
}

.skills-grid ul li {
    background-color: var(--hover-bg);
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-grid ul li i {
    color: var(--accent-color);
    font-size: 1.2em;
}

/* Projects Section */
.projects-section, .tier-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

.project-filters {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: var(--hover-bg);
    color: var(--light-text);
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--heading-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--mid-dark-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-card h3 {
    margin: 20px 20px 10px;
    font-size: 1.4em;
}

.project-card p {
    margin: 0 20px 20px;
    color: var(--light-text);
    font-size: 0.95em;
}

.project-card .btn-small {
    display: inline-block;
    margin: 0 20px 20px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--mid-dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--hover-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
}

.service-item:hover h3,
.service-item:hover p,
.service-item:hover .service-icon {
    color: var(--heading-color);
}

.service-icon {
    font-size: 3em;
    color: var(--accent-color);
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-item p {
    font-size: 0.95em;
    transition: color 0.3s ease;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--dark-bg);
    text-align: center;
}

.testimonial-carousel {
    /* For a real carousel, you'd need JS, but this styles a single item */
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--mid-dark-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.testimonial-item p {
    font-style: italic;
    font-size: 1.2em;
    margin-bottom: 20px;
}

.testimonial-item h4 {
    color: var(--primary-color);
    font-weight: 400;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--mid-dark-bg);
    text-align: center;
}

.contact-intro {
    font-size: 1.1em;
    margin-bottom: 40px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: left;
    background-color: var(--dark-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--heading-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--hover-bg);
    color: var(--light-text);
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in element's total width and height */
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.contact-form .btn {
    width: auto;
    display: block;
    margin: 30px auto 0;
}

.social-links {
  display: flex;
  gap: 15px;              /* space between icons */
  align-items: center;    /* vertically align everything */
  justify-content: center;/* center horizontally (optional) */
}

.social-links a {
  display: flex;          /* make each link a flex container */
  align-items: center;    /* keep the icon vertically aligned */
  text-decoration: none;
}

.social-links a i,
.social-links a img.fiverr-icon {
  width: 32px;
  height: 32px;
  display: block;         /* force consistent sizing */
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0) invert(0); /* default dark */
}

.social-links a:hover i,
.social-links a:hover img.fiverr-icon {
  transform: scale(1.1);
  filter: brightness(0) invert(1); /* hover to white */
}


/* Footer */
.footer {
    background-color: #111122;
    color: var(--light-text);
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin: 5px 0;
}

.footer-credit {
	margin-top: 20px;
	font-size: 0.9em;
	font-style: italic;
}

.footer-credit a {
	color: #f4f4f4;
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-credit a:hover {
	color: #007bff;
	text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3em;
    }
    .hero-content .subtitle {
        font-size: 1.2em;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .about-image {
        order: -1; /* Image appears above text on smaller screens */
    }
    .about-image img {
        max-width: 300px;
        margin: 0 auto;
    }
    .skills-grid ul {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content .subtitle {
        font-size: 1em;
    }
    .hero-buttons .btn {
        margin: 0 5px;
        padding: 10px 20px;
    }
    .hero-buttons .secondary-btn {
        margin-left: 5px;
    }

    .section-title {
        font-size: 2em;
    }
    .project-grid, .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .contact-form {
        padding: 30px;
    }
    .social-links a {
        font-size: 1.5em;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content .subtitle {
        font-size: 0.9em;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .hero-buttons .btn {
        margin: 0;
        width: 100%;
    }
    .hero-buttons .secondary-btn {
        margin-left: 0;
    }
    .project-grid, .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ==============================
   Responsive Navbar
============================== */
@media (max-width: 768px) {
  #nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background-color: #1a202c;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  }

  #nav-links a {
    display: block;
    padding: 10px 0;
    width: 100%;
  }

  #menu-toggle {
    z-index: 2000;
  }
}

/* Reveal menu when JS toggles class */
#nav-links:not(.hidden) {
  display: flex;
}
