/* Base Styles */
:root {
    --primary-color: #64FFDA;
    --secondary-color: #0A192F;
    --text-color: #CCD6F6;
    --text-secondary: #8892B0;
    --bg-color: #0A192F;
    --bg-light: #112240;
    --bg-lighter: #233554;
    --white: #E6F1FF;
    --transition: all 0.3s ease-in-out;
}

.dark-mode {
    --primary-color: #64FFDA;
    --secondary-color: #0A192F;
    --text-color: #CCD6F6;
    --text-secondary: #8892B0;
    --bg-color: #0A192F;
    --bg-light: #112240;
    --bg-lighter: #233554;
    --white: #E6F1FF;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

body.dark-mode {
    background: var(--bg-color);
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-logo {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
}

.loading-logo svg {
    width: 100%;
    height: 100%;
    animation: rotate 3s linear infinite;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.loading-progress {
    width: 200px;
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-progress-bar {
    height: 100%;
    width: 0;
    background: var(--primary-color);
    animation: progress 1.5s ease-in-out forwards;
}

@keyframes progress {
    to { width: 100%; }
}

.loading-text {
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
    color: var(--text-color);
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.dark-mode-icon {
    width: 24px;
    height: 24px;
}

/* Background Elements */
.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(100, 255, 218, 0.1);
    filter: blur(60px);
    z-index: -1;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
}

.scrolled {
    background: rgba(10, 25, 47, 0.9);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.login-nav-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 4px;
    transition: var(--transition);
}

.login-nav-btn:hover {
    background: rgba(100, 255, 218, 0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
}

/* Mobile Menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: var(--bg-light);
    z-index: 99;
    transition: var(--transition);
    padding: 20px;
    box-shadow: -10px 0 30px -15px rgba(2, 12, 27, 0.7);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 30px;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
}

.mobile-menu-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-links a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image svg {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
}

.hero-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.contact-method svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* Contact Form Section */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
}

.contact-form-container {
    display: flex;
    gap: 50px;
    background: var(--bg-light);
    border-radius: 10px;
    padding: 50px;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.form-intro {
    flex: 1;
}

/* Form Illustration Styles */
.form-image {
    position: relative;
    perspective: 1000px;
}

.form-illustration {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(2, 12, 27, 0.5));
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateX(5deg) rotateY(-5deg); }
    50% { transform: translateY(-15px) rotateX(3deg) rotateY(3deg); }
}

.form-field {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: drawIn 1.5s forwards 0.5s;
}

.form-label {
    transform-origin: left center;
    transform: scaleX(0);
    animation: scaleIn 0.8s forwards 1s;
}

.submit-button {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s forwards 1.8s;
}

.cursor {
    animation: blink 1s infinite, type 3s steps(20) infinite 2s;
}

.status-light {
    animation: pulse 2s infinite;
}

.code-line {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawIn 1s forwards;
}

.code-line:nth-child(1) { animation-delay: 0.2s; }
.code-line:nth-child(2) { animation-delay: 0.4s; }
.code-line:nth-child(3) { animation-delay: 0.6s; }
.code-line:nth-child(4) { animation-delay: 0.8s; }

@keyframes drawIn {
    to { stroke-dashoffset: 0; }
}

@keyframes scaleIn {
    to { transform: scaleX(1); }
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes type {
    0% { transform: translateX(0); }
    25% { transform: translateX(80px); }
    50% { transform: translateX(80px) translateY(25px); }
    75% { transform: translateX(0) translateY(25px); }
    100% { transform: translateX(0) translateY(50px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hover Effects */
.form-illustration:hover {
    animation: none;
    transform: translateY(-5px) rotateX(8deg) rotateY(-8deg);
}

.form-illustration:hover .submit-button {
    fill: #52E3C2;
    transition: fill 0.3s ease;
}

.form-illustration:hover .status-light {
    animation: pulse 0.5s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-image {
        margin-bottom: 40px;
    }
    
    .form-illustration {
        max-width: 300px;
    }
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    background: var(--bg-lighter);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--text-secondary);
}

.submit-btn {
    align-self: flex-start;
    margin-top: 10px;
}

.projbtn {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.projbtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -10px rgba(100, 255, 218, 0.6);
}

.projbtn.outline-btn {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.projbtn.outline-btn:hover {
    background: rgba(100, 255, 218, 0.1);
    box-shadow: none;
    transform: none;
}

/* Contact Info Section */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-method-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-method-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact-method-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--white);
}

.contact-method-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 15px;
}

/* Team CTA Section */
.team-cta {
    background: var(--bg-light);
    text-align: center;
}

.team-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.team-cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--white);
}

.team-cta p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 18px;
}

/* Map Section */
.map-section {
    padding-bottom: 0;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    margin-top: 50px;
}

/* Enhanced Footer Styles */
/* Enhanced Footer Styles */
footer {
    background: var(--bg-light);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: translateY(-3px);
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    max-width: 300px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}

.footer-heading {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

.footer-link::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

.footer-link:hover::before {
    opacity: 1;
    left: -5px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(100, 255, 218, 0.1);
    padding: 30px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.2), transparent);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-link:hover::before {
    left: 100%;
}

.social-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.social-link:hover svg {
    transform: scale(1.2);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-link {
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.legal-link:hover {
    color: var(--primary-color);
}

.back-to-top {
    background: var(--bg-lighter);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -25px;
    right: 30px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    color: var(--text-color);
}

.back-to-top:hover svg {
    color: var(--secondary-color);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-nav {
        grid-template-columns: 1fr;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        top: -20px;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-content {
        order: 1;
        text-align: center;
    }
    
    .hero-image {
        order: 0;
        margin-bottom: 50px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-contact-info {
        align-items: center;
    }
    
    .contact-form-container {
        flex-direction: column;
    }
    
    .form-intro {
        text-align: center;
    }
    
    .form-image {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .contact-form-container {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .team-cta h2 {
        font-size: 28px;
    }
    
    .team-cta p {
        font-size: 16px;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Delay classes for staggered animations */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }