:root {
    --color-light: #DAD7CD;
    --color-sage: #A3B18A;
    --color-forest: #588157;
    --color-pine: #3A5A40;
    --color-dark: #344E41;
    --gradient: linear-gradient(135deg, var(--color-forest) 0%, var(--color-pine) 100%);
}

/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--color-dark);
    background: var(--color-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-dark);
    font-weight: 700;
    line-height: 1.2;
}

.success-message {
    text-align: center;
    padding: 20px;
    background-color: var(--color-light);
    color: var(--color-dark);
}

.success-message h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--color-dark);
}

.section-padding {
    padding: 50px 0;
    position: relative;
}

.bg-light {
    background-color: var(--color-light) !important;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(52, 78, 65, 0.1);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-dark);
}

.nav-link {
    color: var(--color-dark) !important;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.75rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.apply-now {
    background: var(--gradient) !important;
    color: white !important;
    padding: 0.8rem 2rem !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(88, 129, 87, 0.2);
}

.apply-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 129, 87, 0.3);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding: 120px 0;
    background: var(--color-dark);
    position: relative;
    overflow: hidden;
    margin-bottom: -120px; /* Create overlap with services section */
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--color-light);
    position: relative;
    z-index: 2;
}

.hero-badge {
    margin-bottom: 2rem;
}

.badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(163, 177, 138, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(163, 177, 138, 0.2);
}

.badge-wrapper i {
    color: var(--color-sage);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    color: var(--color-light);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(88, 129, 87, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 3rem;
    color: var(--color-sage);
}

.feature span {
    color: rgba(218, 215, 205, 0.8);
    font-size: 0.9rem;
}

.hero-cta .btn-primary {
    background: var(--color-forest);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    color: var(--color-light);
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(88, 129, 87, 0.3);
    background: var(--color-pine);
}

.hero-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.floating-elements {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.float-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(163, 177, 138, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(163, 177, 138, 0.2);
    color: var(--color-light);
    animation: float 6s ease-in-out infinite;
}

.float-item i {
    color: var(--color-sage);
}

.float-1 {
    top: 20%;
    left: 0;
    animation-delay: 0s;
}

.float-2 {
    top: 50%;
    right: -10%;
    animation-delay: 2s;
}

.float-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Add a subtle gradient overlay to the hero section */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-pine) 100%);
    opacity: 0.95;
}

/* Add a gradient transition between hero and services */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, 
        var(--color-dark) 0%,
        var(--color-light) 100%);
    z-index: 1;
}

/* Add some decorative elements */
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: var(--color-forest);
    transform: rotate(-12deg);
    opacity: 0.03;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 170px; /* 120px + 50px extra for mobile */
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-features {
        justify-content: center;
    }

    .feature {
        justify-content: center;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
    }

    .hero-illustration {
        /*margin-top: 3rem;*/
    }

    .floating-elements {
        display: none; /* Hide floating elements on mobile for better performance */
    }

    .timeline {
        padding: 1rem 0;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .timeline-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    .timeline::before {
        left: 22px;
    }
    
    .timeline-content::before {
        left: -2rem !important;
        width: 1.5rem;
    }

    .features-section::before {
        display: none;
    }
    
    .ceo-section::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    position: relative;
}

.feature-item {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(163, 177, 138, 0.2);
}

.feature-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: var(--gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--color-forest);
    margin-bottom: 1rem;
}

/* Services Section */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.service-card {
    position: relative;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(163, 177, 138, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-sage);
}

.service-card:hover::after {
    opacity: 0.05;
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    color: var(--color-forest);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: var(--color-dark);
}

.service-card p {
    position: relative;
    z-index: 1;
    color: var(--color-dark);
    opacity: 0.8;
    margin-bottom: 0;
}

/* Process Section */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    width: calc(50% - 3rem);
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(52, 78, 65, 0.1);
    border: 1px solid rgba(163, 177, 138, 0.2);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(88, 129, 87, 0.3);
}

.timeline-info {
    flex-grow: 1;
}

