:root {
    --bg-color: #1a0f1c;
    /* Deep Amethyst / Night Sky */
    --text-main: #fdf8f5;
    /* Off-white / Rose tint */
    --text-muted: #a89f9e;
    /* Warm Slate */
    --primary-color: #d4af37;
    /* Rose Gold / Muted Gold */
    --secondary-color: #8b5a8c;
    /* Dusty Purple / Mauve */
    --glass-bg: rgba(30, 41, 59, 0.4);
    /* Slate 800 with opacity */
    --glass-border: rgba(255, 255, 255, 0.08);
    --container-width: 1100px;
    --transition: all 0.3s 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-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Subtly textured background */
    background-image: radial-gradient(circle at 50% 0%, #2d1b2e 0%, transparent 70%);
    /* Deep plum gradient */
}

::selection {
    background-color: var(--primary-color);
    color: #fff;
}

/* Background Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
    animation: drift 25s infinite alternate ease-in-out;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0) 70%);
    /* Soft rose gold glow */
    top: -150px;
    left: -150px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 90, 140, 0.3) 0%, rgba(139, 90, 140, 0) 70%);
    /* Soft mauve glow */
    bottom: -100px;
    right: -100px;
    animation-delay: -12s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 40px) scale(0.95);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    text-align: center;
    color: #fff;
    letter-spacing: -1px;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glass UI */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.glass-nav.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Navbar */
.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.glass-nav.scrolled .nav-container {
    padding: 1rem 2rem;
}

.logo.monogram {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    /* Using var(--primary-color) but translucent */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    /* Or keep Outfit if preferred, but adding for exact match */
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.2);
    /* Slight contrast background */
}

.logo.monogram::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.15);
    /* Inner thin ring */
}

.logo.monogram:hover {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.05);
    /* Soft highlight on hover */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1.05rem;
    overflow: hidden;
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    padding-top: 15vh;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    max-width: 650px;
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image .image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    padding: 10px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.greeting {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.name {
    font-size: 5.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.summary {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    max-width: 650px;
    color: var(--text-muted);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
}

/* Cursor Animation */
.cursor {
    display: inline-block;
    width: 4px;
    height: 3rem;
    background-color: var(--primary-color);
    vertical-align: middle;
    margin-left: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: var(--glass-bg);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
}

/* Education Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    margin-bottom: 3rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background: var(--primary-color);
    border: 5px solid var(--bg-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}

.timeline-content {
    padding: 2rem;
}

.timeline-date {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.timeline-content h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: #cbd5e1;
    /* Slate 300 */
    font-weight: 400;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.timeline-content p {
    color: var(--text-muted);
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.portfolio-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portfolio-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.portfolio-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.8));
    pointer-events: none;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-img img {
    transform: scale(1.08);
}

.portfolio-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-info h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.portfolio-info p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

.portfolio-tags {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.portfolio-tags span {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    color: #e2e8f0;
}

.portfolio-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.portfolio-link:hover {
    color: var(--primary-color);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    padding: 0;
}

.contact-info {
    padding: 3.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-right: 1px solid var(--glass-border);
}

.contact-info h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.contact-info p {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.info-list {
    list-style: none;
    margin-bottom: 3rem;
}

.info-list li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: #cbd5e1;
}

.info-list i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.contact-form {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 1.05rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    padding: 2.5rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .name {
        font-size: 4.5rem;
    }

    .title {
        font-size: 2.5rem;
    }

    .cursor {
        height: 2.5rem;
    }

    .hero-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-image .image-wrapper {
        width: 300px;
        height: 300px;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media screen and (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-dot {
        left: 20px !important;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        gap: 1.5rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .name {
        font-size: 3.5rem;
    }

    .title {
        font-size: 2rem;
    }

    .cursor {
        height: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 2.5rem;
    }
}