/* Global Styles */
body {
    font-family: 'Poppins', sans-serif; /* Updated font */
    margin: 0;
    padding: 0;
    background-color: #fafafa; /* Softer off-white background */
    color: #333333; /* Dark gray for text */
    padding-top: 70px; /* Adjusted for new header height */
    line-height: 1.6;
}

/* Header */
header {
    background-color: #fafafa; /* Softer off-white header */
    border-bottom: 1px solid #dddddd; /* Light gray border */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem; /* Increased padding */
    box-sizing: border-box;
    height: 70px; /* Defined header height */
    transition: background-color 0.3s ease;
}

header nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

header .logo a {
    color: #007bff; /* Primary blue for logo */
    text-decoration: none;
    font-size: 1.8rem; /* Slightly larger logo text */
    font-weight: 700; /* Bolder logo */
    letter-spacing: 1px;
}

header .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header .nav-links li {
    margin: 0 1.2rem; /* Increased spacing */
}

header .nav-links li a {
    color: #555555; /* Dark gray for nav links */
    text-decoration: none;
    font-weight: 400; /* Regular weight for nav links */
    font-size: 1rem;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    padding-bottom: 5px; /* Space for underline effect */
    border-bottom: 2px solid transparent; /* Transparent underline by default */
}

header .nav-links li a:hover {
    color: #007bff; /* Primary blue on hover */
    border-bottom-color: #007bff; /* Underline appears on hover */
}

header .nav-links li a.active {
    color: #007bff; /* Primary blue for active */
    font-weight: 600; /* Slightly bolder for active */
    border-bottom-color: #007bff; /* Persistent underline for active */
}

.hamburger-menu {
    display: none; /* Hidden by default */
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
}

.hamburger-menu span {
    display: block;
    width: 100%; /* Make lines full width of hamburger-menu container */
    height: 3px;
    background-color: #333333; /* Dark color for hamburger lines */
    border-radius: 2px; /* Slightly rounded lines */
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); /* Smoother transition */
}

/* Hero Section */
#hero {
    box-sizing: border-box;
    /* 100 * --vh is full inner height; subtract 70px for the header */
    height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333333;
    padding: 2rem 1rem;
    background: #fafafa;
    background-size: cover;
    background-position: center;
}

#hero h1 {
    font-size: 3.5rem; /* Larger hero title */
    font-weight: 700;
    margin: 0 0 1rem 0;
    letter-spacing: 1px;
}

#hero p {
    font-size: 1.3rem; /* Slightly larger hero subtitle */
    margin: 0 0 2rem 0;
    max-width: 700px;
    font-weight: 300;
    color: #555555; /* Darker subtitle color */
}

.cta-button {
    padding: 0.9rem 2rem; /* Slightly larger CTA */
    background-color: #007bff; /* Primary blue CTA */
    color: #ffffff; /* White text on blue CTA */
    text-decoration: none;
    border-radius: 25px; /* Pill shape */
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); /* Adjusted shadow for blue */
}

.cta-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-3px);
}

/* General Section Styling */
section {
    padding: 4rem 2rem; /* Consistent padding for sections */
}

/* Services Section */
#services {
    background-color: #d8d8d8; /* Even darker grey for Services */
}

#services h2, #portfolio h2, #about h2, #contact h2, #pricing h2 {
    text-align: center;
    font-size: 2.5rem; /* Larger section titles */
    font-weight: 600;
    margin-bottom: 3rem; /* More space below title */
    color: #007bff; /* Primary blue for titles */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Min width for cards */
    gap: 2rem; /* Increased gap */
}

#services .service {
    text-align: left; /* Align text to left for a more professional look */
    background-color: #ffffff; /* Cards remain white */
    padding: 2rem; /* Increased padding in cards */
    border-radius: 10px; /* Slightly more rounded cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #007bff; /* Primary blue border */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Subtle shadow for cards */
}

#services .service:hover {
    transform: translateY(-10px) scale(1.02); /* More pronounced hover effect */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* Enhanced shadow on hover */
}

.service-icon { /* For the new icons in HTML */
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #007bff;
}

#services .service h3 {
    font-size: 1.6rem; /* Larger service titles */
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333333; /* Dark heading for service */
}

#services .service p {
    font-size: 1rem;
    color: #555555; /* Darker gray for service text */
}

