:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Background Animations */
.background-blob {
    position: fixed;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
    filter: blur(100px);
    animation: moveBlob 20s infinite alternate;
}

.background-blob-2 {
    position: fixed;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #ec4899 0%, transparent 70%);
    opacity: 0.1;
    z-index: -1;
    filter: blur(100px);
    animation: moveBlob 15s infinite alternate-reverse;
}

@keyframes moveBlob {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(100px, 100px);
    }
}

/* Glass Components */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.glass-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.glass-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: 0.3s;
}

.glass-nav a:hover {
    color: var(--primary-color);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--glass-shadow);
}

.bio-content p,
.description p {
    margin-bottom: 1rem;
}

.bio-content ul,
.bio-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Sections */
.section {
    padding: 100px 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
}

/* Hero */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
}

.profile-img-container {
    max-width: 400px;
    max-height: 500px;
    padding: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-img-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.clickable-img {
    cursor: pointer;
    transition: 0.3s;
}

.clickable-img:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

.hero-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-content h3 {
    font-size: 2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-content p {
    max-width: 600px;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn.primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn.secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    margin-left: 1rem;
}

.btn.secondary:hover {
    background: var(--glass-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item .label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.info-item .value {
    color: var(--text-light);
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    text-align: center;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 1rem;
}

.progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.1);
    display: block;
    transition: 0.5s;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 0.8rem;
    color: white;
    font-family: inherit;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .section {
        padding: 80px 5%;
    }

    .hero-content h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding-top: 120px;
    }

    .profile-img-container {
        width: 100%;
        max-width: 300px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h3 {
        font-size: 1.5rem;
    }

    .glass-nav {
        padding: 1rem 5%;
    }

    .glass-nav ul {
        display: none;
        /* Hide standard nav on mobile for now */
    }

    .glass-nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        transition: 0.5s;
    }

    .glass-nav ul.active {
        left: 0;
    }

    .menu-btn {
        display: block;
    }

    /* Skills Grid */
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cta-btns {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn.secondary {
        margin-left: 0;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }
}

/* Modal/Lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    animation: zoomIn 0.3s;
}

#modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-light);
    padding: 20px 0;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover {
    color: var(--primary-color);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }

    .close-modal {
        top: 20px;
        right: 25px;
    }
}