/* Modern Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-green: #00b400;
    --green-glow: #00e676;
    --dark-green: #008000;
    --light-green: #e8f5e8;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 180, 0, 0.2);
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #666666;
    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--green-glow));
    --gradient-light: linear-gradient(135deg, var(--light-green), #ffffff);
    --shadow-glow: 0 0 30px rgba(0, 180, 0, 0.3);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.15);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
    background: var(--white);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #e8f5e8 100%);
}

.bg-particle {
    position: absolute;
    background: var(--primary-green);
    border-radius: 50%;
    opacity: 0.05;
    animation: float 20s infinite linear;
}

.bg-particle:nth-child(1) { width: 100px; height: 100px; top: 10%; left: 10%; animation-delay: 0s; }
.bg-particle:nth-child(2) { width: 150px; height: 150px; top: 60%; left: 80%; animation-delay: -5s; }
.bg-particle:nth-child(3) { width: 80px; height: 80px; top: 80%; left: 20%; animation-delay: -10s; }
.bg-particle:nth-child(4) { width: 120px; height: 120px; top: 30%; left: 70%; animation-delay: -15s; }
.bg-particle:nth-child(5) { width: 200px; height: 200px; top: 50%; left: 40%; animation-delay: -7s; }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 8% 80px;
    overflow: hidden;
    background: var(--white);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-primary);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 20px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-soft);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.title-line {
    display: block;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 10px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: inherit;
}

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

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

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

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

.cta-btn.outline {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
}

.cta-btn.outline:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite;
}

.shape-1 { width: 200px; height: 200px; top: 10%; right: 10%; }
.shape-2 { width: 150px; height: 150px; bottom: 20%; left: 10%; animation-delay: -2s; }
.shape-3 { width: 120px; height: 120px; top: 50%; right: 30%; animation-delay: -1s; }

.product-showcase {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.showcase-item {
    position: relative;
    width: 200px;
    height: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.showcase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 0, 0.1), transparent);
    transition: var(--transition);
}

.showcase-item:hover::before {
    left: 100%;
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.item-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.showcase-item:hover .item-bg {
    opacity: 0.1;
}

.item-content {
    text-align: center;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.item-content i {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.item-content span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.item-price {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.shop-now {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-green);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition);
}

.showcase-item:hover .shop-now {
    background: var(--primary-green);
    color: white;
    transform: translateX(5px);
}

/* Services Section */
.services {
    padding: 100px 8%;
    position: relative;
    background: var(--light-bg);
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 180, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::before {
    opacity: 0.02;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-green);
}

.service-card.featured {
    border: 2px solid var(--primary-green);
    box-shadow: var(--shadow-glow);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.service-badge.premium {
    background: linear-gradient(135deg, #ffd700, #ff6b00);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.service-features {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.feature i {
    color: var(--primary-green);
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price .amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-green);
}

.price .period {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-cta {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    border: none;
}

.service-cta:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-glow);
}

.service-cta.primary {
    background: var(--gradient-primary);
    color: white;
}

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

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

.card-hover-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 0, 0.05), transparent);
    transition: var(--transition);
}

.service-card:hover .card-hover-effect {
    left: 100%;
}

/* Process Section */
.process {
    padding: 100px 8%;
    background: var(--white);
}

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

.process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.process-header h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.process-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.process-timeline {
    display: grid;
    gap: 3rem;
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    z-index: 2;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.timeline-item:hover .marker-icon {
    transform: scale(1.1) rotate(5deg);
}

.timeline-line {
    width: 2px;
    height: 100px;
    background: var(--gradient-primary);
    margin-top: 1rem;
    opacity: 0.3;
}

.timeline-content {
    background: var(--card-bg);
    border: 1px solid rgba(0, 180, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-glow);
}

.timeline-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-number {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-soft);
}

