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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #2563eb;
    --border: #e5e7eb;
    --border: #e5e7eb;
    --hover: rgba(37, 99, 235, 0.1);

    /* Premium Additions for Details */
    --bg-card: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent: #3b82f6;
    --border: #262626;
    --hover: rgba(59, 130, 246, 0.1);

    /* Premium Additions for Details */
    --bg-card: #1c1c1e;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.main,
.hero,
.page {
    position: relative;
    z-index: 3;
}

/* Navigation */
.nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 1000px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .nav {
    background: rgba(10, 10, 10, 0.4);
}

.nav-content {
    width: 1000px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.resume-button {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
}

.resume-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.resume-icon {
    font-size: 1rem;
}


.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--hover);
}

/* Main Content */
.main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.page {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        rotate: 0deg;
    }

    50% {
        scale: 1 1.5;
    }

    to {
        rotate: 360deg;
    }
}

#blob {
    background-color: white;
    height: 34vmax;
    aspect-ratio: 1;
    position: fixed;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    border-radius: 50%;
    background: linear-gradient(to right, #8ec5fc, #8dd3ff, #a1d8ff, #c1d2ff, #e0c3ff);
    opacity: 0.7;
    z-index: 1;
}

html[data-theme="dark"] #blob {
    background: linear-gradient(to right, aquamarine, mediumpurple);
}

#blur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    /* so it doesn't block clicks */
    backdrop-filter: blur(12vmax);
}

/* Home Page */
.hero {
    text-align: center;
    position: relative;
    padding: 6rem 0;
    z-index: 3;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #001F3F, #41729F, #E1f1FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Somethings more visible in dark mode*/
[data-theme="dark"] .hero h1 {
    background: linear-gradient(135deg, #6461ff, #57a0ff, #71acf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    z-index: 3;
}

.cta-button {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

/* Connect Section */
.connect-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 4rem;
    text-align: center;
    position: relative;
}

.connect-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.connect-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    width: 60px;
    height: 60px;
    justify-content: center;
}

.social-link:hover {
    width: 160px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.social-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /*take out*/
}

.social-icon2 {
    position: right;
    width: 24px;
    height: 24px;
    transform: translateY(-3px);

}

.social-link:hover .social-icon {
    left: 16px;
    transform: translateY(-50%);

}

.social-icon svg {
    width: 100%;
    height: 100%;
}

.social-icon2 svg {
    width: 100%;
    height: 100%;
}

.social-label {

    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%) translateX(-10px);
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.social-link:hover .social-label {

    left: calc(16px + 24px + 12px);
    transform: translateY(-50%) translateX(0);
    opacity: 1;
}

.project-title {
    display: inline-flex;
    align-items: center;
    gap: 0.25em;
}

.inline-icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    color: var(--text-secondary);
    transition: color .2s;
}

.project-title:hover .inline-icon {
    color: var(--text-primary);
}

/* Platform-specific colors */
.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.social-link.github:hover {
    background: #333;
    border-color: #333;
    color: white;
}

[data-theme="dark"] .social-link.github:hover {
    background: #fff;
    border-color: #fff;
    color: #333;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e4405f;
    color: white;
}

.social-link.email:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

/* Pulse animation for icons */
.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.03);
    opacity: 0;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .social-link::before {
    background: rgba(255, 255, 255, 0.03);
}

.social-link:hover::before {
    opacity: 1;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 400px;
    height: 400px;
    border-radius: 20px;
    background: url(assets/Headshot.jpeg);
    display: flex;
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 6rem;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: -1rem;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.skill {
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* About Page - Location */
.location {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    margin: 1rem 0;
    /* space above/below so it doesn’t crowd the heading */
}

.location svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: currentColor
}

.location-text {
    display: inline-block;
    margin-left: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-20px);
    transition: transform 0.7s ease, opacity 0.3s ease;
}

.location:hover .location-text {
    opacity: 1;
    transform: translateX(0);
}

/* Projects Page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* On small screens, fall back to one column */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;

    /* new: fill the column */
    width: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: auto;
    /* or set a fixed height and object-fit if you like */
    display: block;
    /* img tags default, for backgrounds just remove width/height */
    background-size: cover;
    background-position: center;
}


.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;

}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    background: var(--hover);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
}


/* Project Detail Page */
/* Project Detail Page */
.project-detail {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-out;
}

.project-detail h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-detail h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
    text-align: center;
}

.project-detail-image,
.vert-project-detail-image {
    width: 100%;
    border-radius: 24px;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    /* Reset from previous simplistic flex styles */
    height: auto;
    display: block;
    background: none;
    color: inherit;
}

.project-detail-image img,
.vert-project-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.back-button:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

/* Card-Based Content Sections */
.project-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--hover);
}

.project-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-section p,
.project-section li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.project-section ul,
.project-section ol {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.project-section li {
    margin-bottom: 0.5rem;
}

/* Updated Skills/Tech Layout */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.skill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.skill:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-md);
}

/* Carousel/PDF Viewer Updates for Detail Page */
.carousel-container {
    background: var(--bg-card) !important;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md) !important;
    border-radius: 24px !important;
}

.carousel-dots {
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border) !important;
}

.dot.active {
    background: var(--accent) !important;
}



/* Contact Page */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-content {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 2rem 1rem;
    }
}