/* Pricing Section */
#pricing {
    padding: 4rem 2rem;
    background-color: #fafafa; /* Softer off-white for Pricing */
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Match .service-grid min-width */
    gap: 2rem;
}

.pricing-tier {
    background-color: #f0f0f0; /* Lighter grey background */
    border-radius: 10px;
    padding: 2rem;
    text-align: left;
    border-left: 4px solid #007bff;
    border: 1px solid #cccccc; /* Added border for pricing tiers */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-tier:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pricing-tier h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem; /* Increased margin for better separation */
    color: #333333;
}

.pricing-tier ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0; /* Add some bottom margin to ul */
}

.pricing-tier ul li {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 0.75rem; /* Spacing between list items */
    display: flex; /* Align checkmark and text */
    align-items: flex-start; /* Align items to the start for multi-line text */
}

/* About Section */
#about {
    padding: 4rem 2rem;
    background-color: #d8d8d8; /* Even darker grey for About */
}

#about p {
    font-size: 1.15rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
    color: #555555;
}

/* Contact Section */
#contact {
    padding: 4rem 2rem;
    background-color: #fafafa; /* Softer off-white for Contact */
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Gap between form elements */
}

#contact-form label {
    font-size: 1rem;
    font-weight: 400;
    color: #555555;
    margin-bottom: 0.2rem; /* Reduced margin as gap handles spacing */
}

#contact-form input, #contact-form textarea {
    padding: 1rem; /* Increased padding */
    margin-bottom: 0; /* Removed as gap handles spacing */
    border: 1px solid #cccccc; /* More visible border for inputs */
    border-radius: 8px;
    background-color: #d8d8d8; /* Matching About Me section background */
    color: #333333; /* Dark text for inputs */
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input:focus, #contact-form textarea:focus {
    outline: none;
    border-color: #007bff; /* Primary blue for focus */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

#contact-form button {
    padding: 1rem 2rem;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1rem; /* Added margin-top for spacing */
}

#contact-form button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Footer */
footer {
    background-color: #d8d8d8; /* Even darker grey for Footer */
    padding: 2.5rem 1rem; /* Increased footer padding */
    text-align: center;
    border-top: 1px solid #dddddd; /* Light gray border for footer */
}

footer .social-links {
    margin-bottom: 1rem;
}

footer .social-links a {
    color: #555555; /* Dark gray for footer links */
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 1.2rem; /* Larger social icons */
    display: inline-flex; /* Align icon and text */
    align-items: center; /* Vertically align icon and text */
}

footer .social-links a i {
    margin-right: 0.5rem; /* Space between icon and text */
}

footer .social-links a:hover {
    color: #007bff; /* Primary blue for footer link hover */
}

footer p {
    margin: 0;
    font-size: 0.95rem;
    color: #555555; /* Darker gray for footer text */
}

/* WhatsApp FAB Styles */
.whatsapp-fab {
    position: fixed;
    bottom: 30px; /* Increased spacing */
    right: 30px; /* Increased spacing */
    background-color: #25d366; /* WhatsApp green */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px; /* Adjust icon size */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 1000; /* Ensure it's above other content */
    transition: background-color 0.3s ease;
}

.whatsapp-fab:hover {
    background-color: #128c7e; /* Darker green on hover */
}

.whatsapp-fab i {
    color: white; /* Ensure icon color is white */
}

/* ===========================
   RESPONSIVE MEDIA QUERIES
   =========================== */

