* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #0c501a;
    --secondary-blue: #2563eb;
    --light-green: rgba(0, 100, 0, 0.75);
    --secondary-gray: #343a40;
    --accent-amber: #FFB400;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-dark: #212529;
    --bs-border-width: 1px;
}

body {
    font-family: 'Ubuntu', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

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

hr {
    border-top: none;
    height: 1px;
}

hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top-color: var(--secondary-gray);
    border-top: var(--bs-border-width) solid;
    opacity: 0.25;
}

hr .vertical {
    position: absolute;
    background-color: var(--secondary-gray);
    height: 100%;
    right: 0;
    top: 0;
    width: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

hr .vertical .dark {
    background-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.4), transparent);

}


/* Header */
header {
    color: white;
    padding: 0.3rem 0;
    position: fixed;
    width: 100%;
    top: 0.2rem;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.6rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    padding: 0;
    /*border-radius: 5px;*/
    transition: all 0.3s ease;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-family: 'Advent Pro', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--light-gray);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

#link-quote{
    display: none;
    transition: color 0.3s ease;
    opacity: 0;
}

.nav-links a:hover {
    color: var(--accent-amber);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/*!* Hero Section *!*/
/*.hero {*/
/*    !*background: url('../../assets/images/bg.jpg') center/cover no-repeat;*!*/
/*    color: white;*/
/*    padding: 150px 0 80px;*/
/*    text-align: center;*/
/*    position: relative;*/
/*}*/

/*.hero::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    bottom: 0;*/
/*    background: rgba(0, 0, 0, 0.3);*/
/*    z-index: 0;*/
/*}*/

/*.hero-content {*/
/*    position: relative;*/
/*    z-index: 2;*/
/*}*/

/*.hero-content {*/
/*    max-width: 1200px;*/
/*    margin: 0 auto;*/
/*    padding: 0 2rem;*/
/*}*/

/*.hero h1 {*/
/*    font-size: 3.5rem;*/
/*    margin-bottom: 0;*/
/*    font-weight: 700;*/
/*    font-family: 'Advent Pro', Tahoma, Geneva, Verdana, sans-serif;*/
/*}*/

/*.hero .tagline {*/
/*    font-size: 1.5rem;*/
/*    margin-bottom: 2rem;*/
/*    color: var(--accent-amber);*/
/*    font-weight: 600;*/
/*}*/

/*.hero p {*/
/*    font-size: 1.2rem;*/
/*    margin-bottom: 2rem;*/
/*    opacity: 0.9;*/
/*}*/

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-link {
    padding: 3px;
    margin: 0;
    border: none;
    border-radius: 50px;
    /*font-weight: 600;*/
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-dark);
    color: var(--accent-amber);
    border: 4px solid var(--secondary-gray);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 4px solid white;
}

.btn-primary:hover {
    background: var(--light-green);
    border: 4px solid var(--primary-green);
    backdrop-filter: blur(5px);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 1px 1px 2px 0 var(--white);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-green);
    backdrop-filter: blur(5px);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 1px 1px 2px 0 var(--text-dark);
    transition: all 0.3s ease;
}


.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover:after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--light-gray);
}


.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 0;
    font-family: 'Advent Pro', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bolder;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-content: center;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--accent-amber);
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

/* Tech Stack */
.tech-stack {
    padding: 80px 0;
    background: white;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-content: center;
}

.tech-item {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--light-gray);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.tech-item:hover {
    /*background: var(--primary-green);*/
    /*color: white;*/
    /*padding: 0;*/
    /*border: 4px solid var(--primary-green);*/
    transform: translateY(-3px);
    /*transition: all 0.1s ease;*/
}

.tech-item .icon {
    font-size: 3rem;
    color: var(--accent-amber);
    margin-bottom: 1rem;
}

.tech-item .icon svg {
    max-width: 100px!important;
    min-width: 100px!important;
    max-height: 100px!important;
    min-height: 100px!important;
}

/* Value Section */

.value {
    padding: 80px 0;
    background: var(--light-gray);
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.portfolio-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    align-content: center;
}

.portfolio-card:hover {
    transform: translateY(-5px);
}

