/* Reset and Base Styles */
:root {
    --primary-color: #0056b3; /* Vibrant Blue */
    --secondary-color: #00d4ff; /* Cyan/Electric Blue for glows */
    --accent-color: #00c853; /* Vibrant Green */
    --text-dark: #111;
    --text-light: #444;
    --bg-light: #f0f4f8;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header */
header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Language Selector Dropdown */
.lang-dropdown-container {
    position: relative;
    margin-left: 30px;
    padding-left: 30px;
    border-left: 1px solid #eee;
}

.lang-toggle {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.lang-toggle:hover {
    background: rgba(0, 86, 179, 0.05);
}

.lang-toggle img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lang-toggle i {
    font-size: 0.7rem;
    color: #777;
    transition: transform 0.3s;
}

.lang-dropdown-container.active .lang-toggle i {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.lang-dropdown-container.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
    width: 100%;
}

.nav-links .lang-option::after {
    display: none;
}

.lang-option:hover {
    background: #f5f7fa;
    color: var(--primary-color);
}

.lang-option.selected {
    background: rgba(0, 86, 179, 0.05);
    color: var(--primary-color);
    font-weight: 700;
}

.lang-option img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Banner */
.banner {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 0;
    overflow: hidden;
    background: #001e3c;
}

/* Animated Background */
.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(circle at center, #002a5c 0%, #000b1a 100%);
    overflow: hidden;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: moveGlow 15s infinite alternate;
}

.circle-1 {
    width: 500px;
    height: 500px;
    background: #00d4ff;
    top: -100px;
    left: -100px;
    animation-duration: 20s;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: #0056b3;
    bottom: -50px;
    right: -50px;
    animation-duration: 25s;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: #7b1fa2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 10s infinite alternate;
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1), 0 0 0 8px rgba(255,255,255,0.1), 0 0 20px rgba(255,255,255,1);
    animation: animateStar 3s linear infinite;
    opacity: 0;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes animateStar {
    0% {
        transform: rotate(315deg) translateX(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(315deg) translateX(-1000px);
        opacity: 0;
    }
}

/* Randomize star positions and delays */
.shooting-star:nth-child(1) {
    top: 0;
    right: 0;
    left: initial;
    animation-delay: 0;
    animation-duration: 1s;
}

.shooting-star:nth-child(2) {
    top: 0;
    right: 80px;
    left: initial;
    animation-delay: 0.2s;
    animation-duration: 3s;
}

.shooting-star:nth-child(3) {
    top: 80px;
    right: 0px;
    left: initial;
    animation-delay: 0.4s;
    animation-duration: 2s;
}

.shooting-star:nth-child(4) {
    top: 0;
    right: 180px;
    left: initial;
    animation-delay: 0.6s;
    animation-duration: 1.5s;
}

.shooting-star:nth-child(5) {
    top: 0;
    right: 400px;
    left: initial;
    animation-delay: 0.8s;
    animation-duration: 2.5s;
}
.shooting-star:nth-child(6) {
    top: 0;
    right: 600px;
    left: initial;
    animation-delay: 1s;
    animation-duration: 3s;
}
.shooting-star:nth-child(7) { 
    top: 300px;
    right: 0px; 
    left: initial;
    animation-delay: 1.2s;
    animation-duration: 1.75s;
}

@keyframes moveGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 50px); }
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.banner .container {
    position: relative;
    z-index: 2;
}

.banner-content {
    max-width: 900px;
    margin: 0 auto;
}

.banner h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-weight: 800;
}

.banner p {
    font-size: 1.4rem;
    margin-bottom: 45px;
    font-weight: 300;
    opacity: 0.95;
}

.banner-btns {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #007bff);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Sections Generic */
.section {
    padding: 120px 0;
}

.bg-light {
    background: var(--bg-light);
}

.bg-dark {
    background: #0b101a;
    color: var(--white);
}

.bg-dark h2, .bg-dark p, .bg-dark a {
    color: var(--white);
}

h2 {
    text-align: center;
    margin-bottom: 70px;
    font-size: 3rem;
    position: relative;
    display: block;
    width: 100%;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto 70px;
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-light);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.vm-card {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.vm-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.vm-card .icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
}

.vm-card i {
    font-size: 2rem;
}

.vm-card h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card h3 {
    margin-bottom: 0;
    font-size: 1.4rem;
    color: #222;
    transition: all 0.4s ease;
}

.service-card p {
    font-size: 1rem;
    color: #555;
    opacity: 0;
    max-height: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    margin-top: 0;
}

.service-card:hover .card-icon {
    transform: scale(0.8) translateY(-10px);
    margin-bottom: 10px;
}

.service-card:hover h3 {
    transform: translateY(-5px);
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card:hover p {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 5px;
    height: 100%;
    background: var(--secondary-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.project-card:hover::before {
    width: 10px;
    background: var(--primary-color);
}

.project-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(0, 212, 255, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-icon-wrapper i {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.project-card:hover .project-icon-wrapper i {
    transform: scale(1.2);
    color: var(--secondary-color);
}

.project-details {
    flex: 1;
}

.project-details h3 {
    text-align: left;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.4;
}

.project-line {
    width: 40px;
    height: 2px;
    background: #eee;
    transition: var(--transition);
}

.project-card:hover .project-line {
    width: 100%;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: stretch;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: center;
}

.info-item {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

.info-item .info-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.info-item h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.info-item p {
    font-size: 1.1rem;
    color: #ddd;
}

.info-item a {
    color: var(--secondary-color);
    font-weight: 700;
}

/* JotForm Wrapper */
.jotform-wrapper {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    overflow: hidden;
}

/* Footer */
footer {
    background: #020a14;
    color: #8892b0;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .banner h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        border-top: 1px solid #eee;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 25px 0;
        margin-left: 0;
    }
    
    /* Adjust lang selector for mobile */
    .lang-dropdown-container {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 20px;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .lang-menu {
        position: static;
        box-shadow: none;
        border: 1px solid #eee;
        width: 200px;
        margin-top: 15px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .lang-dropdown-container.active .lang-menu {
        display: block;
    }

    .hamburger {
        display: block;
    }
    
    .banner h1 {
        font-size: 2.5rem;
    }
    
    .service-card {
        height: auto;
        padding: 30px;
    }
    
    .service-card p {
        opacity: 1;
        max-height: none;
        transform: none;
        margin-top: 15px;
    }
    
    .service-card:hover .card-icon {
        transform: none;
    }
    
    .service-card:hover h3 {
        transform: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .project-details h3 {
        text-align: center;
        margin-top: 15px;
    }
    
    .project-line {
        margin: 10px auto 0;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
