/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-container {
    text-align: center;
    color: var(--text-primary);
}

.loading-logo {
    margin-bottom: 2rem;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.loading-logo-img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 20px #00ff88);
}

@keyframes logoGlow {
    0% { filter: drop-shadow(0 0 20px #00ff88); }
    100% { filter: drop-shadow(0 0 40px #00ff88) brightness(1.2); }
}

.loading-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #00ff88, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 1.5s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto 2rem;
    overflow: hidden;
    border: 1px solid #333333;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(135deg, #00ff88, #0066ff);
    border-radius: 2px;
    animation: loadingProgress 2.5s ease-in-out infinite;
    box-shadow: 0 0 10px #00ff88;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    70% { width: 100%; }
    100% { width: 100%; }
}

.loading-particles {
    position: relative;
    width: 300px;
    height: 100px;
    margin: 0 auto;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ff88;
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
    box-shadow: 0 0 6px #00ff88;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 0.6s; }
.particle:nth-child(3) { left: 50%; animation-delay: 1.2s; }
.particle:nth-child(4) { left: 70%; animation-delay: 1.8s; }
.particle:nth-child(5) { left: 90%; animation-delay: 2.4s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

/* Global Reset and Variables */
* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-color: #00ff88;
    --accent-secondary: #0066ff;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --border-color: #333333;
    --gradient: linear-gradient(135deg, #00ff88, #0066ff);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Advanced Background System */
#three-container,
#particles-js,
#mouse-trail,
#rocket-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#three-container {
    z-index: -4;
    opacity: 1;
    background: 
        /* Deep space base */
        radial-gradient(ellipse 200% 100% at 50% 0%, rgba(0, 0, 5, 0.9) 0%, transparent 60%),
        radial-gradient(ellipse 150% 80% at 50% 100%, rgba(0, 0, 10, 0.7) 0%, transparent 50%),
        linear-gradient(180deg, #000000 0%, #010101 25%, #020202 50%, #010101 75%, #000000 100%);
    animation: deepSpaceFlow 20s ease-in-out infinite;
}

#particles-js {
    z-index: -3;
    opacity: 0.8;
}

#mouse-trail {
    z-index: -2;
    opacity: 0.6;
    background: transparent;
}

#rocket-trail {
    z-index: -1;
    opacity: 0.9;
    mix-blend-mode: screen;
}

/* Deep Space Fallback Animation */
.fallback-particles,
.fallback-animation {
    width: 100%;
    height: 100%;
    background: 
        /* Minimal green accents */
        radial-gradient(circle at 20% 30%, rgba(0, 255, 136, 0.12) 0%, transparent 15%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 136, 0.10) 0%, transparent 12%),
        radial-gradient(circle at 60% 20%, rgba(0, 255, 136, 0.08) 0%, transparent 18%),
        radial-gradient(circle at 30% 80%, rgba(0, 255, 136, 0.06) 0%, transparent 16%),
        /* Subtle blue depth */
        radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.02) 0%, transparent 60%),
        /* Deep space layers */
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(5, 5, 10, 0.9) 0%, transparent 70%),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(8, 8, 15, 0.7) 0%, transparent 60%),
        /* Base gradient */
        linear-gradient(180deg, #000000 0%, #030303 25%, #060606 50%, #090909 75%, #000000 100%);
    animation: deepSpaceBreathe 10s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@keyframes deepSpaceBreathe {
    0%, 100% { 
        opacity: 0.9; 
        transform: scale(1);
        filter: brightness(0.9) contrast(1.1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.01);
        filter: brightness(1.1) contrast(1.2);
    }
}

.fallback-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-conic-gradient(from 0deg at 50% 50%, 
            transparent 0deg, 
            rgba(0, 255, 136, 0.1) 10deg, 
            transparent 20deg,
            rgba(0, 102, 255, 0.1) 30deg,
            transparent 40deg);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Deep Space Flow Animation */
@keyframes deepSpaceFlow {
    0%, 100% { 
        filter: brightness(0.95) contrast(1.05);
        transform: scale(1) translate(0, 0);
    }
    25% { 
        filter: brightness(1.05) contrast(1.15);
        transform: scale(1.002) translate(-2px, -1px);
    }
    50% { 
        filter: brightness(0.9) contrast(1.1);
        transform: scale(1.001) translate(0, -2px);
    }
    75% { 
        filter: brightness(1.02) contrast(1.08);
        transform: scale(1.003) translate(2px, -1px);
    }
}

/* Hero 3D Perspective */
.hero-content {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.main-logo {
    transform-style: preserve-3d;
    will-change: transform;
}

/* Navbar Enhanced Hover */
.navbar:hover {
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.1);
}

/* Add floating elements for depth */
#three-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Subtle grid pattern */
        repeating-linear-gradient(90deg,
            transparent 0px,
            rgba(0, 255, 136, 0.008) 100px,
            transparent 101px,
            transparent 200px),
        repeating-linear-gradient(0deg,
            transparent 0px,
            rgba(0, 255, 136, 0.008) 100px,
            transparent 101px,
            transparent 200px),
        /* Distant stars effect */
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 40% 70%, rgba(0, 255, 136, 0.4), transparent),
        radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(0, 255, 136, 0.3), transparent),
        radial-gradient(1px 1px at 10% 90%, rgba(255, 255, 255, 0.2), transparent);
    animation: subtleFloat 20s linear infinite;
    pointer-events: none;
}