.portfolio-card h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.portfolio-card .category {
    background: var(--accent-amber);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.portfolio-card .year {
    background: var(--secondary-gray);
    color: var(--accent-amber);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.portfolio-card img{
    max-width: 100%!important;
    min-width: 100%!important;
    max-height: 50%!important;
    min-height: 50%!important;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.founder-info {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.founder-info h1 {
    color: var(--primary-green);
    font-weight: bolder;
    font-family: "Advent Pro";
    margin-bottom: 0;
    padding: 0;
}

.founder-info li{
    margin-left: 2em;
}

/* Stats Section */
.stats {
    padding: 100px;
    background: rgba(83, 141, 83, 0.30);
}



.stats .container{
    padding: 25px 0;
    background: linear-gradient(190deg, rgb(12, 80, 26) 0%, rgba(0, 100, 0, 0.85) 99%);
    background-size: 200% 200%;
    margin: auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 13px 0 var(--secondary-gray);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--light-gray);
    margin-bottom: 0.5rem;
}

.stat-item {
    color: var(--accent-amber);
    font-weight: bold;
}


/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--light-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--accent-amber);
    margin-right: 1rem;
}

.quote-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Footer */
footer {
    background: var(--secondary-gray);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    header{
        padding: 0 10px;
    }
    .mobile-menu {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 30px;
        right: 30px;
        background: rgba(0, 100, 0, 0.75);
        flex-direction: column;
        padding: 1rem 2rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        border-radius: 0 0 25px 25px;
        backdrop-filter: blur(5px);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .stats {
        padding: 30px;
    }

    /*.tech-item .icon svg {*/
    /*    max-width: 50px!important;*/
    /*    min-width: 50px!important;*/
    /*    max-height: 50px!important;*/
    /*    min-height: 50px!important;*/
    /*}*/

}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Accounts for fixed header */
}

/* Section spacing */
section {
    scroll-margin-top: 80px;
}

/* Image optimization and lazy loading */
img {
    max-width: 100%;
    height: auto;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Social media integration */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-gray);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 4px solid var(--primary-green);
}

.social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Map styling */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;

}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 1.75rem auto;
    max-width: 600px;
    pointer-events: none;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 3.5rem);
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background: var(--primary-green) !important;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    color: white;
    font-size: 1.25rem;
}

.btn-close {
    padding: 0.5rem 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    background: transparent;
    border: 0;
    border-radius: 0.25rem;
    opacity: 1;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.btn-close::before {
    content: '×';
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body .card {
    border: none;
    background: var(--light-gray);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.modal-body .card-body {
    padding: 1rem;
}

.modal-body hr {
    width: 50% !important;
    height: 2px !important;
    background: var(--primary-green) !important;
    margin: 1rem auto !important;
    opacity: 1;
}

.modal-body .form-group {
    margin-bottom: 1rem;
}

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

.modal-body .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-body .form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(0, 100, 0, 0.25);
}

.modal-body .form-check {
    margin-bottom: 0.5rem;
}

.modal-body .form-check-input {
    margin-top: 0.25rem;
}

.modal-body .form-check-label {
    margin-left: 0.5rem;
}

.modal-body .alert {
    padding: 0.5rem !important;
    margin-top: 0.5rem !important;
    border-radius: 8px;
    border: none;
}

.modal-body .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: 15px;
    border-bottom-left-radius: 15px;
}

.modal-footer .btn {
    margin: 0.25rem;
}

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

.btn-success:hover {
    background-color: #005500;
    border-color: #005500;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Founder image styling */
.founder-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-green);
    background-color: whitesmoke;
    margin: 0 auto 1rem;
    display: block;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

/* Client logos section */
.clients {
    padding: 80px 0;
    background: white;
    overflow: hidden;
}

/*.logo-carousel {*/
/*    display: flex;*/
/*    gap: 2rem;*/
/*    animation: scrollLogos 60s linear infinite;*/
/*    width: max-content;*/
/*}*/

.logo-carousel:hover {
    animation-play-state: paused;
}

.logo-carousel {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollLogos 60s linear infinite;
    will-change: transform; /* Improves animation performance */
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    position: relative;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(2, 10, 2, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    height: 120px;
    width: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.client-logo img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: grayscale(1) opacity(0.7);
}

.client-logo:hover img {
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

.logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-green), #194919);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    text-align: center;
    padding: 1rem;
}

.client-logo:hover .logo-overlay {
    opacity: 0.90;
}

.logo-overlay h4 {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.2;
}

.logo-overlay p {
    margin: 0.3rem 0 0 0;
    font-size: 0.8rem;
    opacity: 0.9;
}


#btnScrollUp {
    flex-direction: column;
    cursor: pointer;
    align-items: center;
    user-select: none;
    position: fixed;
    bottom: 10px;
    left: 10px;
    padding: 2rem;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    width: 40px;
    height: 10px;
    background: var(--secondary-gray);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 50000;
}

