@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    /* Brand Colors */
    --primary: hsl(270, 75%, 65%);
    --primary-dark: hsl(270, 70%, 50%);
    --bg-dark: hsl(280, 45%, 9%);
    --bg-light: hsl(280, 40%, 15%);
    --glass-bg: hsla(280, 40%, 20%, 0.4);
    --glass-border: hsla(280, 50%, 50%, 0.2);

    /* Text Colors */
    --text-main: hsl(0, 0%, 95%);
    --text-dim: hsl(280, 20%, 75%);

    /* Effects */
    --shadow-purple: 0 10px 40px -10px hsla(270, 100%, 50%, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

/* Sections Styling */
section {
    padding: 8rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: hsla(280, 45%, 9%, 0.8);
    backdrop-filter: blur(10px);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 8px;
    transform: rotate(15deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

/* Custom Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    border-color: var(--primary);
    background: hsla(280, 50%, 30%, 0.4);
}

.lang-options {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 100px;
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 2000;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.lang-dropdown:hover .lang-options {
    display: flex;
}

.lang-option {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.lang-option:hover {
    background: var(--primary);
    color: white;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 0;
    background: url('bg.png') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            hsla(280, 45%, 9%, 0.8) 0%,
            hsla(280, 45%, 9%, 0.4) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px -10px hsla(270, 100%, 50%, 0.5);
}

/* Floating Shapes Decoration */
.shape {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: hsla(270, 100%, 50%, 0.15);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: hsla(285, 100%, 50%, 0.1);
    bottom: -50px;
    left: -100px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    height: 450px;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: var(--transition);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, hsla(280, 45%, 9%, 0.95));
    border-radius: 0 0 20px 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-info {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover .project-image {
    transform: scale(1.1);
    filter: brightness(0.7);
}

.project-tag {
    background: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-logo {
    margin-bottom: 2rem;
    display: inline-flex;
}

/* Responsiveness */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 4rem 0;
    }
}