#three-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: 
        /* Deep space portal effect */
        radial-gradient(ellipse 60% 80% at 50% 50%, 
            transparent 40%, 
            rgba(0, 255, 136, 0.04) 60%, 
            transparent 100%),
        radial-gradient(ellipse 40% 60% at 50% 50%, 
            transparent 20%, 
            rgba(0, 102, 255, 0.02) 50%, 
            transparent 80%),
        /* Subtle depth layers */
        radial-gradient(ellipse 200% 100% at 50% 0%, 
            rgba(0, 0, 0, 0.8) 0%, 
            transparent 50%),
        radial-gradient(ellipse 150% 80% at 50% 100%, 
            rgba(0, 0, 0, 0.6) 0%, 
            transparent 60%);
    animation: deepSpacePortal 16s ease-in-out infinite;
    pointer-events: none;
}

@keyframes subtleFloat {
    0% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-5px) translateY(-3px); }
    50% { transform: translateX(0) translateY(-8px); }
    75% { transform: translateX(5px) translateY(-3px); }
    100% { transform: translateX(0) translateY(0); }
}

@keyframes deepSpacePortal {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.02);
        opacity: 1;
    }
}

/* Language Selector */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flag-display {
    width: 30px;
    height: 24px;
    text-align: center;
    transition: all 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    order: 1;
}

.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.flag-display:hover .flag-icon {
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

#languageSelect {
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    min-width: 50px;
    order: 2;
    padding: 2px 5px;
}

#languageSelect:hover {
    color: var(--accent-color);
}

#languageSelect option {
    background: var(--primary-bg);
    color: var(--text-primary);
    padding: 5px;
}

/* Navigation - Glass Effect */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: none;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 999;
    padding: 1.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.logo-text {
    height: 100px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.4));
    transform: scale(1.1);
}

