@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap");

:root {
    --primary: hsl(210, 100%, 50%);
    --primary-alt: hsl(210, 100%, 40%);
    --bg-dark: hsl(220, 20%, 8%);
    --bg-card: hsla(220, 20%, 15%, 0.7);
    --text-main: hsl(0, 0%, 95%);
    --text-muted: hsl(220, 10%, 70%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow: 0 0 20px hsla(210, 100%, 50%, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Outfit", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Elements */
.background-gif {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    filter: brightness(0.4) saturate(1.2);
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        transparent 0%,
        var(--bg-dark) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Layout Containers */
.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.profile-container {
    flex-shrink: 0;
    position: relative;
    width: 280px;
    height: 280px;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20%;
    border: 4px solid var(--glass-border);
    box-shadow: var(--glow);
    transition: var(--transition);
}

.profile-container::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 22%;
    background: linear-gradient(45deg, var(--primary), transparent);
    z-index: -1;
    opacity: 0.5;
    animation: rotateGlow 10s linear infinite;
}

@keyframes rotateGlow {
    from {
        filter: hue-rotate(0deg);
    }

    to {
        filter: hue-rotate(360deg);
    }
}

.bio-container {
    flex: 1;
}

.glitch {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.bio-details {
    margin-bottom: 2rem;
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.bio-details p {
    margin-bottom: 0.5rem;
}

.bio-details strong {
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-alt);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 120, 215, 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--glass-border);
    transform: translateY(-5px);
}

/* Projects Section */
.projects-section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
}

.coming-soon {
    opacity: 0.8;
}

.status-badge {
    background: var(--glass-border);
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    text-align: center;
}

.contact-card {
    background: linear-gradient(135deg, var(--bg-card), var(--glass-bg));
    padding: 4rem;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.contact-item i {
    font-size: 2.5rem;
}

.contact-item:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Footer */
.main-footer {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .glitch {
        font-size: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .profile-container {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

#background-audio {
    display: none;
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.welcome-screen h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .welcome-screen h1 {
        font-size: 2.5rem;
    }

    .welcome-screen p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .welcome-screen h1 {
        font-size: 2rem;
    }

    .welcome-screen p {
        font-size: 1rem;
    }
}

.welcome-screen p {
    font-size: 1.5rem;
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}