.timeline-step {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(163, 177, 138, 0.2);
    color: var(--color-dark);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(52, 78, 65, 0.15);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 3rem;
    height: 2px;
    background: var(--gradient);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -3rem;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -3rem;
}

/* Team Section */
.team-section {
    position: relative;
    overflow: hidden;
}

.team-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 60%;
    height: 160%;
    background: var(--gradient);
    transform: rotate(12deg);
    opacity: 0.05;
}

.team-card {
    position: relative;
    padding: 3rem;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(163, 177, 138, 0.2);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-sage);
}

/* Contact Section */
.contact-section {
    position: relative;
    background: var(--color-dark);
    color: white;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.contact-item {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--color-sage);
    margin-bottom: 1.5rem;
}

.contact-section .badge {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--color-light) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    background: var(--color-dark);
}

.footer a {
    color: var(--color-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--color-sage);
}

.footer-divider {
    border-color: var(--color-sage);
    opacity: 0.2;
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--color-sage);
    transform: translateY(-3px);
}

/* Buttons */
.btn-primary {
    background: var(--gradient);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 129, 87, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 129, 87, 0.3);
}

.btn-outline-dark {
    color: var(--color-dark);
    border: 2px solid var(--color-dark);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-dark:hover {
    background: var(--color-dark);
    color: white;
    transform: translateY(-2px);
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 50px;
    background: rgba(163, 177, 138, 0.2) !important;
    color: var(--color-dark) !important;
}

.badge.bg-light.text-dark.mb-3 {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    letter-spacing: 0.5px;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition-duration: 1s;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .timeline-content::before {
        left: -3rem !important;
        width: 2rem;
    }
}

@media (max-width: 1199.98px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .services-container {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }
}

@media (max-width: 575.98px) {
    .timeline-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 1.25rem;
    }
    
    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .timeline-info h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-info p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .timeline-step {
        font-size: 0.8rem;
        padding: 0.2rem 0.75rem;
    }
}

/* Services Section */
#services {
    position: relative;
    z-index: 2;
    padding-top: 80px; /* Increase top padding for smooth transition */
    background: var(--color-light);
}

/* Features Section */
.features-section {
    position: relative;
    background: linear-gradient(135deg, var(--color-light) 0%, rgba(218, 215, 205, 0.8) 100%);
    overflow: visible;
    padding: 120px 0;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: var(--gradient);
    opacity: 0.03;
    transform: rotate(-12deg);
    filter: blur(60px);
    z-index: 1;
}

.features-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.feature-modern-card {
    background: transparent;
    backdrop-filter: none;
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(163, 177, 138, 0.15);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-modern-card::before {
    display: none;
}

.feature-modern-card::after {
    display: none;
}

.feature-modern-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-sage);
}

.feature-modern-card .feature-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-modern-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-dark);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    text-align: center;
}

.feature-modern-card p {
    color: var(--color-dark);
    opacity: 0.85;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
}

.features-section .section-title {
    margin-bottom: 4rem;
}

.features-section .badge {
    background: rgba(163, 177, 138, 0.15) !important;
    color: var(--color-forest) !important;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

@media (max-width: 1199.98px) {
    .features-modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 767.98px) {
    .features-modern-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-modern-card {
        padding: 2rem;
    }
}

/* CEO Section */
.ceo-section {
    position: relative;
    background: var(--color-light);
    overflow: visible;
}

.ceo-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 70%;
    height: 160%;
    background: var(--gradient);
    transform: rotate(12deg);
    opacity: 0.03;
    filter: blur(60px);
    z-index: 1;
}

.ceo-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 4rem;
    position: relative;
    border: 1px solid rgba(163, 177, 138, 0.2);
    box-shadow: 0 20px 40px rgba(52, 78, 65, 0.08);
}

.ceo-image-wrapper {
    position: relative;
    padding: 2rem;
}

.ceo-image {
    width: 100%;
    height: auto;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(52, 78, 65, 0.15);
}

