/* ALTUS TECHNICUS - Futuristic Space-Tech Theme */
/* Advanced CSS with space technology aesthetics */

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

/* CSS Variables for Theme */
:root {
    --primary-bg: #0a0a0f;
    --secondary-bg: #1a1a2e;
    --accent-bg: #16213e;
    --primary-text: #ffffff;
    --secondary-text: #b8c6db;
    --accent-color: #00d4ff;
    --accent-secondary: #7c4dff;
    --accent-tertiary: #ff6b4a;
    --glow-color: rgba(0, 212, 255, 0.3);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #00d4ff 0%, #7c4dff 100%);
    --gradient-tech: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--primary-text);
    background: var(--primary-bg);
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 77, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        var(--gradient-tech);
    z-index: -2;
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.05) rotate(1deg); }
}

/* Particle Effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(0, 212, 255, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(120, 77, 255, 0.4), transparent);
    background-repeat: repeat;
    background-size: 200px 150px;
    z-index: -1;
    animation: particleFloat 30s linear infinite;
}

@keyframes particleFloat {
    from { transform: translateY(0px); }
    to { transform: translateY(-200px); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    background: rgba(26, 26, 46, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.language-switcher a {
    color: var(--secondary-text);
    text-decoration: none;
    margin: 0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.language-switcher a:hover {
    color: var(--accent-color);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-1px);
}

.language-switcher a.active {
    background: var(--gradient-accent);
    color: var(--primary-text);
    box-shadow: 0 4px 15px var(--glow-color);
}

/* Header with Futuristic Design */
.site-header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    padding-right: 200px; /* Space for language selector */
}

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

.logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 20px var(--glow-color));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px var(--accent-color));
}

/* Burger Menu Button (hidden on desktop) */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    order: -1; /* Place before logo */
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--accent-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(22, 33, 62, 0.4);
    padding: 0.75rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    margin-left: auto;
    margin-right: auto;
}

.main-nav a {
    color: var(--secondary-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    letter-spacing: 0.025em;
}

.main-nav a:hover {
    color: var(--accent-color);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-accent);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.main-nav a:hover::before {
    opacity: 0.1;
}

@media (max-width: 768px) {
    .header-content {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        padding-right: 6rem; /* Space for language selector */
        gap: 1rem;
    }
    
    .burger-menu {
        display: flex;
        grid-column: 1;
        justify-self: start;
    }
    
    .logo {
        grid-column: 2;
        display: flex;
        justify-content: center;
    }
    
    .logo img {
        height: 40px;
    }
    
    /* Hide main nav on mobile by default */
    .main-nav {
        display: none;
        position: absolute;
        grid-column: 1 / -1;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.98);
        border: 1px solid var(--border-color);
        border-radius: 0 0 16px 16px;
        padding: 1rem;
        margin: 0;
        flex-direction: column;
        gap: 0.5rem;
        backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    /* Show nav when burger is active */
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        padding: 1rem;
        font-size: 1rem;
        border-radius: 8px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a:last-child {
        border-bottom: none;
    }
    
    .language-switcher {
        top: 1rem;
        right: 1rem;
        z-index: 10000;
    }
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(120, 77, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px var(--glow-color);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 3rem;
    color: var(--secondary-text);
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.btn::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.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-text);
    border: 1px solid var(--accent-color);
    box-shadow: 0 8px 25px var(--glow-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--glow-color);
}

.btn-secondary {
    background: rgba(26, 26, 46, 0.7);
    color: var(--secondary-text);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(22, 33, 62, 0.8);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.15);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.project-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.project-card h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

/* EU Section */
.eu-project {
    background: #f0f8ff;
    padding: 4rem 0;
}

.eu-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.eu-logo img {
    max-width: 200px;
    height: auto;
}

@media (max-width: 768px) {
    .eu-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Futuristic Technologies Section */
.technologies {
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 77, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        rgba(26, 26, 46, 0.4);
    padding: 8rem 0;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.technologies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.05) 50%, transparent 100%);
    animation: scanLine 8s linear infinite;
}

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

.technologies h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 4rem;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tech-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.tech-item:hover::before {
    transform: scaleX(1);
}

.tech-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px var(--glow-color);
}

.tech-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px var(--glow-color);
    position: relative;
}

.tech-icon::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: rgba(26, 26, 46, 0.8);
    border-radius: 15px;
    z-index: 1;
}

.tech-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    position: relative;
    z-index: 2;
}

.tech-text h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-text);
    line-height: 1.3;
}

.tech-text p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--secondary-text);
    font-weight: 400;
}

@media (max-width: 768px) {
    .technologies {
        padding: 3rem 0;
    }
    
    .tech-list {
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .tech-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .tech-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }
    
    .tech-text h3 {
        font-size: 1.3rem;
    }
    
    .tech-text p {
        font-size: 1rem;
    }
}

/* Section Headings */
.section h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gradient-accent);
}

/* About Section */
.about {
    background: rgba(22, 33, 62, 0.3);
    border-top: 1px solid var(--border-color);
}

.about p {
    color: var(--secondary-text);
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Projects Section */
.projects {
    background: 
        radial-gradient(circle at 80% 20%, rgba(120, 77, 255, 0.1) 0%, transparent 50%),
        rgba(26, 26, 46, 0.2);
}

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

.project-card {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px var(--glow-color));
}

.project-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--primary-text);
    font-weight: 600;
}

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

/* EU Project Section */
.eu-project {
    background: rgba(22, 33, 62, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.eu-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.eu-logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px var(--glow-color));
}

/* Contact Section */
.contact {
    background: 
        radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        rgba(26, 26, 46, 0.3);
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    background: rgba(26, 26, 46, 0.6);
    color: var(--primary-text);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--glow-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--secondary-text);
}

.contact-info {
    text-align: center;
    margin-top: 3rem;
}

.contact-info h3 {
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-text);
    text-shadow: 0 0 10px var(--glow-color);
}

/* Footer */
.footer {
    background: rgba(10, 10, 15, 0.95);
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text);
    text-align: center;
    padding: 3rem 0;
    backdrop-filter: blur(20px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tech-list {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .main-nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .main-nav {
        width: 100%;
        justify-content: center;
    }
    
    .language-switcher {
        top: 1rem;
        right: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .eu-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tech-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .technologies {
        padding: 4rem 0;
    }
    
    .section {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .tech-list {
        grid-template-columns: 1fr;
    }
}

/* Futuristic Space-Tech Theme Complete */
