/* =========================================
   CSS variables for theming architecture
========================================= */
:root {
    /* Light Mode */
    --bg-color: #f8fafc;
    --bg-gradient-1: #f1f5f9;
    --bg-gradient-2: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-color: #83677b;
    --accent-light: #f0a8a8;
    --highlight: #db2777;
    
    --btn-primary: linear-gradient(135deg, #f0a8a8, #ec4899);
    --btn-primary-shadow: rgba(236, 72, 153, 0.3);
    
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: rgba(15, 23, 42, 0.05);

    --blob-1: rgba(240, 168, 168, 0.4);
    --blob-2: rgba(131, 103, 123, 0.2);
    --blob-3: rgba(219, 39, 119, 0.15);
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg-color: #020617;
    --bg-gradient-1: #0f172a;
    --bg-gradient-2: #020617;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #fbcfe8;
    --accent-light: #ec4899;
    --highlight: #f472b6;

    --btn-primary: linear-gradient(135deg, #db2777, #be185d);
    --btn-primary-shadow: rgba(219, 39, 119, 0.4);

    --glass-bg: rgba(15, 23, 42, 0.5);
    --glass-bg-hover: rgba(30, 41, 59, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.4);

    --blob-1: rgba(219, 39, 119, 0.2);
    --blob-2: rgba(99, 102, 241, 0.15);
    --blob-3: rgba(14, 165, 233, 0.1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    background-image: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease, background-image 0.4s ease;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Base Utility Classes */
.highlight { color: var(--highlight); }
.dot { color: var(--highlight); }

/* --- Background Blobs & Parallax Feel --- */
.bg-blob {
    position: fixed;
    filter: blur(100px);
    z-index: -1;
    border-radius: 50%;
    animation: floatBlob 16s infinite alternate ease-in-out;
    pointer-events: none;
}
.blob-1 {
    top: -10%; left: -5%;
    width: 450px; height: 450px;
    background: var(--blob-1);
    transition: background 0.4s ease;
}
.blob-2 {
    top: 40%; right: -10%;
    width: 500px; height: 500px;
    background: var(--blob-2);
    animation-delay: -3s;
    transition: background 0.4s ease;
}
.blob-3 {
    bottom: -20%; left: 15%;
    width: 600px; height: 600px;
    background: var(--blob-3);
    animation-delay: -6s;
    transition: background 0.4s ease;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, -40px) scale(1.15); }
}

/* --- Glassmorphism Navigation --- */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

header.scrolled {
    background: var(--glass-bg-hover);
    box-shadow: 0 4px 30px var(--glass-shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
}

#logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

#navigation-bar {
    display: flex;
    gap: 25px;
}
                                   
#navigation-bar a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1em;
    padding: 8px 16px;
    border-radius: 12px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

#navigation-bar a:hover {
    color: var(--highlight);
    background: var(--glass-border); /* Subtle highlight behind link */
}

/* Action Buttons in Header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

#theme-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s;
}

#theme-toggle:hover {
    background: var(--glass-bg-hover);
    box-shadow: 0 4px 12px var(--glass-shadow);
    transform: rotate(20deg);
}

.mobile-only {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* --- Layout & Glass Cards --- */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 110px 30px 40px;
}

section {
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2em;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 60px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px var(--glass-shadow);
    padding: 45px;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px var(--glass-shadow);
}

/* --- Hero Section Specific --- */
.section-hero {
    min-height: calc(100vh - 110px);
    padding: 40px 0;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    flex: 1.2;
}

.greeting {
    display: inline-block;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--accent-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5em;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.hero-text .subtitle {
    font-size: 1.25em;
    color: var(--text-secondary);
    margin-bottom: 45px;
    max-width: 550px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.05em;
}

.btn-primary {
    background: var(--btn-primary);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--btn-primary-shadow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px var(--btn-primary-shadow);
    color: #ffffff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

.hero-image-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
}

.glass-orb {
    position: absolute;
    width: 350px;
    height: 350px;
    background: var(--highlight);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseOrb 6s infinite alternate ease-in-out;
}

@keyframes pulseOrb {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.15); }
}

#pfp {
    position: relative;
    z-index: 1;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--glass-border);
    box-shadow: 0 25px 50px var(--glass-shadow);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#pfp:hover {
    transform: scale(1.05) rotate(-3deg);
}

/* --- About Me Grid --- */
.about-text p {
    font-size: 1.15em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}
.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.skills-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--glass-border);
    padding: 10px 20px;
    border-radius: 12px;
}
.skill-icon {
    color: var(--highlight);
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-icon {
    background: var(--bg-color);
    padding: 18px;
    border-radius: 18px;
    margin-bottom: 25px;
    color: var(--highlight);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px var(--glass-shadow);
}

.project-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.project-item p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.05em;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.project-tags span {
    font-size: 0.85em;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--text-secondary);
    font-weight: 600;
}

.btn-link {
    color: var(--highlight);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    transition: gap 0.3s ease;
}
.btn-link:hover {
    gap: 15px;
}

/* --- Contact Section --- */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
    padding: 60px 40px;
}

.contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1em;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease; 
}

.social-btn:hover {
    background: var(--btn-primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--btn-primary-shadow);
}

/* --- Dev Info --- */
.dev-icon {
    width: 54px;
    height: 54px;
    color: var(--highlight);
    margin-bottom: 20px;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 30px;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
}
footer p {
    color: var(--text-secondary);
    font-weight: 600;
}

/* --- Scroll Animations Mapping --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Layout Configurations --- */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 40px;
    }
    .hero-text h1 {
        font-size: 3.8em;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-text .subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    #navigation-bar {
        display: none;
        position: absolute;
        top: 73px;
        left: 0;
        width: 100%;
        background: var(--glass-bg-hover);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 30px var(--glass-shadow);
        gap: 15px;
    }
    #navigation-bar.active {
        display: flex;
    }
    #navigation-bar a {
        padding: 12px;
        text-align: center;
        width: 100%;
    }
    .hero-text h1 {
        font-size: 3em;
    }
    #pfp {
        width: 280px;
        height: 280px;
    }
    .glass-orb {
        width: 250px; height: 250px;
    }
    .skills-list {
        grid-template-columns: 1fr;
    }
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .hero-buttons {
        flex-direction: column;
    }
}