.experience-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-forest);
    color: white;
    padding: 1.5rem;
    border-radius: 20px;
    text-align: center;
    transform: translate(30%, -30%);
    z-index: 2;
    box-shadow: 0 10px 20px rgba(88, 129, 87, 0.2);
    display: none; /* Hide by default on desktop */
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.experience-badge .text {
    font-size: 0.875rem;
    opacity: 0.9;
}

.social-links {
    position: relative;
    bottom: auto;
    left: auto;
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    transform: none;
    z-index: 2;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(88, 129, 87, 0.15);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(88, 129, 87, 0.25);
    color: white;
}

.ceo-content {
    padding-left: 2rem;
}

.ceo-content .badge {
    background: rgba(163, 177, 138, 0.15);
    color: var(--color-forest);
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.ceo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ceo-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark);
}

.achievements {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.achievement-item i {
    font-size: 1.5rem;
    color: var(--color-forest);
    background: rgba(163, 177, 138, 0.15);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.achievement-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-dark);
}

.achievement-info p {
    font-size: 0.95rem;
    color: var(--color-dark);
    opacity: 0.8;
    margin: 0;
}

@media (max-width: 991.98px) {
    .ceo-card {
        padding: 2rem;
    }
    
    .ceo-content {
        padding-left: 0;
        margin-top: 3rem;
        text-align: center;
    }
    
    .achievements {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .achievement-item {
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .experience-badge {
        display: block; /* Show on mobile */
        transform: translate(20%, -20%);
        padding: 1rem;
    }
    
    .experience-badge .years {
        font-size: 1.5rem;
    }
    
    .social-links {
        position: relative;
        justify-content: center;
        margin-top: 2rem;
        transform: none;
    }
}

/* Add specific styles for desktop */
@media (min-width: 992px) {
    .nav-link {
        margin: 0 1.5rem; /* Increase spacing on desktop */
    }
    
    .nav-item:last-child .nav-link {
        margin-right: 0; /* Remove right margin from last item */
    }
    
    .nav-item:first-child .nav-link {
        margin-left: 0; /* Remove left margin from first item */
    }
}

.footer .social-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
}

@media (max-width: 767.98px) {
    .footer .social-links {
        justify-content: center;
    }
}

/* Popup Form */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(52, 78, 65, 0.9);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-container {
    background: var(--color-light);
    border-radius: 24px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    height: auto;
    min-height: 400px;
    max-height: 70vh;
    position: relative;
    margin: 1rem;
    box-shadow: 0 25px 50px -12px rgba(52, 78, 65, 0.25);
}

.popup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-dark);
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.popup-close:hover {
    transform: rotate(90deg);
    color: var(--color-forest);
}

.popup-content {
    height: 100%;
}

.popup-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.popup-content .lead {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-group label {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.form-control {
    background: rgba(163, 177, 138, 0.1);
    border: 1px solid rgba(163, 177, 138, 0.2);
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--color-dark);
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(163, 177, 138, 0.15);
    border-color: var(--color-forest);
    box-shadow: 0 0 0 4px rgba(88, 129, 87, 0.1);
    outline: none;
}

textarea.form-control {
    height: 60px;
    resize: none;
}

.popup-container .btn-primary {
    padding: 0.75rem;
    margin-top: 0.5rem;
}

@media (max-height: 950px) {
    .popup-container {
        padding: 1rem;
        margin: 0.5rem;
        max-height: 90vh;
    }

    .popup-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .popup-content .lead {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .form-group {
        margin-bottom: 0.5rem;
    }

    textarea.form-control {
        height: 50px;
    }

    .form-control {
        padding: 0.4rem 0.75rem;
    }
}

@media (max-height: 600px) {
    .popup-container {
        padding: 0.75rem;
        margin: 0.25rem;
        max-height: 95vh;
    }

    .popup-content h3 {
        font-size: 1.1rem;
    }

    .popup-content .lead {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }

    textarea.form-control {
        height: 40px;
    }

    .popup-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .popup-container {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .popup-content h3 {
        font-size: 1.25rem;
    }
    
    .popup-close {
        top: 0.75rem;
        right: 0.75rem;
    }
}

.row.justify-content-center.mt-5 {
    position: relative;
    z-index: 10;
} 