:root {
    --deep-purple: #5B21B6;
    --medium-purple: #7C3AED;
    --light-purple: #8B5CF6;
    --pale-purple: #A78BFA;
    --lavender: #C4B5FD;
    --dark-grey: #1F2937;
    --medium-grey: #374151;
    --light-grey: #4B5563;
    --pale-grey: #6B7280;
    --primary-color: #7C3AED;
    --secondary-color: #8B5CF6;
    --accent-color: #5B21B6;
    --text-dark: #E5E7EB;
    --text-light: #D1D5DB;
    --text-muted: #9CA3AF;
    --bg-dark: #111827;
    --bg-darker: #0F172A;
    --bg-card: #1F2937;
    --bg-card-hover: #374151;
    --bg-white: #FFFFFF;
    --bg-light: #1A1F2E;
    --bg-lighter: #252A3A;
    --bg-warm: #1A1625;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.6);
    --glow-purple: 0 0 20px rgba(124, 58, 237, 0.3);
    --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: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'SF Pro Display', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #1A0F2E 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'SF Pro Display', sans-serif;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-purple);
    text-decoration: none;
    transition: var(--transition);
    letter-spacing: -0.5px;
}

.nav-logo:hover {
    color: var(--medium-purple);
    transform: scale(1.05);
}

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

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

.nav-link:hover {
    color: var(--light-purple);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 2rem;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    /* Float animation removed for performance */
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--light-purple);
    top: 10%;
    left: 10%;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--pale-purple);
    bottom: 15%;
    right: 10%;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--lavender);
    top: 50%;
    right: 20%;
}

.hero-header {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    z-index: 1;
}

.hero-headshot {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--medium-purple);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.5), 0 10px 30px rgba(0, 0, 0, 0.8);
    transition: all 0.4s ease;
}

.hero-headshot:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.8), 0 15px 40px rgba(0, 0, 0, 0.9);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: var(--lavender);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 2px solid var(--medium-purple);
    backdrop-filter: blur(10px);
    box-shadow: var(--glow-purple);
    /* Pulse animation removed for performance */
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--deep-purple);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.hero-subtitle .company-emphasis {
    font-weight: 700;
    color: #6AA0C5;
}

.hero-sections {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
    position: relative;
}

.hero-left, .hero-right {
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-left {
    padding: 1.5rem;
    background: rgba(31, 41, 55, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    backdrop-filter: blur(10px);
}

.hero-right {
    padding: 1.5rem;
    background: rgba(55, 65, 81, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(10px);
}

.hero-divider {
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--light-purple), transparent);
}

.hero-intro {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-weight: 500;
}

.hero-hobbies {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.hero-hobbies strong {
    color: var(--text-dark);
    font-weight: 700;
}

.hero-connect {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
}

.hero-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(75, 85, 99, 0.5);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50%;
    border: 2px solid rgba(124, 58, 237, 0.3);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.contact-link:hover {
    background: linear-gradient(135deg, var(--medium-purple) 0%, var(--deep-purple) 100%);
    color: white;
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.6);
    border-color: var(--light-purple);
}

.contact-link svg {
    width: 24px;
    height: 24px;
}

.hero-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'SF Pro Display', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--medium-purple) 0%, var(--deep-purple) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    border: 1px solid var(--medium-purple);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--light-purple) 0%, var(--medium-purple) 100%);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(75, 85, 99, 0.5);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--light-grey);
}

.btn-secondary:hover {
    background: var(--medium-grey);
    color: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--pale-purple);
}

/* Sections */
.section {
    padding: 5rem 2rem;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Shimmer animation removed for performance */

.section-alt {
    background: rgba(31, 41, 55, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

.section-alt::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    letter-spacing: -1.5px;
}

.section-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--deep-purple), var(--light-purple));
    margin: 1rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

/* Education Section - Floating Card Style */
.education-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.education-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(55, 65, 81, 0.7) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3), var(--shadow-lg);
    max-width: 900px;
    width: 100%;
    transition: var(--transition);
    border: 2px solid rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--deep-purple), var(--medium-purple), var(--light-purple), var(--pale-purple));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.education-card:hover::before {
    opacity: 0.6;
}

