/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Loughborough colors */
    --primary-color: #6F3092; /* AV */
    --primary-dark: #5A2777;
    --primary-light: #8B4BA8;
    --secondary-color: #FFFFFF;
    --accent-color: #F1A7DC;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --gradient-1: linear-gradient(135deg, #6F3092 0%, #8B4BA8 100%);
    --gradient-2: linear-gradient(135deg, #6F3092 0%, #F1A7DC 100%);
    --gradient-3: linear-gradient(135deg, #8B4BA8 0%, #F1A7DC 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero  */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 12rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8d9f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(111, 48, 146, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(111, 48, 146, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111, 48, 146, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    display: block;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name {
    display: block;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease;
    width: 100%;
    max-width: 300px;
    flex-shrink: 0;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-card {
    width: 300px;
    height: 300px;
    max-width: 300px;
    max-height: 300px;
    border-radius: 50%;
    background: var(--gradient-1);
    padding: 5px;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.profile-image {
    width: 100%;
    height: 100%;
    max-width: 290px;
    max-height: 290px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.profile-photo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    display: block;
}

.profile-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    background: var(--bg-secondary);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(111, 48, 146, 0.1) 0%, rgba(241, 167, 220, 0.1) 100%);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.scroll-indicator.fade-out {
    opacity: 0;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--text-secondary);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
}

/* Section styles */
.section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

/* Extra top padding for About */
.about {
    padding-top: 10rem;
    background: var(--bg-primary);
    position: relative;
    z-index: 2;
    margin-top: -6rem;
    border-radius: 3rem 3rem 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    background-image: 
        linear-gradient(rgba(111, 48, 146, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(111, 48, 146, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Interests */
.interests {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.interests::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(111, 48, 146, 0.03) 2px, rgba(111, 48, 146, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(111, 48, 146, 0.03) 2px, rgba(111, 48, 146, 0.03) 4px);
    background-size: 40px 40px;
    opacity: 0.5;
    pointer-events: none;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.interest-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.interest-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(111, 48, 146, 0.1), transparent);
    transition: left 0.5s ease;
}

.interest-card:hover::before {
    left: 100%;
}

.interest-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.interest-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(111, 48, 146, 0.2);
}

.interest-icon {
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.4s ease;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.interest-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.4s ease;
}

.interest-card:hover .interest-icon {
    transform: scale(1.15) rotate(5deg);
}

.interest-card:hover .interest-image {
    filter: drop-shadow(0 8px 16px rgba(111, 48, 146, 0.3));
}

/* Hide broken images */
.interest-image[src=""],
.interest-image:not([src]) {
    display: none;
}

.interest-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
}

.interest-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: width 0.4s ease;
}

.interest-card:hover .interest-title::after {
    width: 60px;
}

.interest-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* Research */
.research {
    background: var(--bg-primary);
    position: relative;
}

.research-content {
    max-width: 900px;
    margin: 0 auto;
}

.research-card {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(111, 48, 146, 0.05), transparent);
    transition: left 0.6s ease;
}

.research-card:hover::before {
    left: 100%;
}

.research-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(111, 48, 146, 0.2);
}

.research-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
    display: block;
}

.research-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.research-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.tech-tag {
    padding: 0.5rem 1.25rem;
    background: var(--bg-primary);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.tech-tag:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(111, 48, 146, 0.3);
}

/* Experience */
.experience {
    background: var(--bg-secondary);
    position: relative;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(111, 48, 146, 0.02) 10px, rgba(111, 48, 146, 0.02) 20px);
    opacity: 0.3;
    pointer-events: none;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
    z-index: 1;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gradient-1);
    border: 3px solid var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.timeline-content {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(111, 48, 146, 0.05), transparent);
    transition: left 0.6s ease;
}

.timeline-content:hover::before {
    left: 100%;
}