#btnScrollUp .icon {
    font-size: 2rem;
}

#btnScrollUp.hide {
    display: none;
}

#btnScrollUp:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    background: var(--white);
    color: var(--secondary-gray);
    transition: all 0.3s ease;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.first-letter {
    color: var(--primary-green);
    padding: 0 .3rem;
    margin: 0 .3rem 0 0;
    border: 2px solid;
    border-radius: 8px;
    font-family: "Advent Pro";
    font-size: 4rem;
    font-weight: bolder;
    float: left;
    line-height: 1;
}

blockquote {
    font-style: italic; /* Makes the text slanted */
    color: var(--light-green); /* A subtle, dark gray color */
    border-left: 5px solid var(--primary-green); /* Creates a visual line on the left */
    margin: 1.5em 0; /* Adds spacing above and below */
    padding: 1em 2em; /* Adds internal space */
    /*background-color: var(--white); !* Gives it a light background *!*/
}

/*!* Section Dividers *!*/
/*.section-divider {*/
/*    position: relative;*/
/*    height: 150px;*/
/*    overflow: hidden;*/
/*    width: 100%;*/
/*    margin: -1px 0; !* Fixes tiny gap between sections *!*/
/*}*/

/*.section-divider svg {*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*}*/

/*.divider-top {*/
/*    top: 0;*/
/*    transform: rotate(180deg);*/
/*}*/

/*.divider-bottom {*/
/*    bottom: 0;*/
/*}*/

/*!* Color variations for different sections *!*/
/*.divider-light {*/
/*    background: var(--light-gray);*/
/*}*/

/*.divider-dark {*/
/*    background: var(--secondary-gray);*/
/*}*/

/*.divider-primary {*/
/*    background: var(--primary-green);*/
/*}*/

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed; /* Changed from absolute to fixed */
        top: 80px; /* Adjusted to account for header height */
        left: 0;
        right: 0;
        background: rgba(0, 100, 0, 0.95); /* More opaque for better readability */
        padding: 2rem;
        z-index: 999;
    }
}

/* Form validation */
/*input:invalid, textarea:invalid {*/
/*    border-color: #dc3545 !important;*/
/*}*/

input:valid, textarea:valid {
    border-color: #28a745 !important;
}

/* ======================
   IMPROVED HERO SECTION
   ====================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0c501a 0%, #006400 100%);
    overflow: hidden;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/images/bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(to right, #fff 0%, #FFB400 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-amber);
    font-weight: 600;
    font-family: 'Advent Pro', sans-serif;
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    max-width: 80%;
}

.hero-subtext {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
    max-width: 80%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
    border-radius: 20px;
}

/* Particle.js Background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: transparent;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin: -10px;
    animation: scroll-down 2s infinite;
    opacity: 0;
}

.scroll-down span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scroll-down {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* ======================
   TECH STACK SECTION
   ====================== */
.tech-stack {
    position: relative;
    padding: 120px 0;
    background-color: #f8f9fa;
    overflow: hidden;
}

/* Tech Pattern Background */
.tech-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            /*url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="10" height="10" x="0" y="0" fill="%230c501a" opacity="0.1"/><rect width="10" height="10" x="10" y="10" fill="%230c501a" opacity="0.1"/></svg>'),*/
            url('../director.png'),
            linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
    background-repeat: no-repeat;
    background-size:contain;
    background-position: center;
    opacity: 0.3;
    z-index: 1;
    /*animation: patternScroll 100s linear infinite;*/
}

@keyframes patternScroll {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.tech-item {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,7,0.05);
    transition: all 0.3s ease;
    border: 4px solid var(--primary-green)!important;
}

.tech-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.tech-item .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.tech-item:hover .icon {
    transform: scale(1.1);
}

.tech-item h4 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.tech-progress {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin-top: 1.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-amber));
    border-radius: 3px;
    transition: width 1.5s ease;
}

/* Button Improvements */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn svg {
    margin-left: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--text-dark);
    color: var(--accent-amber);
}

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

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.btn-secondary:hover svg {
    transform: translateX(5px);
}