.logo-text:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    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(--gradient);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.main-logo {
    width: 160px;
    height: 160px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.5));
    animation: float 6s ease-in-out infinite;
    transform: scale(1.2);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--gradient);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--border-radius);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.3);
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.about-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.service-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
    box-shadow: 0 15px 30px rgba(0, 102, 255, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Navigation Buttons */
.get-info-btn,
.contact-btn {
    background: var(--gradient);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.5rem;
}

.get-info-btn:hover,
.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.contact-btn {
    background: linear-gradient(135deg, #0066ff, #00ff88);
}

/* 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.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(26, 26, 26, 0.95);
    margin: 5% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: var(--transition);
}

.close:hover {
    color: var(--accent-color);
    transform: scale(1.2);
}

/* Contact Form in Modal */
.contact-form {
    background: transparent;
    padding: 0;
    border: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.contact-form h2 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    text-align: center;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    background: var(--gradient);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

/* Contact Info Modal */
.contact-info-modal {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.5);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-detail .contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
}

.contact-detail h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.contact-detail p {
    color: var(--text-secondary);
    margin: 0;
}

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

.contact-detail a:hover {
    color: var(--accent-secondary);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Safari and cross-browser compatibility fixes */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}





/* Safari button fix */
.project-btn {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    color: #000;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    /* Safari appearance fix */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Safari touch callout */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Safari responsive fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .projects-grid {
        display: -webkit-flex;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-justify-content: space-between;
        justify-content: space-between;
    }
    
    .project-card {
        -webkit-flex: 0 1 calc(50% - 1.5rem);
        flex: 0 1 calc(50% - 1.5rem);
        width: calc(50% - 1.5rem);
        max-width: 100%;
    }
}

/* Enhanced mobile responsive design */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 1rem;
        max-width: 900px;
    }
    
    .project-card {
        padding: 2rem;
        min-height: 380px;
    }
    
    .project-icon {
        font-size: 3.5rem;
    }
    
    .project-card h3 {
        font-size: 1.6rem;
    }
    
    .project-card p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        -webkit-grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        margin-top: 2rem;
    }
    
    .project-card {
        padding: 2rem;
        min-height: 350px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        /* Safari mobile fixes */
        -webkit-flex: none;
        flex: none;
    }
    
    .project-icon {
        font-size: 3rem;
    }
    
    .project-card h3 {
        font-size: 1.5rem;
        margin: 1rem 0;
    }
    
    .project-card p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }
    
    .project-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #projects .container {
        padding: 0 1rem;
    }
    
    .projects-grid {
        gap: 1.5rem;
        padding: 0;
    }
    
    .project-card {
        padding: 1.5rem;
        min-height: 320px;
        border-radius: 12px;
    }
    
    .project-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .project-card h3 {
        font-size: 1.3rem;
        margin: 0.8rem 0;
    }
    
    .project-card p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.2rem;
    }
    
    .project-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    .status-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Safari animation performance */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .project-card {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .project-card:hover {
        -webkit-transform: translate3d(0, -5px, 0);
        transform: translate3d(0, -5px, 0);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Projects Section */
.projects-grid {
    display: grid;
    display: -webkit-grid;
    display: -moz-grid;
    grid-template-columns: repeat(2, 1fr);
    -webkit-grid-template-columns: repeat(2, 1fr);
    -moz-grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    grid-gap: 3rem;
    -webkit-grid-gap: 3rem;
    -moz-grid-gap: 3rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding: 0 1rem;
}

.project-card {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -moz-backdrop-filter: blur(10px);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    /* Safari flex fix */
    -webkit-flex: 1;
    -moz-flex: 1;
    flex: 1;
    /* Safari transform fix */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 102, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.15);
}

.waldora-card {
    border-color: rgba(34, 139, 34, 0.4);
}

.waldora-card:hover {
    border-color: rgba(34, 139, 34, 0.8);
    box-shadow: 0 20px 40px rgba(34, 139, 34, 0.2);
}

.nexxsync-card {
    border-color: rgba(33, 150, 243, 0.4);
}

.nexxsync-card:hover {
    border-color: rgba(33, 150, 243, 0.8);
    box-shadow: 0 20px 40px rgba(33, 150, 243, 0.2);
}

.project-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1;
}

.project-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    text-align: center;
}

.waldora-card h3 {
    color: #228B22;
}

.nexxsync-card h3 {
    color: #2196F3;
}

.project-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    text-align: center;
    flex-grow: 1;
}

.project-status {
    margin-bottom: 2rem;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: linear-gradient(135deg, #228B22, #32CD32);
    color: white;
    animation: pulse 2s infinite;
}

.status-badge.coming-soon {
    background: linear-gradient(135deg, #666, #999);
    color: white;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.project-btn {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.waldora-card .project-btn {
    background: linear-gradient(135deg, #228B22, #32CD32);
}

.nexxsync-card .project-btn {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
}

.project-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.waldora-card .project-btn:hover {
    box-shadow: 0 10px 20px rgba(34, 139, 34, 0.4);
}

.nexxsync-card .project-btn:hover {
    box-shadow: 0 10px 20px rgba(33, 150, 243, 0.4);
}

.project-btn.disabled {
    background: linear-gradient(135deg, #666, #999);
    cursor: not-allowed;
    opacity: 0.6;
}

.project-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Projects section responsive */
@media (max-width: 1024px) {
    .projects-grid {
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .project-card {
        padding: 2rem;
        min-height: 380px;
    }
    
    .project-icon {
        font-size: 3.5rem;
    }
    
    .project-card h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .project-card {
        padding: 2rem;
        min-height: 350px;
    }
    
    .project-icon {
        font-size: 3rem;
    }
    
    .project-card p {
        font-size: 1rem;
    }
}

/* Enhanced Projects section container */
#projects .container {
    max-width: 1400px;
    padding: 0 2rem;
}

/* Force proper mobile layout */
@media (max-width: 480px) {
    #projects .container {
        padding: 0 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .project-card {
        padding: 1.5rem;
        min-height: 300px;
    }
} 