.timeline-content:hover {
    transform: translateX(15px) translateY(-5px);
    box-shadow: 0 15px 40px rgba(111, 48, 146, 0.15);
    border-left: 4px solid var(--primary-color);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.timeline-skills li {
    padding: 0.375rem 0.875rem;
    background: var(--bg-secondary);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Roles accordion list */
.roles-accordion {
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.role-tab {
    border-bottom: 1px solid var(--border-color);
}

.role-tab:last-child {
    border-bottom: none;
}

.role-tab-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.role-tab-btn:hover {
    background: rgba(111, 48, 146, 0.05);
}

.role-tab-btn.active {
    background: rgba(111, 48, 146, 0.08);
    border-bottom: 2px solid var(--primary-color);
}

.role-tab-btn .role-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    flex: 1;
}

.role-tab-btn .role-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.role-tab-btn .role-arrow {
    color: var(--primary-color);
    font-size: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 20px;
    text-align: center;
}

.role-tab-btn.active .role-arrow {
    transform: rotate(0deg);
}

.role-tab-btn:not(.active) .role-arrow {
    transform: rotate(-90deg);
}

.role-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), padding 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    padding: 0 1.5rem;
    background: var(--bg-primary);
    opacity: 0;
}

.role-content.active {
    max-height: 2000px;
    padding: 1.5rem;
    opacity: 1;
}

.role-content .timeline-description {
    margin-bottom: 1rem;
}

.role-content .timeline-skills {
    margin-top: 1rem;
}

/* Skills */
.skills {
    background: var(--bg-primary);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skills-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(111, 48, 146, 0.05), transparent);
    transition: left 0.6s ease;
}

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(111, 48, 146, 0.15);
}

.skill-category.professional-skills {
    width: 100%;
    margin-top: 1rem;
}

