/* Theme Variables */
:root {
    --navbar-height: 80px;
}

* {
    padding: 0;
    margin: 0;
}

body.night {
    --bg-color: #0B0F19;
    --text-color: #E5E7EB;
    --text-muted: #9CA3AF;
    --primary: #3B82F6;
    --primary-hover: #60A5FA;
    --secondary: #22D3EE;
    --accent: #10B981;
    --glass-bg: #111827;
    --glass-border: #1F2937;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --btn-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    --btn-hover-shadow: 0 0 20px rgba(59, 130, 246, 0.6), 0 0 40px rgba(34, 211, 238, 0.4);
    --btn-sec-hover-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    --blob-grad-1: rgba(59, 130, 246, 0.15);
    --blob-grad-2: rgba(34, 211, 238, 0.15);
    --blob-grad-3: rgba(11, 15, 25, 0);
    --input-bg: rgba(0, 0, 0, 0.2);
    --input-bg-focus: rgba(0, 0, 0, 0.4);
    --input-color: white;
}

body.day {
    --bg-color: #f8fafc;
    --text-color: #111827;
    --text-muted: #4B5563;
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --secondary: #06B6D4;
    --accent: #10B981;
    --glass-bg: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --btn-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    --btn-hover-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    --btn-sec-hover-shadow: 0 4px 15px rgba(37, 99, 235, 0.1);
    --blob-grad-1: rgba(37, 99, 235, 0.1);
    --blob-grad-2: rgba(6, 182, 212, 0.1);
    --blob-grad-3: rgba(248, 250, 252, 0);
    --input-bg: rgba(255, 255, 255, 0.5);
    --input-bg-focus: rgba(255, 255, 255, 0.8);
    --input-color: var(--text-color);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'Poppins', sans-serif;
}

body.day h1,
body.day h2,
body.day h3,
body.day h4,
body.day h5,
body.day h6,
body.day .logo {
    font-weight: 600;
}

body.night h1,
body.night h2,
body.night h3,
body.night h4,
body.night h5,
body.night h6,
body.night .logo {
    font-weight: 700;
}

.mono-text {
    font-family: 'JetBrains Mono', monospace;
}

body.day .alias-text {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 0.5rem 0;
}

body.night .alias-text {
    font-size: 1.2rem;
    color: var(--secondary);
    margin: 0.5rem 0;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.4);
}

/* Dynamic background blob */
#blob-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--blob-grad-1) 0%, var(--blob-grad-2) 50%, var(--blob-grad-3) 80%);
    z-index: -1;
    filter: blur(80px);
    animation: pulseBlob 15s infinite alternate ease-in-out;
    transition: background 0.5s ease;
}

@keyframes pulseBlob {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
}

/* Typography & Utilities */
h1,
h2,
h3 {
    line-height: 1.2;
}

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

.section-title span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 6rem 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: var(--btn-shadow);
    transition: all 0.3s ease, box-shadow 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--btn-hover-shadow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-color);
    transition: all 0.3s ease, border-color 0.5s ease, color 0.5s ease;
}

.btn-secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--btn-sec-hover-shadow);
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
    color: white;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-hover);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}

/* Home Section */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: calc(var(--navbar-height) + 2rem);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.greeting {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.profile-frame {
    width: 350px;
    height: 350px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 5px;
    animation: morph 8s ease-in-out infinite alternate;
}

.frame-content {
    width: 100%;
    height: 100%;
    background: url('../assets/images/my-avatar.png') center/cover;
    border-radius: inherit;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* About Section */
.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    padding: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.contact-info {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}


.skills {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    /* margin: 5px; */
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Resume */
.resume-container.glass-panel {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.resume-container h3 {
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Projects */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    box-shadow: var(--btn-shadow);
}

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

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    height: 200px;
    width: 100%;
}

.bg-grad-1 {
    background: linear-gradient(135deg, #10b981, #047857);
}

.bg-grad-2 {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.bg-grad-3 {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

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

/* Contact */
.contact-container {
    display: flex;
    flex-direction: row;
    padding: 3rem;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.contact-form {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--input-color);
    font-family: inherit;
    transition: border-color 0.3s ease, background 0.5s ease, color 0.5s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--input-bg-focus);
}

.contact-info {
    flex: 1;
}

.contact-info ul {
    display: grid;
    grid-template-columns: 1fr;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info li div {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

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



footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .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);
    }

    .nav-links {
        position: absolute;
        top: var(--navbar-height);
        left: -100%;
        flex-direction: column;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-links.active {
        left: 0;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .cta-group {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .profile-frame {
        width: 280px;
        height: 280px;
    }

    .contact-container {
        flex-direction: column;
        padding: 2rem;
    }
}