body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    padding-top: 80px;
    /* Account for fixed navbar */
}

/* Navbar Styles */
.navbar {
    background-color: #fff;
    color: black;
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 1%;
}

/* Logo Styles */
.logo {
    width: 40px;
    height: 35px;
    border-radius: 15px;
    margin-right: 2rem;
}

.logo:hover {
    color: #ddd;
    transition: color 0.3s ease;
}

.logo-text {
    font-size: 15px;
    margin-bottom: 10%;
    margin-left: 1%;
    font-weight: 600;
    color: black;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #f19292;
}

/* Underline Animation */
.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

/* Hamburger Animation to Cross */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    background-color: black;
    transform: translateX(-110%);
    transition: transform 0.3s ease;
    border-radius: 15px;
    padding: 2rem;
    margin: 0 5%;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-nav-links li {
    margin: 1.5rem 0;
}

.mobile-nav-links a {
    color: whitesmoke;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    display: block;
    padding: 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mobile-nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f19292;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        padding: 3px 20px;
    }

    .nav-container {
        height: 40px;
    }

    .nav-logo {
        margin-top: 5%;
    }

    body {
        padding-top: 60px;
    }

    .mobile-menu {
        top: 60px;
        margin: 0 2%;
        z-index: 1001;
        /* Ensure this is also set in media query */
    }
}

@media screen and (max-width: 480px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-logo {
        margin-top: 5%;
    }

    .mobile-menu {
        margin: 0 1%;
        padding: 1.5rem;
    }

    .mobile-nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem;
    }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .navbar {
        padding: 20px 20px;
    }

    .nav-logo {
        margin-bottom: 3%;
    }

    .mobile-menu {
        border-radius: 0 0 50% 50%;
        padding: 4rem;
    }

    .mobile-nav-links li {
        margin: 0.8rem 0;
    }

    .mobile-nav-links a {
        padding: 0.5rem;
        font-size: 1rem;
    }
}

/* Large screens */
@media screen and (min-width: 1200px) {
    .nav-container {
        padding: 0 2rem;
    }

    .nav-links {
        gap: 3rem;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}

@media (orientation: landscape) {
    .nav-links {
        top: 60px;
    }
}

/* Service section */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.services-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.main-heading {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out;
}

.sub-heading {
    font-size: 1.8rem;
    color: #3498db;
    margin-bottom: 30px;
    font-weight: 600;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.description {
    font-size: 1.1rem;
    color: #555;
    max-width: 900px;
    margin: 0 auto 20px;
    text-align: justify;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    animation: slideInUp 0.6s ease-out forwards;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-content p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.why-choose-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.why-choose-content {
    position: relative;
    z-index: 1;
}

.section-heading {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInRight 0.6s ease-out forwards;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: bounce 2s infinite;
}

.feature-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-heading {
        font-size: 2.5rem;
    }

    .sub-heading {
        font-size: 1.4rem;
    }

    .section-heading {
        font-size: 2.2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .container {
        padding: 0 15px;
    }

    .services-section,
    .why-choose-section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .main-heading {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        margin: 0 10px;
    }

    .service-content {
        padding: 20px;
    }

    .feature-item {
        padding: 20px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {

    .services-section,
    .why-choose-section {
        padding: 40px 0;
    }

    .main-heading {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .section-heading {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
}

/* Animation delays for staggered effect */
.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

.service-card:nth-child(5) {
    animation-delay: 0.5s;
}

.service-card:nth-child(6) {
    animation-delay: 0.6s;
}

.service-card:nth-child(7) {
    animation-delay: 0.7s;
}

.service-card:nth-child(8) {
    animation-delay: 0.8s;
}

.service-card:nth-child(9) {
    animation-delay: 0.9s;
}

.service-card:nth-child(10) {
    animation-delay: 1.0s;
}

.service-card:nth-child(11) {
    animation-delay: 1.1s;
}

.service-card:nth-child(12) {
    animation-delay: 1.2s;
}

.feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-item:nth-child(4) {
    animation-delay: 0.4s;
}

.feature-item:nth-child(5) {
    animation-delay: 0.5s;
}




/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Newsletter Section */
.newsletter-section {
    max-width: 500px;
}

.footer-heading {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #3498db;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-paragraph {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #bdc3c7;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 0.875rem 1rem;
    border: 2px solid #34495e;
    border-radius: 8px;
    background-color: #2c3e50;
    color: #ecf0f1;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #3498db;
    background-color: #34495e;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.email-input::placeholder {
    color: #95a5a6;
}

.signup-button {
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signup-button:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.signup-button:active {
    transform: translateY(0);
}

/* Navigation Links Section */
.nav-links-section {
    display: flex;
    justify-content: flex-end;
}

.footer-nav {
    width: 100%;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-list li a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-list li a:hover {
    color: #3498db;
    border-bottom-color: #3498db;
    transform: translateX(5px);
}

/* Copyright Section */
.copyright-section {
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright-text {
    font-size: 0.9rem;
    color: #95a5a6;
}

.powered-by {
    font-size: 0.9rem;
    color: #95a5a6;
    font-style: italic;
}

/* Tablet Landscape (1024px and below) */
@media screen and (max-width: 1024px) and (orientation: landscape) {
    .footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-heading {
        font-size: 1.6rem;
    }

    .email-input {
        min-width: 200px;
    }
}

/* Tablet Portrait (768px and below) */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .nav-links-section {
        justify-content: center;
    }

    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .newsletter-form {
        justify-content: center;
    }

    .email-input {
        min-width: 280px;
    }

    .copyright-section {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Tablet Landscape (768px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .footer-content {
        grid-template-columns: 1.5fr 1fr;
        gap: 2rem;
    }

    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Mobile Landscape (568px to 767px) */
@media screen and (max-width: 767px) and (orientation: landscape) {
    .footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-heading {
        font-size: 1.4rem;
    }

    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .email-input {
        min-width: 250px;
        width: 100%;
        max-width: 350px;
    }

    .signup-button {
        width: 100%;
        max-width: 350px;
    }

    .copyright-section {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Mobile Portrait (480px and below) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .footer {
        padding: 1.5rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-heading {
        font-size: 1.3rem;
    }

    .footer-paragraph {
        font-size: 0.9rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .email-input {
        min-width: auto;
        width: 90%;
    }

    .signup-button {
        width: 50%;
        padding: 1rem 2rem;
    }

    .nav-list {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-list li a {
        font-size: 0.95rem;
    }

    .copyright-section {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .copyright-text,
    .powered-by {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile (320px and below) */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }

    .footer {
        padding: 1rem 0 0.75rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-heading {
        font-size: 1.2rem;
    }

    .footer-paragraph {
        font-size: 0.85rem;
    }

    .email-input,
    .signup-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .nav-list li a {
        font-size: 0.9rem;
    }
}

/* High DPI Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
screen and (min-resolution: 192dpi) {
    .footer-heading {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print Styles */
@media print {
    .footer {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }

    .signup-button {
        display: none;
    }
}