:root {
    --primary: #1a5f7a;
    --secondary: #28a745;
    --accent: #ff7e30;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --text: #333333;
    --background: #f4f4f4;
    --dark-red: #8B0000; /* Added for hover effect */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    transition: background 0.3s;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo img {
    height: 40px; /* Adjust as needed for logo.png */
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    transition: color 0.3s;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/banner.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    text-align: center;
    color: white;
    border-radius: 10px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--accent);
}

/* Subscription Section */
.subscription {
    padding: 3rem 0;
    background: var(--light);
    text-align: center;
}

.subscription h2 {
    margin-bottom: 1rem;
}

.subscription p {
    margin-bottom: 1.5rem;
}

#subscription-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

#subscription-form input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 300px;
}

.btn-small {
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-small:hover {
    background: var(--accent);
}

.privacy {
    font-size: 0.9rem;
    color: #666;
}

/* Services Section */
.services {
    padding: 3rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
}

.service-card .link-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.service-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.service-card a:hover {
    color: var(--dark-red);
}

/* Page Header */
.page-header {
    background: var(--primary);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.1rem;
}

/* Feature Image */
.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Content Area */
.content {
    padding: 3rem 0;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card h2 {
    margin-bottom: 1rem;
}

.card ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.card li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 1rem;
}

.social-icons a {
    color: white;
    margin-right: 1rem;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: var(--accent);
}

#footer-subscription {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#footer-subscription input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#footer-subscription button {
    padding: 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#footer-subscription button:hover {
    background: var(--accent);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-content button {
    padding: 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    cursor: pointer;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 5px;
    color: white;
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--secondary);
}

.notification.error {
    background: #dc3545;
}

/* Responsive Breakpoints */
/* Tablet: 769px - 1024px */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .nav-menu li {
        margin-left: 1rem;
    }
    .cta-buttons {
        flex-direction: row; /* Keep horizontal on tablet */
    }
}

/* Mobile: ≤768px */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s;
        z-index: 999;
    }
    .nav-menu.active {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    #subscription-form {
        flex-direction: column;
        align-items: center;
    }
    #subscription-form input {
        width: 100%;
        max-width: 300px;
    }
    .service-card .link-container {
        flex-direction: column; /* Stack on mobile for better touch */
    }
}