/* Global Styles */
:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --text-color: #333;
    --light-text-color: #fff;
    --background-color: #f4f7f6;
    --card-background: #fff;
    --border-color: #e0e0e0;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: color 0.3s ease; /* Added for h-tag hover */
}

h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

h2:hover {
    transform: scale(1.05);
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0.5rem auto 0;
    border-radius: 2px;
    transition: width 0.3s ease;
}

h2:hover::after {
    width: 90px;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother transition */
    font-family: var(--font-primary);
    border: none;
    cursor: pointer;
    position: relative; /* For pseudo-elements if needed */
    overflow: hidden; /* For effects like ripples */
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-text-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05); /* Enhanced hover */
    box-shadow: 0 8px 25px rgba(106, 17, 203, 0.3); /* More pronounced shadow */
    color: var(--light-text-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: var(--light-text-color);
    border-color: transparent;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 117, 252, 0.3);
}

/* Header & Navigation */
header#navbar {
    background-color: var(--light-text-color);
    color: var(--text-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, padding 0.3s ease;
}

header#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
    position: relative;
}

.nav-links a:hover::after, .nav-links a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    position: absolute;
    bottom: -5px;
    left: 0;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 70%, var(--primary-color) 100%);
    background-size: 200% 200%;
    color: var(--light-text-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
    animation: gradientBG 15s ease infinite;
}

/* Hero Background Elements Styling */
.hero-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Ensures elements don't go outside hero */
    z-index: 0; /* Behind hero-content */
}

.floating-element {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    border-radius: 50%; /* Default to circles, can be overridden */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2), 0 0 30px rgba(255, 255, 255, 0.1);
    /* Initialize parallax custom properties */
    --parallax-x: 0px;
    --parallax-y: 0px;
    --parallax-z: 0px;
    animation: float 10s infinite ease-in-out;
    /* Apply parallax effect on top of animation. Note: transform order matters. */
    /* We apply parallax translation first, then the animation's transform. */
    /* However, a more robust way is to combine them within the keyframes or use nested elements. */
    /* For simplicity here, we'll adjust the keyframes. */
    will-change: transform, opacity;
}

/* Individual shape styles and positions */
.floating-element.shape1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 10%;
    animation-duration: 12s;
    animation-delay: 0s;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Organic shape */
}

.floating-element.shape2 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-duration: 15s;
    animation-delay: -2s; /* Start at a different point in animation cycle */
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.floating-element.shape3 {
    width: 50px;
    height: 50px;
    top: 70%;
    left: 20%;
    animation-duration: 10s;
    animation-delay: -5s;
    transform: rotate(45deg); /* Make it a diamond if square */
    border-radius: 10px; /* More like a square/diamond */
}

.floating-element.shape4 {
    width: 100px;
    height: 100px;
    top: 25%;
    left: 70%;
    animation-duration: 13s;
    animation-delay: -3s;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.floating-element.shape5 {
    width: 60px;
    height: 60px;
    top: 85%;
    left: 45%;
    animation-duration: 11s;
    animation-delay: -1s;
    border-radius: 70% 30% 50% 50% / 60% 60% 40% 40%;
}

@keyframes float {
    0% {
        transform: translate3d(var(--parallax-x), var(--parallax-y), var(--parallax-z)) translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translate3d(var(--parallax-x), var(--parallax-y), var(--parallax-z)) translateY(-20px) translateX(10px) rotate(45deg) scale(1.05);
        opacity: 0.9;
    }
    50% {
        transform: translate3d(var(--parallax-x), var(--parallax-y), var(--parallax-z)) translateY(0px) translateX(-10px) rotate(90deg) scale(1);
        opacity: 0.8;
    }
    75% {
        transform: translate3d(var(--parallax-x), var(--parallax-y), var(--parallax-z)) translateY(20px) translateX(5px) rotate(135deg) scale(0.95);
        opacity: 0.6;
    }
    100% {
        transform: translate3d(var(--parallax-x), var(--parallax-y), var(--parallax-z)) translateY(0px) translateX(0px) rotate(180deg) scale(1);
        opacity: 0.7;
    }
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png'); /* Subtle pattern */
    opacity: 0.05; /* Made it more subtle */
}

.hero-content {
    z-index: 1;
    animation: fadeIn 1s ease-out 0.5s backwards; /* Added delay and backwards fill */
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.cta-buttons a {
    margin: 0 0.5rem;
}

/* Sections General Styling */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background-color: var(--light-text-color);
}

/* About Us Section */
#about .container p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    text-align: center;
}

/* Services Section */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, box-shadow; /* Performance hint */
}

.service-card:hover {
    transform: translateY(-12px) perspective(1000px) rotateX(2deg) rotateY(-2deg); /* 3D-like lift */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem auto;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Portfolio Section */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    will-change: transform, box-shadow;
    aspect-ratio: 16/9; /* Enforces 16:9 aspect ratio */
}