.skill-category-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.skill-item:hover {
    transform: translateX(5px);
    background: rgba(111, 48, 146, 0.03);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.skill-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.skill-item:hover .skill-name {
    color: var(--primary-color);
}

.skill-percentage {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-item:hover .skill-percentage {
    opacity: 1;
}

.skill-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.skill-item:hover .skill-bar {
    transform: scaleY(1.2);
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 5px;
    transition: width 1s ease, box-shadow 0.3s ease;
    animation: slideIn 1s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

.skill-item:hover .skill-progress {
    box-shadow: 0 0 15px rgba(111, 48, 146, 0.4);
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes slideIn {
    from { width: 0; }
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    padding: 0.75rem 1.25rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(111, 48, 146, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.skill-tag:hover::before {
    width: 300px;
    height: 300px;
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(111, 48, 146, 0.2);
}

.skill-tag:active {
    transform: translateY(-1px) scale(1.02);
}

/* Education */
.education {
    background: var(--bg-secondary);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.lboro-logo {
    max-width: 200px;
    height: auto;
    margin: 1rem auto;
    display: block;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.education-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.education-degree {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.education-school {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.education-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.education-list {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.education-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.education-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Contact */
.contact {
    background: var(--bg-primary);
}

.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item a,
.contact-item p {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--bg-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
}

.footer-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .skills-top-row {
        grid-template-columns: 1fr;
    }
    
    .skill-category {
        padding: 1.5rem;
    }

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

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .nav-logo img {
        height: 30px;
    }

    .nav-logo span {
        font-size: 1.2rem;
    }
}

/* Animation on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Projects page styles */
.projects-hero {
    padding-bottom: 8rem;
    position: relative;
    overflow: hidden;
}

/* Projects preview gallery */
.projects-preview-gallery {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    padding: 5rem 2rem 2rem;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item-1 {
    grid-column: 1;
    grid-row: 1 / 3;
}

.gallery-item-2 {
    grid-column: 2;
    grid-row: 1;
}

.gallery-item-3 {
    grid-column: 3;
    grid-row: 1 / 4;
}

.gallery-item-4 {
    grid-column: 1 / 3;
    grid-row: 3;
}

.gallery-item-5 {
    display: none;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    min-height: 150px;
    background: linear-gradient(135deg, rgba(111, 48, 146, 0.2) 0%, rgba(241, 167, 220, 0.2) 100%);
    border: 2px dashed rgba(111, 48, 146, 0.3);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1rem;
}

.gallery-item-2 img {
    object-fit: contain;
}

.gallery-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.gallery-label {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    opacity: 0.8;
}

/* When images are added, they'll replace the placeholder */
.gallery-item:has(img) .gallery-placeholder {
    display: none;
}

@media (max-width: 968px) {
    .projects-preview-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 0.75rem;
        padding: 5rem 1.5rem 1.5rem;
    }

    .gallery-item-1 {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .gallery-item-2 {
        grid-column: 2;
        grid-row: 1;
    }

    .gallery-item-3 {
        grid-column: 2;
        grid-row: 2 / 5;
    }

    .gallery-item-4 {
        grid-column: 1;
        grid-row: 3 / 5;
    }

    .gallery-item-5 {
        grid-column: 2;
        grid-row: 4;
    }
}

@media (max-width: 768px) {
    .projects-preview-gallery {
        opacity: 0.1;
        gap: 0.5rem;
        padding: 5rem 1rem 1rem;
    }

    .gallery-placeholder {
        min-height: 100px;
    }

    .gallery-icon {
        font-size: 1.8rem;
    }

    .gallery-label {
        font-size: 0.75rem;
    }
}

.case-study {
    background: var(--bg-primary);
    position: relative;
}

.case-study-alt {
    background: var(--bg-secondary);
}

.case-study-header {
    text-align: center;
    margin-bottom: 4rem;
}

.case-study-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-study-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
}

.case-study-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.case-study-content {
    max-width: 1200px;
    margin: 0 auto;
}

.case-study-intro {
    margin-bottom: 4rem;
}

.case-study-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.case-study-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.stat-box {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.case-study-alt .stat-box {
    background: var(--bg-secondary);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.stat-box .stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-box .stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.case-study-visuals {
    margin: 4rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 3rem;
    box-sizing: border-box;
}

.visuals-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.visuals-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.visual-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 520px;
    background: rgba(255, 255, 255);
}

.visual-item-large {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .visual-item-large {
        grid-column: span 1;
    }
}

.visual-placeholder {
    background: var(--bg-secondary);
    border: 3px dashed var(--border-color);
    border-radius: 1rem;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.case-study-alt .visual-placeholder {
    background: var(--bg-primary);
}

.visual-item:hover .visual-placeholder {
    border-color: var(--primary-color);
    background: rgba(111, 48, 146, 0.05);
    transform: scale(1.02);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

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

.picture-placeholder {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.visual-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.case-study-details {
    margin: 4rem 0;
}

.details-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.case-study-alt .detail-card {
    background: var(--bg-primary);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.detail-card h5 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.detail-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.case-study-technologies {
    margin: 4rem 0;
    text-align: center;
}

.tech-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.tech-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.case-study-achievements {
    margin: 4rem 0;
}

.achievements-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.case-study-alt .achievement-item {
    background: var(--bg-secondary);
}

.achievement-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.achievement-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
}

.achievement-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

.cta-section {
    background: linear-gradient(135deg, #6F3092 0%, #8B4BA8 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-section .btn-primary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.nav-link.active {
    color: var(--primary-color);
}

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

/* Project phases */
.case-study-phases {
    margin: 4rem 0;
}

.phases-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
}

.phases-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 3rem;
}

.phases-timeline::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-1);
}

.phase-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.phase-item:last-child {
    margin-bottom: 0;
}

.phase-icon {
    position: absolute;
    left: -2.5rem;
    width: 3rem;
    height: 3rem;
    background: var(--bg-primary);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.case-study-alt .phase-icon {
    background: var(--bg-secondary);
}

.phase-content {
    flex: 1;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.case-study-alt .phase-content {
    background: var(--bg-primary);
}

.phase-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.phase-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.phase-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* Project Structure */
.case-study-structure {
    margin: 4rem 0;
}

.structure-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.structure-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.case-study-alt .structure-card {
    background: var(--bg-primary);
}

.structure-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.structure-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.structure-card h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.structure-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

@media (max-width: 768px) {
    .case-study-stats {
        grid-template-columns: 1fr;
    }

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

    .visual-item {
        height: 280px;
    }

    .case-study-title {
        font-size: 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .phases-timeline {
        padding-left: 2rem;
    }

    .phase-icon {
        left: -1.75rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }

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