:root {
    --primary-glass: rgba(255, 255, 255, 0.15);
    --secondary-glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-color: #ffffff;
    --bg-color: #0f0c29;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-color);
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    color: var(--text-color);
    padding-top: 80px;
    opacity: 0;
    /* Init hidden for fade-in */
    animation: fadeIn 0.8s ease-out forwards;
    padding-bottom: 60px;
    /* Space for Footer */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

body.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Background Blobs Animation */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite alternate;
}

.blob-1 {
    top: 10%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: #ff00cc;
    animation-delay: 0s;
}

.blob-2 {
    bottom: 20%;
    right: 20%;
    width: 350px;
    height: 350px;
    background: #3333ff;
    animation-delay: -2s;
}

.blob-3 {
    top: 40%;
    left: 60%;
    width: 250px;
    height: 250px;
    background: #00ffcc;
    animation-delay: -4s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: var(--primary-glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nav-links-container {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s;
    padding: 5px 15px;
    border-radius: 20px;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Glass Card */
.glass-container {
    background: var(--primary-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 2rem;
    position: relative;
    z-index: 10;
}

.glass-container:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Profile Section */
.profile-img-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.glass-container:hover .profile-img {
    transform: scale(1.05);
}

.name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.title {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.bio {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: var(--secondary-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.social-btn i {
    font-size: 1.2rem;
    margin-right: 10px;
    width: 25px;
    text-align: center;
}

/* Specific Brand Colors on Hover (Optional, keeping it clean white for now looks more modern glass, but adding subtle tints) */
.social-btn.instagram:hover {
    box-shadow: 0 5px 20px rgba(220, 45, 117, 0.4);
}

.social-btn.x-twitter:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6);
}

.social-btn.linkedin:hover {
    box-shadow: 0 5px 20px rgba(10, 102, 194, 0.4);
}

.social-btn.github:hover {
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

/* Input Fields */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.glass-input,
.glass-textarea {
    background: var(--secondary-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.8rem;
    color: white;
    font-family: inherit;
    transition: 0.3s;
    outline: none;
}

.glass-input:focus,
.glass-textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.glass-textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    margin-top: 1rem;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 114, 255, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.6);
}

/* Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
    opacity: 0.6;
    background: linear-gradient(to top, rgba(15, 12, 41, 0.8), transparent);
    z-index: 5;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        justify-content: space-between;
        padding: 0.8rem 1.5rem;
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
    }

    .nav-links-container {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        gap: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1rem;
    }

    .nav-links-container.active {
        display: flex;
    }

    .nav-link {
        display: block;
        text-align: center;
        padding: 10px;
        background: rgba(255, 255, 255, 0.05);
    }

    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer {
        position: relative;
        margin-top: 2rem;
        background: transparent;
    }
}

@media (max-width: 480px) {
    .glass-container {
        padding: 2rem;
        width: 95%;
    }

    .name {
        font-size: 1.5rem;
    }

    .navbar {
        width: 95%;
    }
}

/* Projects Page Styles */
.glass-container.wide {
    max-width: 1000px;
    padding: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Copyright Warning Modal */
.copyright-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Softer overlay */
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.copyright-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.copyright-modal {
    background: rgba(30, 30, 45, 0.85);
    /* Slightly softer background */
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.copyright-modal-overlay.active .copyright-modal {
    transform: scale(1);
}

.copyright-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 0 10px rgba(255, 94, 98, 0.3));
}

.copyright-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.copyright-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-size: 1rem;
    font-weight: 300;
    padding: 0 1rem;
}

.copyright-btn {
    background: linear-gradient(135deg, #ff5e62, #ff9966);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    /* Pillow shape */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 94, 98, 0.4);
    letter-spacing: 1px;
}

.copyright-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 94, 98, 0.6);
    filter: brightness(1.1);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 1rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    /* Much more rounded/oval */
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-img-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #fff;
    letter-spacing: 0.5px;
}

.project-desc {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    flex-grow: 1;
}

.project-link-btn {
    align-self: flex-start;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.project-link-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Language Selection Modal - Styled exactly like Copyright Modal */
/* Language Selection Modal - Styled exactly like Copyright Modal */
/* Floating Language Bar - Properly Styled */
.lang-float-bar {
    position: fixed;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    /* Ensure on top */
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Prevent stacking */
}

.lang-float-bar:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.lang-opt {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    padding: 2px 5px;
}

.lang-opt:hover {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.lang-opt.active {
    color: #ffffff !important;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.lang-separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}