/* Tablet and below (max-width: 1024px) */
@media (max-width: 1024px) {
    /* Reduce header padding */
    header {
        padding: 0 1.5rem;
    }
    /* Slightly smaller logo */
    header .logo a {
        font-size: 1.6rem;
    }
    /* Reduce space between nav items */
    header .nav-links li {
        margin: 0 0.8rem;
    }
    /* Hero adjustments */
    #hero h1 {
        font-size: 3rem;
    }
    #hero p {
        font-size: 1.2rem;
        max-width: 600px;
    }
    /* Section title adjustments */
    #services h2, #portfolio h2, #about h2, #contact h2, #pricing h2 {
        font-size: 2.2rem;
    }
    /* Service card padding */
    #services .service {
        padding: 1.5rem;
    }
    /* Pricing tier padding */
    .pricing-tier {
        padding: 1.5rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    header {
        padding: 0 1.5rem; /* Adjusted header padding */
        height: 60px; /* Slightly smaller header on mobile */
    }
    body {
        padding-top: 60px; /* Match mobile header height */
    }

    #hero {
        padding: 1rem; /* Reduce padding */
    }

    #hero h1 {
        font-size: 2rem; /* Reduce font size */
    }

    #hero p {
        font-size: 1rem; /* Reduce font size */
    }

    header .logo a {
        font-size: 1.5rem;
    }

    header .nav-links {
        flex-direction: column;
        align-items: center; /* Center links in mobile menu */
        width: 100%;
        position: absolute;
        top: 60px; /* Position below mobile header */
        left: 0;
        background-color: #ffffff; /* Match header background */
        border-top: 1px solid #dddddd;
        padding: 1rem 0;
        display: none; /* Hidden by default */
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    }

    header .nav-links.active {
        display: flex;
    }

    header .nav-links li {
        margin: 0.8rem 0; /* Spacing for mobile links */
    }

    header .nav-links li a {
        font-size: 1.1rem; /* Larger tap targets */
        padding-bottom: 3px;
        border-bottom-width: 2px; /* Consistent underline thickness */
    }

    header .nav-links li a.active, header .nav-links li a:hover {
        border-bottom-color: #00aaff; /* Ensure hover/active underline is visible */
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around; /* This will space out the spans */
        width: 28px; /* Adjusted width */
        height: 22px; /* Adjusted height */
        position: relative; /* For absolute positioning of cross pseudo-elements if needed, or direct span manipulation */
    }

    .hamburger-menu span { /* These are the default state lines */
        width: 100%;
        height: 3px; /* Consistent height */
        background-color: #333333; /* Dark color for hamburger lines */
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
        transform-origin: center; /* Ensure rotation is centered */
    }

    /* Transform to Cross when .active */
    .hamburger-menu.active span:nth-child(1) {
        background-color: #007bff; /* Primary blue for cross */
        transform: translateY(9.5px) rotate(45deg); /* Move down and rotate */
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0; /* Middle line disappears */
        transform: translateX(-100%); /* Optionally move it out of view */
    }
    .hamburger-menu.active span:nth-child(3) {
        background-color: #007bff; /* Primary blue for cross */
        transform: translateY(-9.5px) rotate(-45deg); /* Move up and rotate */
    }

    #hero {
        min-height: calc(100vh - 60px);
        padding: 3rem 1rem;
    }

    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    section {
        padding: 3rem 1rem; /* Reduced padding for sections on mobile */
    }

    #services h2, #portfolio h2, #about h2, #contact h2, #pricing h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .service-grid, .portfolio-grid {
        grid-template-columns: 1fr; /* Stack items on mobile */
        gap: 1.5rem;
    }

    #services .service {
        padding: 1.5rem;
    }
    .service-icon {
        font-size: 2rem;
    }
    #services .service h3 {
        font-size: 1.4rem;
    }
    #services .service p {
        font-size: 0.95rem;
    }

    .portfolio-item img {
        height: 200px; /* Adjust image height for mobile */
    }
    .portfolio-content {
        padding: 1rem;
    }
    .portfolio-item h3 {
        font-size: 1.3rem;
    }
    .portfolio-item p {
        font-size: 0.9rem;
    }

    #about p {
        font-size: 1rem;
    }

    .skills h3 {
        font-size: 1.5rem;
    }
    .skills ul li {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    #contact-form input, #contact-form textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    #contact-form button {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }

    footer .social-links a {
        font-size: 1.1rem; /* Slightly larger social links on mobile */
        margin: 0 0.8rem;
    }

    footer p {
        font-size: 0.9rem;
    }

    /* Removed max-width: 1200px and margin: 0 auto from .pricing-grid here */
}

@media (max-width: 480px) {
    header {
        padding: 0 1rem;
    }
    #hero h1 {
        font-size: 2rem;
    }
    #hero p {
        font-size: 1rem;
    }
    #services h2, #portfolio h2, #about h2, #contact h2 {
        font-size: 1.8rem;
    }
    /* Removed max-width: 1200px and margin: 0 auto from .pricing-grid here */
}