.portfolio-item img {
    width: 100%;
    height: 100%; /* Changed from fixed 250px to fill container */
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.portfolio-item:hover img {
    transform: scale(1.15);
}
/* Portfolio Section - Fallback for older browsers */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    will-change: transform, box-shadow;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (9/16 = 56.25%) */
    height: 0;
}

.portfolio-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.portfolio-item:hover img {
    transform: scale(1.15);
}

/* Testimonials Section */
.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, box-shadow;
}

.testimonial-card:hover {
    transform: translateY(-8px) perspective(800px) rotateX(1deg) rotateY(1deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card h4 {
    font-weight: 600;
    color: var(--secondary-color);
    text-align: right;
}

/* Contact Section */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.contact-info {
    flex: 1;
    min-width: 280px;
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

#contact-form {
    flex: 2;
    min-width: 300px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(106, 17, 203, 0.3);
}

#contact-form button[type="submit"] {
    width: auto;
}

/* Footer */
footer {
    background-color: #2c3e50; /* Darker footer */
    color: var(--light-text-color);
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-content div {
    flex: 1;
    min-width: 200px;
}

.footer-content h4 {
    color: var(--light-text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li a {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
    display: inline-block;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--light-text-color);
}

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
}

.social-icons a {
    margin-right: 1rem;
    display: inline-block;
}

.social-icons img {
    width: 24px;
    height: 24px;
    filter: grayscale(100%) brightness(200%); /* Make them white */
    transition: filter 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover img {
    filter: grayscale(0%) brightness(100%);
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #34495e;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* Scroll to Top Button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    border: none;
    outline: none;
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: var(--box-shadow);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
    opacity: 1;
    transform: scale(1.1) translateY(-3px);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    padding-top: 60px; /* Location of the box */
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    animation: slideInFromTop 0.5s ease-out;
}

@keyframes slideInFromTop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1} /* This needs to be adjusted if margin: 5% auto is kept */
}
/* Re-adjusting animation to work with margin: 5% auto */
@keyframes slideInFromTopModal {
    from {transform: translateY(-100px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.modal-content {
    /* ... existing styles ... */
    animation: slideInFromTopModal 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}


.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modalServiceName {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#modalServiceDescription {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.modal-content h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

#modalServiceIncludes {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
    margin-bottom: 1rem;
}

#modalServiceIncludes li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

#modalServiceIncludes li:last-child {
    border-bottom: none;
}

#modalServiceIncludes li::before {
    content: '✔'; /* Checkmark icon */
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

/* Careers Section Styles */
#careers {
    padding: 80px 0;
    background-color: #f9f9f9; /* Light background for contrast */
}

#careers .container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-color);
}

#careers .container p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
    line-height: 1.7;
}

#application-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group label .required {
    color: var(--primary-color);
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group select,
.form-group textarea,
.form-group input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.form-group input[type="file"] {
    padding: 8px 15px; /* Specific padding for file input */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

#application-form button[type="submit"] {
    display: block;
    width: auto;
    padding: 12px 30px;
    margin: 20px auto 0 auto;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

.form-feedback.success {
    background-color: #d4edda; /* Green for success */
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    background-color: #f8d7da; /* Red for error */
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments for careers form */
@media (max-width: 768px) {
    #application-form {
        padding: 20px;
    }

    #application-form button[type="submit"] {
        width: 100%;
    }
}


/* Chatbot Popup */
#chatbot-popup {
    display: none; /* Hidden by default, JS will control visibility */
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    max-height: 450px;
    background-color: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1001;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--font-secondary);
}

#chatbot-header {
    background: var(--gradient-primary);
    color: var(--light-text-color);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-primary);
    font-weight: 600;
}

#close-chatbot {
    background: none;
    border: none;
    color: var(--light-text-color);
    font-size: 1.2rem;
    cursor: pointer;
}

#chatbot-messages {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 300px; /* Limit height */
}

.user-message, .bot-message {
    padding: 8px 12px;
    border-radius: 15px;
    margin-bottom: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.bot-message {
    background-color: #e9e9eb;
    color: var(--text-color);
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

#chatbot-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

#chatbot-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-right: 10px;
}

#chatbot-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

#chatbot-send {
    background: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#chatbot-send:hover {
    background-color: var(--secondary-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design - Media Queries */
@media (max-width: 1024px) {
    #hero h1 { font-size: 2.8rem; }
    #hero p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 0; /* Align with header */
        height: 100vh;
        background-color: var(--light-text-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around; /* Better spacing for links */
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding-top: 60px; /* Space for fixed header */
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 1.5rem 0; /* Increased margin for vertical layout */
        opacity: 0; /* For animation */
    }

    .burger {
        display: block;
        z-index: 1001; /* Ensure burger is above nav when open */
    }

    #hero h1 { font-size: 2.2rem; }
    #hero p { font-size: 1rem; }
    .cta-buttons a { margin-bottom: 0.5rem; display: block; }

    .service-cards, .portfolio-gallery, .testimonial-cards {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-content div {
        margin-bottom: 1.5rem;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Mobile Navigation Animation */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.toggle .line2 {
    opacity: 0;
}
.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}