:root {
    /* Primary brand colors */
    --primary-color: #06B6D4;    /* Cyan-500 - vibrant but professional */
    --primary-dark: #0891B2;     /* Cyan-600 - for hover states */
    --background-color: #030712;  /* Gray-950 - darker for better contrast */
    --surface-color: #111827;    /* Gray-900 - for cards and sections */
    --text-color: #F8FAFC;       /* Slate-50 - main text */
    --text-secondary: #CBD5E1;   /* Slate-300 - secondary text */
    --accent-color: #22D3EE;     /* Cyan-400 - for highlights */
    --accent-secondary: #67E8F9;  /* Cyan-300 - for gradients */
    --border-color: rgba(203, 213, 225, 0.1);
    --shadow-color: rgba(6, 182, 212, 0.1);
    --logo-gradient-1: linear-gradient(135deg, var(--text-color), var(--accent-secondary));
    --logo-gradient-2: linear-gradient(135deg, var(--accent-secondary), var(--primary-color));
    --logo-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: var(--background-color);
    color: var(--text-color);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Remove these classes */
.background-effects,
.background-gradient,
.particle-container,
.particle {
    display: none;
}

nav {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    @supports not (backdrop-filter: blur(10px)) {
        background-color: rgba(15, 23, 42, 0.95);
    }
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: var(--secondary-color);
}

main {
    max-width: 1200px;
    margin: 6rem auto 0;
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    animation: fadeIn 0.6s ease-out;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-secondary), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    animation: gradientText 8s ease infinite;
    background-size: 200% auto;
    background-image: linear-gradient(
        -45deg,
        var(--accent-secondary) 0%,
        var(--primary-color) 25%,
        var(--accent-color) 50%,
        var(--primary-color) 75%,
        var(--accent-secondary) 100%
    );
}

img {
    max-width: 200px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin: 2rem 0;
}

p {
    font-size: 1.125rem;
    color: var(--text-color);
    max-width: 600px;
    margin: 1rem auto;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    margin: 1rem 0;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.contact-list a {
    color: var(--text-color);
    text-decoration: none;
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1rem;
    }
}

footer {
    background-color: rgba(15, 23, 42, 0.95);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--secondary-color);
    display: flex;
    justify-content: center;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-social {
    margin-bottom: 1rem;
}

.footer-social a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s;
}

.footer-social a:hover {
    background-color: var(--secondary-color);
}

.footer-copyright p {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-social a {
        display: block;
        margin: 0.5rem 0;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    position: absolute;
    right: 2rem;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s linear;
    transform-origin: 1px;
}

/* Enhanced Media Queries */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        top: 50%;  /* Center vertically */
        transform: translateY(-50%);  /* Adjust for center alignment */
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 11rem 2rem 2rem;  /* Increase top padding to accommodate flags */
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        z-index: 5;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    main {
        transition: filter 0.3s ease;
        margin-top: 5rem;  /* Increase top margin of main content */
    }

    body.menu-open main,
    body.menu-open footer {
        filter: blur(5px);
        pointer-events: none;
        user-select: none;
    }

    h1 {
        font-size: clamp(1.5rem, 5vw, 3rem);
    }

    p {
        font-size: clamp(1rem, 3vw, 1.125rem);
        padding: 0 1rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    img {
        max-width: min(200px, 80vw);
    }

    .footer-content {
        padding: 0 1rem;
    }

    .language-selector {
        position: absolute;
        top: 0.3rem;  /* Moved up from 1rem */
        right: 4rem;
        display: flex;
        align-items: center;  /* Center align with hamburger */
        height: 100%;  /* Match parent height */
        margin: 0;
        padding: 0;
    }

    .divider-line {
        margin: 2.5rem 0;  /* Add more space around divider */
    }

    .nav-content {
        padding-bottom: 1rem;  /* Add padding before the border */
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links {
        padding-top: 13rem;  /* Increase top padding */
    }

    /* Add space after language selector */
    .nav-links::before {
        content: '';
        display: block;
        height: 2rem;  /* Additional space */
    }
}

@media (max-width: 480px) {
    main {
        margin-top: 4rem;
    }

    .contact-list li {
        margin: 0.5rem 0;
        padding: 0.75rem;
    }

    .footer-social a {
        padding: 0.5rem;
        margin: 0.25rem 0;
    }
}

@media (min-width: 769px) {
    .nav-links {
        display: flex !important;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    background: linear-gradient(145deg, 
        var(--surface-color),
        rgba(17, 24, 39, 0.7)
    );
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);  /* Force GPU acceleration */
    backface-visibility: hidden;
}

.service-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-item p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-color);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px var(--shadow-color);
}

h2 {
    font-size: 2rem;
    margin: 4rem 0 2rem;
    color: var(--text-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-item {
    background: linear-gradient(145deg, 
        var(--surface-color),
        rgba(17, 24, 39, 0.7)
    );
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.5rem;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);  /* Force GPU acceleration */
    backface-visibility: hidden;
}

.project-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.project-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.project-item p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-color);
    opacity: 0.9;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    display: inline-block;
    opacity: 0.8;
}

.project-link:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }
}

/* Keep only essential animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Remove unused animations */
/* Remove unused animations */
@keyframes floatUp {}
@keyframes gradientMove {}
@keyframes shine {}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
}

.lang-btn {
    width: 24px;
    height: 24px;
    padding: 2px;
    border-radius: 4px;
    transition: transform 0.2s;
    opacity: 0.7;
}

.lang-btn:hover {
    transform: scale(1.1);
    opacity: 1;
}

.lang-btn.active {
    opacity: 1;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.lang-btn img {
    width: 100%;
    height: 100%;
    border-radius: 2px;
    margin: 0;
    border: none;
}

@media (max-width: 768px) {
    .language-selector {
        position: absolute;
        top: 0.3rem;  /* Moved up from 1rem */
        right: 4rem;
        margin-bottom: 4rem;  /* Increase bottom margin */
        padding-bottom: 2.5rem;  /* Add padding below flags */
    }
}

.site-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: -0.03em;
}

.logo-text, .logo-highlight {
    background: var(--logo-gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: filter 0.3s ease;
}

.site-logo:hover {
    .logo-text, .logo-highlight {
        filter: brightness(1.2);
        transform: translateY(-1px);
        background: var(--logo-gradient-2);
        -webkit-background-clip: text;
        background-clip: text;
    }
}

@media (max-width: 768px) {
    .site-logo {
        font-size: 1.5rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .nav-content {
        min-height: 3.5rem;  /* Set consistent height */
        align-items: center;  /* Center all items vertically */
    }

    .site-logo {
        padding: 0;  /* Remove padding to align with other elements */
        height: 100%;
        display: flex;
        align-items: center;
    }

    .hamburger {
        position: relative;  /* Change from absolute to relative */
        right: 0;
        top: 0;
        transform: none;  /* Remove transform */
        height: 21px;
        margin: auto 0;  /* Center vertically */
    }

    .language-selector {
        position: relative;  /* Change from absolute to relative */
        top: 0;
        right: 0;
        height: auto;
        margin: auto 1rem auto 0;  /* Center vertically and add right margin */
        padding: 0;
    }

    .nav-links {
        padding-top: 6rem;  /* Adjust top padding */
    }
}

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

.contact-form {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    text-align: center;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}
