/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1E255B;
    --accent-color: #38B141;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 37, 91, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo .logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 80%, rgba(56, 177, 65, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(56, 177, 65, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary-color) 0%, #1a1f4a 50%, #2a3f7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(56, 177, 65, 0.03) 49%, rgba(56, 177, 65, 0.03) 51%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(255, 255, 255, 0.02) 49%, rgba(255, 255, 255, 0.02) 51%, transparent 52%);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(56, 177, 65, 0.8);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(56, 177, 65, 0.5);
}

.particle.circuit {
    background: linear-gradient(90deg, rgba(56, 177, 65, 0.8), rgba(255, 255, 255, 0.6));
    border-radius: 1px;
    animation: circuit 12s linear infinite;
    box-shadow: 0 0 8px rgba(56, 177, 65, 0.6);
}

.particle.chip {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.9), rgba(56, 177, 65, 0.7));
    border-radius: 3px;
    animation: chipFloat 10s ease-in-out infinite;
    box-shadow: 
        0 0 15px rgba(56, 177, 65, 0.4),
        inset 0 0 5px rgba(255, 255, 255, 0.3);
}

.particle.data-flow {
    background: rgba(56, 177, 65, 0.9);
    border-radius: 50%;
    animation: dataFlow 6s linear infinite;
    box-shadow: 0 0 12px rgba(56, 177, 65, 0.7);
}

.circuit-board {
    position: absolute;
    width: 2px;
    background: linear-gradient(0deg, transparent, rgba(56, 177, 65, 0.6), transparent);
    animation: circuitPulse 4s ease-in-out infinite;
}

.circuit-board.horizontal {
    height: 2px;
    width: 100px;
    background: linear-gradient(90deg, transparent, rgba(56, 177, 65, 0.6), transparent);
}

.sun-ray {
    position: absolute;
    width: 2px;
    height: 100vh;
    background: linear-gradient(
        0deg, 
        transparent 0%, 
        rgba(56, 177, 65, 0.1) 20%, 
        rgba(56, 177, 65, 0.3) 50%, 
        rgba(56, 177, 65, 0.1) 80%, 
        transparent 100%
    );
    transform-origin: center;
    animation: sunRayMove 12s ease-in-out infinite;
    opacity: 0;
}

.sun-ray.diagonal-1 {
    transform: rotate(25deg);
    animation-delay: 0s;
}

.sun-ray.diagonal-2 {
    transform: rotate(-25deg);
    animation-delay: 2s;
}

.sun-ray.diagonal-3 {
    transform: rotate(45deg);
    animation-delay: 4s;
}

.sun-ray.diagonal-4 {
    transform: rotate(-45deg);
    animation-delay: 6s;
}

.sun-ray.diagonal-5 {
    transform: rotate(15deg);
    animation-delay: 8s;
}

.sun-ray.diagonal-6 {
    transform: rotate(-15deg);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg) scale(1.1); 
        opacity: 1;
    }
}

@keyframes circuit {
    0% { 
        transform: translateX(-100px) rotate(0deg); 
        opacity: 0; 
        box-shadow: 0 0 5px rgba(56, 177, 65, 0.3);
    }
    10% { opacity: 1; }
    50% { 
        box-shadow: 0 0 20px rgba(56, 177, 65, 0.8);
    }
    90% { opacity: 1; }
    100% { 
        transform: translateX(calc(100vw + 100px)) rotate(360deg); 
        opacity: 0;
        box-shadow: 0 0 5px rgba(56, 177, 65, 0.3);
    }
}

@keyframes chipFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        box-shadow: 0 0 10px rgba(56, 177, 65, 0.4);
    }
    25% { 
        transform: translateY(-15px) rotate(90deg) scale(1.05);
        box-shadow: 0 0 20px rgba(56, 177, 65, 0.6);
    }
    75% { 
        transform: translateY(-25px) rotate(270deg) scale(0.95);
        box-shadow: 0 0 15px rgba(56, 177, 65, 0.5);
    }
}

@keyframes dataFlow {
    0% { 
        transform: scale(0.5) translateX(0); 
        opacity: 0; 
    }
    20% { 
        opacity: 1; 
        transform: scale(1) translateX(50px);
    }
    80% { 
        opacity: 1; 
        transform: scale(1) translateX(calc(100vw - 100px));
    }
    100% { 
        transform: scale(0.5) translateX(100vw); 
        opacity: 0; 
    }
}

@keyframes circuitPulse {
    0%, 100% { 
        opacity: 0.3; 
        box-shadow: 0 0 5px rgba(56, 177, 65, 0.3);
    }
    50% { 
        opacity: 1; 
        box-shadow: 0 0 20px rgba(56, 177, 65, 0.8);
    }
}

@keyframes sunRayMove {
    0% { 
        opacity: 0;
        transform: translateX(-50px) rotate(var(--rotation, 25deg));
    }
    20% {
        opacity: 0.6;
        transform: translateX(0px) rotate(var(--rotation, 25deg));
    }
    50% {
        opacity: 0.8;
        transform: translateX(25px) rotate(var(--rotation, 25deg));
    }
    80% {
        opacity: 0.4;
        transform: translateX(50px) rotate(var(--rotation, 25deg));
    }
    100% { 
        opacity: 0;
        transform: translateX(100px) rotate(var(--rotation, 25deg));
    }
}

.hero-content {
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background: radial-gradient(circle, rgba(30, 37, 91, 0.1) 0%, transparent 70%);
    border-radius: 20px;
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(56, 177, 65, 0.2);
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-color) 0%, #2d8f35 100%);
    color: var(--white);
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 4px 15px rgba(56, 177, 65, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover {
    background: linear-gradient(135deg, #2d8f35 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(56, 177, 65, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-button:hover::before {
    left: 100%;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Gallery Section */
.gallery {
    background: var(--bg-light);
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 37, 91, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-item p {
    color: var(--text-light);
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 2rem;
    margin-right: 20px;
    width: 60px;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

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

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-button:hover {
    background: #151a47;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

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

.footer-logo .logo {
    height: 40px;
    width: auto;
}

.footer-info {
    text-align: right;
}

.esa-number {
    font-size: 0.9rem;
    margin-bottom: 5px;
    opacity: 0.8;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    margin: auto;
    display: block;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close-button {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--white);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-button:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--primary-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-info {
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .service-card,
    .contact-form {
        padding: 30px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-grid .service-card {
        min-width: unset;
    }
}