.education-card:hover {
    box-shadow: 0 12px 48px rgba(124, 58, 237, 0.5), var(--shadow-xl);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(124, 58, 237, 0.6);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.education-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.education-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.education-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.location {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.education-date {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.degree {
    color: var(--deep-purple);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.honors {
    background: var(--bg-lighter);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.honors p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.coursework-section {
    margin-bottom: 1rem;
}

.coursework-section:last-child {
    margin-bottom: 0;
}

.coursework-title {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.coursework-list {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    padding-left: 1rem;
    margin: 0;
}

.education-bullets {
    list-style: disc;
    margin-left: 1.5rem;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.9rem;
}

.education-bullets li {
    margin-bottom: 0.5rem;
}

/* Timeline - Center Aligned with Alternating Sides */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--medium-purple), var(--light-purple), var(--medium-purple));
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 1;
    /* Animation removed for performance */
    width: 48%;
    clear: both;
}

/* Alternate sides */
.timeline-item:nth-child(odd) {
    float: left;
    padding-right: 2.5rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    float: right;
    padding-left: 2.5rem;
    text-align: left;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.timeline-marker {
    position: absolute;
    top: 1.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--light-purple);
    border: 4px solid var(--bg-dark);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.5);
    transition: var(--transition);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -10px;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.4);
    box-shadow: 0 0 0 8px rgba(124, 58, 237, 0.6), 0 0 20px rgba(124, 58, 237, 0.8);
}

.timeline-content {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(55, 65, 81, 0.6) 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: var(--transition);
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content {
    border-right: 3px solid var(--medium-purple);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: 3px solid var(--medium-purple);
}

.timeline-content:hover {
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.4), var(--shadow-lg);
    transform: scale(1.03);
    border-color: rgba(124, 58, 237, 0.6);
}

/* Clear floats after timeline */
.timeline::after {
    content: '';
    display: table;
    clear: both;
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.company-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(196, 181, 253, 0.2) 0%, rgba(167, 139, 250, 0.3) 100%);
    border-radius: 8px;
    border: 2px solid rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(5px);
}

.company-logo-img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.company-logo-container img[alt="Meta"] {
    height: 24px;
}

.company-logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
}

.timeline-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.position-title {
    font-size: 1.2rem;
    color: var(--deep-purple);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-name {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.achievements {
    list-style: none;
    margin-bottom: 1rem;
}

.achievements li {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    font-weight: 500;
}

.achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--deep-purple);
    font-weight: bold;
}

.achievements ul {
    list-style: none;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.achievements ul li {
    font-size: 0.95em;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
}

.achievements ul li::before {
    content: '◦';
    color: var(--light-purple);
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: rgba(55, 65, 81, 0.5);
    color: var(--text-light);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: var(--transition);
}

.tag:hover {
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
    background: rgba(124, 58, 237, 0.3);
    color: var(--lavender);
    border-color: var(--medium-purple);
}

/* Skills Section - Bento Box Layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    grid-auto-rows: minmax(180px, auto);
}

.skill-category {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(55, 65, 81, 0.6) 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(124, 58, 237, 0.1);
    transition: var(--transition);
}

/* Create varied sizes for bento box effect */
.skill-category:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
}

.skill-category:nth-child(2) {
    grid-column: span 2;
    grid-row: span 1;
}

.skill-category:nth-child(3) {
    grid-column: span 2;
    grid-row: span 2;
}

.skill-category:nth-child(4) {
    grid-column: span 3;
    grid-row: span 1;
}

.skill-category:nth-child(5) {
    grid-column: span 3;
    grid-row: span 1;
}

.skill-category:hover {
    box-shadow: 0 0 25px rgba(124, 58, 237, 0.3), var(--shadow-lg);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(124, 58, 237, 0.4);
    z-index: 10;
}

.skill-category h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.skill-category:nth-child(1) h3 {
    color: #7FB3D5;
}

.skill-category:nth-child(2) h3 {
    color: #A8D5BA;
}

.skill-category:nth-child(3) h3 {
    color: #9DC4D4;
}

.skill-category:nth-child(4) h3 {
    color: #A5C9C1;
}

.skill-category:nth-child(5) h3 {
    color: #7FB3D5;
}

.skill-category:nth-child(6) h3 {
    color: #A8D5BA;
}

