/* ==================================================
   Reset and Basic Styles
   ================================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for rem units */
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    color: #333; /* Default text color */
    background-color: #fff; /* Default background color */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add some padding on the sides for smaller screens */
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevent extra space below inline images */
}

a {
    text-decoration: none;
    color: inherit; /* Inherit color from parent */
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==================================================
   Header
   ================================================== */
header {
    background-color: #f4f4f4;
    padding: 1rem 0; /* Use rem for responsive sizing */
    position: sticky; /* Make header stick to the top on scroll */
    top: 0;
    z-index: 100; /* Ensure it's above other content */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Navigation */
header nav {
    display: flex;
}

header nav ul {
    display: flex;
    align-items: center;
}

header nav ul li {
    margin-left: 1.25rem; /* Use rem for spacing */
}

header nav ul li a {
    color: #333;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #1967d2;
}

/* Toggle Button (Responsive) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==================================================
   Hero Section
   ================================================== */
.hero {
    background: linear-gradient(135deg, #4285f4, #1967d2);
    color: white;
    padding: 5rem 0; /* Adjust padding for smaller screens */
}

.hero .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
    gap: 2rem; /* Space between hero content and image */
}

.hero-content {
    flex: 1 1 400px; /* Grow/shrink, initial width */
    margin-bottom: 2rem; /* Space below content on smaller screens */
}

.hero-content h1 {
    font-size: 2.5rem; /* Adjust font size for responsiveness */
    margin-bottom: 0.625rem;
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

.hero-content .contact-btn {
    background-color: white;
    color: #1967d2;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-content .contact-btn:hover {
    background-color: #145db2;
    color: white;
}

.hero-image {
    flex: 1 1 100px;
    text-align: center; /* Center image on smaller screens */
}

.hero-image img {
    width: 500px; /* Ensure image doesn't overflow */
    height: auto;
}

/* ==================================================
   Stats Section
   ================================================== */
.stats {
    background-color: #f9f9f9;
    padding: 3rem 0;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.25rem;
    text-align: center; /* Center stats on smaller screens */
}

.stats .stat {
    flex: 1 1 150px; /* Distribute space evenly */
    padding: 1rem;
}

.stats .stat h3 {
    font-size: 1.75rem;
    margin-bottom: 0.3125rem;
}

.stats .stat p {
    font-size: 1rem;
    color: #666;
}

/* ==================================================
   Services Section
   ================================================== */
.services {
    padding: 4rem 0;
}

.services h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjust minmax for responsiveness */
    gap: 1.25rem;
}

.services .service {
    text-align: center;
    padding: 1.25rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.services .service:hover {
    transform: translateY(-0.3125rem);
}

.services .service img {
    max-width: 5rem;
    margin-bottom: 0.9375rem;
}

.services .service h3 {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
}

.services .service p {
    font-size: 1rem;
    color: #666;
}

/* ==================================================
   Skills Section
   ================================================== */
.skills {
    background-color: #f4f4f4;
    padding: 4rem 0;
}

.skills h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.skills .skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skills .skill {
    display: flex;
    flex-direction: column;
}

.skills .skill-label {
    margin-bottom: 0.3125rem;
    font-weight: bold;
}

.skills .bar {
    background-color: #ddd;
    height: 1.25rem;
    border-radius: 0.625rem;
    overflow: hidden;
}

.skills .progress {
    background-color: #1967d2;
    height: 100%;
    transition: width 1s ease-in-out;
    border-radius: 0.625rem;
}

/* ==================================================
   Portfolio Section
   ================================================== */
.portfolio {
    padding: 4rem 0;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.portfolio .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjust minmax for responsiveness */
    gap: 1.25rem;
}

.portfolio .portfolio-item {
    border-radius: 5px;
    overflow: hidden; /* Clip images to the border radius */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
}

.portfolio .portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================================================
   Contact Section
   ================================================== */
.contact {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.25rem;
    border-radius: 5px;
    background-color: #fff; /* Optional form background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional form shadow */
}

.contact .form-group {
    margin-bottom: 1.25rem;
}

.contact label {
    display: block;
    margin-bottom: 0.3125rem;
    font-weight: bold;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.contact button {
    background-color: #1967d2;
    color: white;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 100%; /* Make button full width on smaller screens */
}

.contact button:hover {
    background-color: #145db2;
}

/*wordpress*/
.wp{
    margin-top: 25px;
    text-align: center;
}
/* ==================================================
   Footer Section
   ================================================== */
footer {
    background-color: #333;
    color: white;
    padding: 2.5rem 0;
}

footer .footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    text-align: center; /* Center content on smaller screens */
}

footer .footer-section {
    flex: 1 1 200px;
}

footer .footer-section h3 {
    margin-bottom: 0.625rem;
    font-size: 1.125rem;
}

footer .footer-section ul li {
    margin-bottom: 0.3125rem;
}

footer .footer-section a {
    color: white;
    transition: color 0.3s ease;
}

footer .footer-section a:hover {
    color: #f4f4f4;
}

footer p {
    text-align: center;
    font-size: 0.875rem;
    margin-top: 1.25rem;
}

/* ==================================================
   Focus Styles
   ================================================== */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #1967d2;
    outline-offset: 2px;
}

/* ==================================================
   Responsive Design
   ================================================== */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    header nav {
        display: block; /* Show navigation on larger screens */
    }

    .nav-toggle {
        display: none; /* Hide toggle button */
    }

    header .container,
    .stats .container {
        flex-direction: row; /* Reset to row for larger screens */
        align-items: center;
    }

    header nav ul {
        flex-direction: row;
        margin-top: 0;
    }

    header nav ul li {
        margin: 0 0 0 1.25rem;
    }

    .stats .container {
        text-align: left;
    }

    .stats .stat {
        text-align: center;
    }

    .contact button {
        width: auto; /* Adjust button width on larger screens */
    }

    footer .footer-content {
        text-align: left;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    .hero .container {
        display: flex; /* Enable flexbox for hero container on large screens */
        justify-content: space-between;
        align-items: center;
    }

    .hero-content {
        flex: 1; /* Allow content to take available space */
        margin-bottom: 0;
        text-align: left;
    }

    .hero-image {
        flex: 1; /* Allow image to take available space */
        text-align: right;
    }

    .hero-image img {
        max-width: 500px; /* Adjust this value as needed */
        height: auto; /* Maintain aspect ratio */
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-image img {
        max-width: 600px; /* Adjust for even wider screens if necessary */
    }
}

/* Custom breakpoint for very wide screens if needed */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-image img {
        max-width: 700px; /* Further adjustment for very wide screens */
    }
}

/* Mobile Specific Adjustments */
@media (max-width: 991px) {

 /* Adjusted breakpoint to target smaller screens */
    html {
        font-size: 14px; /* Further reduce base font size on very small screens */
    }

    header .logo {
        font-size: 1.25rem;
    }

    .nav-toggle {
        display: block;
    }

    header nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #f4f4f4;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    header nav.nav-active {
        display: block;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    header nav ul li {
        margin: 0.625rem 0;
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-image {
        order: -1; /* Image appears before text on mobile */
        margin-bottom: 2rem;
    }

    .stats .container {
        flex-direction: column;
        align-items: center;
    }

    footer .footer-content {
        flex-direction: column;
    }

}