:root {
    --bg-color: #ffffff;
    --alt-bg: rgb(253, 250, 251);
    --card-bg: rgba(250, 242, 244, 1);
    --border-color: rgba(248, 239, 240, 1);
    --text-primary: #090809;
    --text-secondary: rgba(9, 8, 9, 0.7);
    --accent-color: #090809;
    --accent-glow: rgba(9, 8, 9, 0.15);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --gradient-1: linear-gradient(135deg, #090809 0%, #333333 100%);
    --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-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.secondary:hover {
    background: rgba(9, 8, 9, 0.05);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* -- CONTAINER SYSTEM -- */
/* Ensures the section background naturally spans full width */
section {
    padding: 6.5rem 0 4rem;
    width: 100%;
}

/* Alternate Background Section Color */
.alternate-bg {
    background-color: var(--alt-bg);
}

/* Wraps all inner content, applying logical width limit */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

/* -- NAVIGATION -- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 12%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: "Princess Sofia", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.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;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* -- HERO SECTION -- */
.hero {
    padding-top: 10rem;
}

.hero-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    padding-left: 25px;
    flex: 1;
    max-width: 600px;
}

.greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.name {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.blob {
    width: 400px;
    height: 400px;
    background: url('profile.jpeg') center/cover no-repeat;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    box-shadow: 0 0 50px var(--accent-glow);
    position: relative;
    z-index: 1;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
}

/* -- MODERN UI COMPONENTS -- */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.8);
}

.glass-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.glass-card p {
    color: var(--text-secondary);
}

/* -- ABOUT SECTION -- */
.about-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.about-text-content {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.about-headline {
    font-size: 2.5rem !important;
    margin-bottom: 1.5rem !important;
}

.about-headline span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.personal-info-grid li {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.info-value {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* -- TIMELINE SECTION (Experience & Education) -- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    height: 100%;
    width: 3px;
    background: var(--gradient-1);
    border-radius: 5px;
    opacity: 0.2;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.65rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 4px solid #333;
    transform: translateX(-50%);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background: #333;
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.timeline-date {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.timeline-degree {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* -- EDUCATION SECTION -- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.education-grid .timeline {
    margin: 0;
    max-width: 100%;
}

/* -- SKILLS & PROJECTS -- */
.skills-grid,
.projects-grid {
    padding-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.projects-grid {
    height: 500px;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

#projects .section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(9, 8, 9, 0.05);
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tag:hover {
    background: var(--text-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.small-tag {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}

.project-card-premium {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-visual {
    flex: 0 0 35%;
    position: relative;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.visual-gradient-mesh {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.project-floating-icon {
    font-size: 5rem;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.project-info {
    flex: 1;
    padding: 3rem;
}

.project-category {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.project-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-highlights {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-highlights li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.project-btn {
    margin-top: 2rem;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .project-card-premium {
        flex-direction: column;
    }

    .project-visual {
        min-height: 250px;
    }

    .project-info {
        padding: 2rem;
    }
}

/* -- CONTACT -- */
.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-box {
    display: flex;
    gap: 4rem;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.contact-info {
    padding-top: 20px;
    flex: 1;
}

.contact-info h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-form {
    flex: 1.5;
    background: transparent;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* -- FOOTER -- */
footer {
    text-align: center;
    padding: 2rem 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

footer p:first-child {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

footer p:last-child {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* -- RESPONSIVE -- */
@media (max-width: 968px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .cta-buttons {
        justify-content: center;
        margin-bottom: 3rem;
    }

    .blob {
        width: 300px;
        height: 300px;
    }

    .contact-box {
        flex-direction: column;
    }

    .project-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tags-container {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
    }

    .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: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .name {
        font-size: 3rem;
    }
}