.skill-category:hover {
    border-top: 3px solid var(--pale-purple);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.skill-item {
    background: rgba(55, 65, 81, 0.6);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid rgba(124, 58, 237, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-item svg,
.skill-item img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    object-fit: contain;
}

.skill-item:hover {
    background: linear-gradient(135deg, var(--medium-purple) 0%, var(--deep-purple) 100%);
    color: white;
    border-color: var(--light-purple);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}

/* Projects Section - Masonry-style Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    grid-auto-rows: minmax(100px, auto);
}

.project-card {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(55, 65, 81, 0.6) 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-top: 4px solid var(--medium-purple);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

/* Featured project takes full width */
.project-card:nth-child(1) {
    grid-column: span 3;
    border-top-color: var(--light-purple);
}

/* Second project spans 2 columns */
.project-card:nth-child(2) {
    grid-column: span 2;
    border-top-color: var(--deep-purple);
}

/* Third project single column */
.project-card:nth-child(3) {
    grid-column: span 1;
    border-top-color: var(--pale-purple);
}

/* Alternating pattern */
.project-card:nth-child(4) {
    grid-column: span 1;
    border-top-color: var(--medium-purple);
}

.project-card:nth-child(5) {
    grid-column: span 2;
    border-top-color: var(--light-purple);
}

.project-card:nth-child(6) {
    grid-column: span 2;
    border-top-color: var(--deep-purple);
}

.project-card:nth-child(7) {
    grid-column: span 1;
    border-top-color: var(--pale-purple);
}

.project-card:nth-child(8) {
    grid-column: span 3;
    border-top-color: var(--medium-purple);
}

.project-card:hover {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.4), var(--shadow-xl);
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(124, 58, 237, 0.5);
    z-index: 10;
}

.project-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-dark);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(124, 58, 237, 0.3);
}

.footer p {
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .hero-sections {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-divider {
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, transparent 20%, var(--light-purple) 50%, transparent 80%);
    }
    
    .hero-intro {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .hero-subtitle {
        line-height: 1.2;
    }
    
    .hero-hobbies, .hero-connect {
        font-size: 0.9rem;
    }
    
    .hero-links {
        gap: 0.75rem;
    }
    
    .hero {
        min-height: auto;
    }
    
    .contact-link {
        width: 44px;
        height: 44px;
    }
    
    .contact-link svg {
        width: 22px;
        height: 22px;
    }
    
    .blob {
        display: none;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline {
        padding: 0;
    }

    .timeline::before {
        left: 1.5rem;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        padding-left: 3.5rem !important;
        padding-right: 0 !important;
        float: none !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 3.5rem !important;
        padding-right: 0 !important;
        float: none;
        text-align: left;
    }

    .timeline-marker {
        left: 0.7rem !important;
        right: auto !important;
    }

    .timeline-content {
        border-left: 3px solid var(--medium-purple) !important;
        border-right: none !important;
    }
    
    .company-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .company-logo-text {
        font-size: 1.3rem;
    }
    
    .company-logo-img {
        height: 36px;
        max-width: 100px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card:nth-child(1),
    .project-card:nth-child(2),
    .project-card:nth-child(3),
    .project-card:nth-child(4),
    .project-card:nth-child(5),
    .project-card:nth-child(6),
    .project-card:nth-child(7),
    .project-card:nth-child(8) {
        grid-column: span 1 !important;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .skill-category:nth-child(1),
    .skill-category:nth-child(2),
    .skill-category:nth-child(3),
    .skill-category:nth-child(4),
    .skill-category:nth-child(5) {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 0.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }
    
    .hero-links {
        gap: 1rem;
    }
    
    .contact-link {
        width: 56px;
        height: 56px;
    }
    
    .contact-link svg {
        width: 28px;
        height: 28px;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

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

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

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

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid rgba(155, 89, 182, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', 'SF Pro Display', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-purple);
    box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.1);
}

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

.contact-form .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.contact-form .btn-primary {
    background: var(--light-purple);
    color: var(--text-dark);
    border: none;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.contact-form .btn-primary:hover {
    background: var(--deep-purple);
    color: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}

.timeline-item {
    scroll-margin-top: 100px;
}

/* Responsive adjustments for education section */
@media (max-width: 768px) {
    .education-header {
        flex-direction: column;
    }
    
    .education-date {
        white-space: normal;
    }
    
    .coursework-list {
        font-size: 0.85rem;
    }
}
