/* Base Styles */
:root {
    --primary-color: #046A38; /* Pakistan green */
    --secondary-color: #01411C;
    --accent-color: #FFFFFF;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #777777;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    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-color);
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn.primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.2;
}

/* Navigation */
nav {
    position: relative;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav ul li a {
    font-weight: 600;
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* Login Button */
nav ul li .btn {
    background: var(--primary-color);
    color: #fff !important;
    padding: 6px 14px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

nav ul li .btn:hover {
    opacity: 0.9; /* darker shade */
}

/* Hamburger menu icon */
.menu-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    width: 30px;
}

.menu-icon span {
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 150px 0 80px;
    margin-top: 80px;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
}

.hero h2 {
    font-size: 3rem;
    color: white;
    text-align: left;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Features Section */
.features {
    background-color: var(--light-gray);
}

.features h2 {
    margin-bottom: 50px;
}

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

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* About Section */
.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-content p {
    margin-bottom: 15px;
}

.about-list {
    margin-top: 20px;
}

.about-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-list i {
    color: var(--primary-color);
}

/* How It Works Section */
.how-it-works {
    background-color: var(--light-gray);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex: 1;
}

/* Security Section */
.security {
    text-align: center;
}

.security-subtitle {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: var(--dark-gray);
}

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

.security-card {
    background-color: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.security-card:hover {
    transform: translateY(-10px);
}

.security-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-gray);
}

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

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
}

.testimonial-content p {
    position: relative;
    z-index: 1;
}

.testimonial-content::before {
    content: '"';
    font-size: 5rem;
    color: var(--medium-gray);
    position: absolute;
    top: -30px;
    left: -10px;
    opacity: 0.3;
    z-index: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    border-radius: 50%;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta .btn.primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.cta .btn.primary:hover {
    background-color: transparent;
    color: white;
}

.cta .btn.secondary {
    color: white;
    border-color: white;
}

.cta .btn.secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-about p {
    margin-bottom: 20px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h3, .footer-contact h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.footer-contact i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 10px;
}

.footer-legal a {
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero .container, .about .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image, .about-content, .about-image {
        flex: none;
        width: 100%;
    }
    
    .hero-image, .about-image {
        order: -1;
        margin-bottom: 30px;
    }
    
    .hero h2, .about-content h2 {
        text-align: center;
    }
    
    .hero-buttons, .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
 header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo h1 {
        font-size: 1rem;
    }

   nav ul {
        flex-direction: column;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        display: none;
        text-align: center;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    nav ul li {
        margin: 15px 0;
    }

    .menu-icon {
        display: flex;
    }

    /* When active */
    nav.active ul {
        display: flex;
    }

    /* Animate hamburger to "X" */
    nav.active .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    nav.active .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    nav.active .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-buttons, .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 15px;
    }
}