.btn span {
    position: relative;
    z-index: 2;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero-description, .hero-subtext {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 700px;
    }

    .hero h1 {
        margin-top: 4em;
        font-size: 2.8rem;
    }

    /*.logo img{*/
    /*    filter: brightness(1) invert(0);*/
    /*}*/

    .tagline {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .hero-subtext {
        font-size: 1rem;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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

/* ======================
   GLOBAL ANIMATIONS
   ====================== */
[data-aos] {
    transition-property: transform, opacity;
}

/* Pulse animation for continuous attention */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Float animation for subtle movement */
@keyframes float {
    /*0% { transform: translateY(0px); }*/
    /*50% { transform: translateY(-10px); }*/
    /*100% { transform: translateY(0px); }*/
}

/* Rotate animation for icons */
@keyframes rotate {
    /*0% { transform: rotate(0deg); }*/
    /*100% { transform: rotate(360deg); }*/
}

/* Apply to all section headings */
.section-title h2 {
    /*animation: pulse 4s ease-in-out infinite;*/
}

/* Apply to all service/tech cards */
.service-card, .tech-item, .portfolio-card {
    animation: float 6s ease-in-out infinite;
}

/* Apply to all icons */
/*.service-card .icon, .tech-item .icon {*/
/*    animation: rotate 8s linear infinite;*/
/*    animation-play-state: paused;*/
/*}*/

/*.service-card:hover .icon, .tech-item:hover .icon {*/
/*    animation-play-state: running;*/
/*}*/

/* Bounce animation for CTAs */
.cta-buttons .btn {
    animation: pulse 2s ease infinite;
}

/* ======================
   SECTION ENTRANCE ANIMATIONS
   ====================== */
/* Fade animations */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-down"] {
    opacity: 0;
    transform: translateY(-50px);
    transition: all 0.6s ease;
}

[data-aos="fade-down"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

/* Zoom animations */
[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* ======================
   SCROLL TRIGGERED ANIMATIONS
   ====================== */
/* Animation for when element is in viewport */
.in-view {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optimize animations for performance */
[data-aos], .service-card, .tech-item, .portfolio-card, .section-title h2, .service-card .icon, .tech-item .icon {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Tech Stack Toggle Button Styles */

.extras{
    display: none;
}

#btnShowMoreStack{
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2000;
}

#btnShowMoreStack:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12, 80, 26, 0.3);
}


.screenshot-container img:hover,
.screenshot-container-small img:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.screenshot-container-small {
    position: relative;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.more-images-container {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.more-images-container:hover {
    transform: scale(1.02);
}

.more-images-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.9), rgba(25, 135, 84, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.more-images-container:hover .more-images-overlay {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.95), rgba(25, 135, 84, 0.95));
    transform: scale(1.05);
}

.more-images-content {
    text-align: center;
    color: white;
    font-weight: 600;
}

.more-images-content .fab {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.more-images-count {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.more-images-text {
    font-size: 0.9rem;
    margin-bottom: 4px;
    opacity: 0.9;
}

/* Image Carousel Modal Styles */
#imageModal .modal-content {
    background: rgba(0, 0, 0, 0) !important;
    border: none;
}

#imageModal .carousel-control-prev,
#imageModal .carousel-control-next {
    width: 5%;
    color: #fff;
}

#imageModal .carousel-control-prev-icon,
#imageModal .carousel-control-next-icon {
    background-color: var(--primary-green);;
    border-radius: 50%;
    padding: 20px;
}

#imageModal .carousel-indicators {
    margin-bottom: 1rem;
}

#imageModal .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-amber);
    border: none;
    margin: 0 5px;
}

#imageModal .carousel-indicators button.active {
    background-color: #fff;
}

#imageModal .carousel-item img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-text {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.tech-stack .badge {
    font-size: 0.8rem;
}

.project-info .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
}

.project-info .info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.service-card.full-width {
    width: 100%;
    margin-bottom: 2rem;
}

.service-card.highlight {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-blue));
    color: white;
}

.service-card.highlight .icon {
    color: white;
}

.service-card.highlight h3 {
    color: white;
}

.service-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
}

.project-meta .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

@media (max-width: 768px) {
    .project-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem !important;
    }

    .project-meta .badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }

    .service-card {
        margin-bottom: 1.5rem;
    }

    .screenshot-container-small {
        height: 120px;
    }

    .more-images-content .fab {
        font-size: 1.5rem;
    }

    .more-images-count {
        font-size: 1.2rem;
    }

    .more-images-text {
        font-size: 0.8rem;
    }

    .contact-text {
        font-size: 0.7rem;
    }
}