/* CTA Section */
.cta {
    padding: 20px 8%;
    position: relative;
    background: linear-gradient(135deg, var(--light-green) 0%, var(--white) 100%);
    padding-bottom: 100px;
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.trust-badges {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 16px;
    background: rgba(0, 180, 0, 0.1);
    border-radius: 20px;
    color: var(--primary-green);
    font-weight: 600;
    font-size: 0.9rem;
}

.cta-visual {
    position: relative;
    height: 200px;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 50%;
}

.element {
    position: absolute;
    font-size: 3rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.element-1 { top: 10%; left: 20%; animation-delay: 0s; }
.element-2 { top: 50%; right: 10%; animation-delay: -2s; }
.element-3 { bottom: 20%; left: 40%; animation-delay: -4s; }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: flex-start; /* Changed from center to flex-start */
    overflow-y: auto; /* Ensure modal itself can scroll */
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    width: 90%; /* Increased from 70% for better mobile fit */
    max-width: 500px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh; /* Reduced from 97vh for better spacing */
    overflow-y: auto;
    margin: auto; /* Center vertically and horizontally */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-green);
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--light-green);
    color: var(--primary-green);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.2rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 180, 0, 0.1);
}

.contact-options {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-green);
}

.contact-options p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.contact-buttons {
    display: flex;
    flex-direction: inherit;
    gap: 1.2rem;
    align-items: center;
    justify-content: center;
}

.contact-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-decoration: none;
    font-size: 1.2rem;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.sms-btn {
    background: #9b59b6;
    color: white;
}

.sms-btn:hover {
    background: #8e44ad;
    transform: translateY(-2px);
}

.call-btn {
    background: #007bff;
    color: white;
}

.call-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.1); opacity: 0.15; }
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-stats { justify-content: center; }
    .services-grid { grid-template-columns: 1fr; }
    .cta-container { grid-template-columns: 1fr; text-align: center; }
    .timeline-item { grid-template-columns: 1fr; gap: 1rem; }
    .timeline-marker { flex-direction: row; justify-content: center; gap: 1rem; }
    .timeline-line { width: 100px; height: 2px; margin: 0; }
}

@media (max-width: 768px) {
    .hero { padding: 100px 5% 60px; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2.5rem; }
    .process-header h2 { font-size: 2.5rem; }
    .cta-content h2 { font-size: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 2rem; }
    .service-footer { flex-direction: column; gap: 1rem; align-items: stretch; }
    .cta-buttons { flex-direction: column; }
    .timeline-item { grid-template-columns: 1fr; text-align: center; }
    .timeline-marker { margin-bottom: 1rem; }
    .hero-actions { flex-direction: column; }
    .product-showcase { flex-direction: column; }
    .showcase-item { width: 100%; max-width: 300px; }
    .modal {
        padding: 10px;
        align-items: flex-start;
    }
    
    .modal-content {
        width: 95%;
        max-height: 85vh;
        margin: 20px auto;
        padding: 1.5rem;
    }
    
    .modal-body {
        max-height: calc(85vh - 120px); /* Reserve space for header */
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .hero { padding: 80px 5% 40px; }
    .hero-title { font-size: 2rem; }
    .hero-description { font-size: 1rem; }
    .hero-stats { flex-direction: column; gap: 2rem; }
    .services { padding: 60px 5%; }
    .process { padding: 60px 5%; }
    .cta { padding: 60px 5%; }
    .showcase-item { width: 100%; height: 200px; }
    .stat-number { font-size: 2rem; }
    .form-group { margin-bottom: 1.0rem; }
    .modal {
        padding: 5px;
    }
    
    .modal-content {
        width: 98%;
        max-height: 90vh;
        margin: 10px auto;
        padding: 1rem;
    }
    
    .modal-body {
        max-height: calc(90vh - 100px);
        overflow-y: auto;
    }
    
    /* Ensure form elements are mobile-friendly */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .contact-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .contact-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

.nav-link-gideon-services {
    color: rgb(0, 180, 0);
}

.cta {
    padding-bottom: 0px;
}
}