* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

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;
    }
}

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

.main-heading {
    text-align: center;
    font-size: 3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-grid {
    display: grid;
    gap: 4rem;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about-section:nth-child(even) {
    direction: rtl;
}

.about-section:nth-child(even) .content {
    direction: ltr;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
}

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

.image-container:hover img {
    transform: scale(1.05);
}

.content {
    padding: 1rem;
}

.content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    text-align: justify;
}

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .main-heading {
        font-size: 2.5rem;
    }

    .about-section {
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .content h2 {
        font-size: 1.8rem;
    }

    .content p {
        font-size: 1rem;
    }

    .image-container {
        height: 250px;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .about-container {
        padding: 1rem 0.5rem;
    }

    .main-heading {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-grid {
        gap: 2rem;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .about-section:nth-child(even) {
        direction: ltr;
    }

    .content h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .content p {
        font-size: 0.95rem;
        text-align: left;
    }

    .image-container {
        height: 200px;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .main-heading {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .about-section {
        padding: 0.8rem;
    }

    .content h2 {
        font-size: 1.3rem;
    }

    .content p {
        font-size: 0.9rem;
    }

    .image-container {
        height: 180px;
    }
}

/* Landscape Orientation */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .main-heading {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .about-grid {
        gap: 2rem;
    }

    .about-section {
        padding: 1rem;
    }

    .image-container {
        height: 200px;
    }
}

/* Portrait Orientation for tablets */
@media screen and (orientation: portrait) and (min-width: 768px) and (max-width: 1024px) {
    .about-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-section:nth-child(even) {
        direction: ltr;
    }

    .image-container {
        height: 300px;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Large Desktop Styles */
@media screen and (min-width: 1400px) {
    .about-container {
        max-width: 1400px;
    }

    .main-heading {
        font-size: 3.5rem;
    }

    .content h2 {
        font-size: 2.2rem;
    }

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

    .image-container {
        height: 350px;
    }
}

/* 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;
    }
}