/* 
 * CV Page Specific Modern Styles
 * Author: Matthew Haskins
 * Description: Enhanced CV page styling with modern design patterns
 */

/* -----------------------------
   Loading Animation
   ----------------------------- */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-800);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-wrapper.loaded {
    opacity: 0;
    pointer-events: none;
}

/* -----------------------------
   Navigation
   ----------------------------- */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    z-index: var(--z-sticky);
    transition: all var(--transition);
}

.sticky-nav.scrolled {
    box-shadow: var(--shadow-lg);
}

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

.nav-brand h3 {
    margin: 0;
    font-size: var(--text-xl);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--gray-300);
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

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

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

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

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--gray-300);
    transition: all var(--transition);
}

/* -----------------------------
   Hero Section
   ----------------------------- */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* -----------------------------
   Main Content Wrapper
   ----------------------------- */
main {
    background: white;
}

main > section {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

main > section:last-child {
    border-bottom: none;
}

main > section:nth-child(odd) {
    background: #fafafa;
}

main > section:nth-child(even) {
    background: white;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--primary-color), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--secondary-color), transparent),
        radial-gradient(1px 1px at 50px 50px, var(--gray-600), transparent),
        radial-gradient(1px 1px at 80px 10px, var(--accent-color), transparent);
    background-size: 200px 200px;
    animation: backgroundMove 20s linear infinite;
    opacity: 0.3;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-200px, -200px); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.profile-image-hero {
    width: 180px;
    height: 180px;
    margin: 0 auto var(--space-xl);
    position: relative;
}

.profile-image-hero img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--dark-bg);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.3);
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: var(--text-2xl);
    font-weight: 400;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-lg);
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--gray-400);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.social-links-hero {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
}

.social-links-hero a {
    color: var(--gray-400);
    font-size: var(--text-xl);
    transition: all var(--transition);
}

.social-links-hero a:hover {
    color: var(--primary-light);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--gray-600);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--gray-400);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollAnimation 2s infinite;
}

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

@keyframes scrollAnimation {
    0% { top: 10px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* -----------------------------
   Section Titles
   ----------------------------- */
.section-title-modern {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
    position: relative;
}

.title-number {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-mono);
}

.title-text {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: #1a202c;
    position: relative;
}

.title-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, transparent 100%);
    border-radius: var(--radius-full);
}

/* -----------------------------
   About Section
   ----------------------------- */
.about-section {
    padding: var(--space-4xl) var(--container-padding);
    background: #fafafa;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-intro {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: var(--space-xl);
}

.about-content p {
    color: #4a5568;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.highlight-item {
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    transition: all var(--transition);
}

.highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.highlight-item i {
    font-size: var(--text-2xl);
    color: var(--primary-color);
    margin-bottom: var(--space-md);
}

.highlight-item h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    color: #1a202c;
}

.highlight-item p {
    font-size: var(--text-sm);
    color: #4a5568;
    margin: 0;
}

.about-stats {
    display: grid;
    gap: var(--space-lg);
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
    position: relative;
}

.stat-label {
    font-size: var(--text-sm);
    color: azure;
    opacity: 0.95;
    position: relative;
}

/* -----------------------------
   Experience Timeline
   ----------------------------- */
.experience-section {
    padding: var(--space-4xl) var(--container-padding);
    background: white;
}

.timeline-modern {
    position: relative;
    padding-left: var(--space-2xl);
}

.timeline-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-3xl);
    opacity: 0.8;
    transition: all var(--transition);
}

.timeline-item.active {
    opacity: 1;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: #cbd5e0;
    border: 3px solid white;
    border-radius: 50%;
    transition: all var(--transition);
    box-shadow: 0 0 0 3px #f7fafc;
}

.timeline-item.active .timeline-marker {
    background: var(--primary-color);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.15);
}

.timeline-content {
    background: #f7fafc;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    transition: all var(--transition);
}

.timeline-item:hover .timeline-content {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
    background: white;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.timeline-header h3 {
    font-size: var(--text-xl);
    margin-bottom: 0;
    color: #1a202c;
}

.timeline-date {
    font-size: var(--text-sm);
    color: #718096;
    font-weight: 500;
}

.timeline-company {
    font-size: var(--text-base);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.highlight {
    color: var(--primary-dark);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.timeline-details ul {
    list-style: none;
    padding: 0;
}

.timeline-details li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: #4a5568;
    line-height: 1.6;
}

.timeline-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-lg);
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 500;
}

.timeline-toggle {
    text-align: center;
    margin-top: var(--space-2xl);
}

.timeline-hidden {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.timeline-hidden.show {
    max-height: 2000px;
}

/* -----------------------------
   Projects Section
   ----------------------------- */
.projects-section {
    padding: var(--space-4xl) var(--container-padding);
    background: #fafafa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.project-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.project-card.featured {
    grid-column: span 2;
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f7fafc;
}

.project-card.featured .project-image {
    height: 300px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
}

.project-category {
    padding: var(--space-xs) var(--space-md);
    background: rgba(26, 32, 44, 0.9);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.project-content {
    padding: var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    color: #1a202c;
}

.project-content p {
    flex: 1;
    margin-bottom: var(--space-lg);
    color: #4a5568;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.project-tech span {
    padding: 0.25rem 0.5rem;
    background: #edf2f7;
    color: #2d3748;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: var(--space-lg);
}

.project-links a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: #4a5568;
    font-weight: 500;
    transition: all var(--transition);
}

.project-links a:hover {
    color: var(--primary-color);
}

.projects-cta {
    text-align: center;
}

/* -----------------------------
   Skills Section
   ----------------------------- */
.skills-section {
    padding: var(--space-4xl) var(--container-padding);
    background: white;
}

.skills-container-modern {
    display: grid;
    gap: var(--space-2xl);
}

.skill-category-card {
    background: #f7fafc;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid #e2e8f0;
    transition: all var(--transition);
}

.skill-category-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: white;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.skill-category-header i {
    font-size: var(--text-2xl);
    color: var(--primary-color);
}

.skill-category-header h3 {
    font-size: var(--text-xl);
    margin: 0;
    color: #1a202c;
}

.skill-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.skill-item-modern {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.skill-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: var(--text-lg);
}

.skill-item-modern h4 {
    font-size: var(--text-base);
    margin: 0;
    color: #2d3748;
}

.skill-bar-modern {
    height: 6px;
    background: #e2e8f0;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.5s ease-out;
}

.skill-item-modern p {
    font-size: var(--text-sm);
    color: #4a5568;
    margin: 0;
    line-height: 1.4;
}

/* -----------------------------
   Education Section
   ----------------------------- */
.education-section {
    padding: var(--space-4xl) var(--container-padding);
    background: #e4e0e0;
}

.education-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
}

.education-card {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.education-icon {
    width: 60px;
    height: 60px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
}

.education-content h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    color: #1a202c;
}

.institution {
    font-size: var(--text-base);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.period {
    font-size: var(--text-sm);
    color: #718096;
    margin-bottom: var(--space-lg);
}

.education-details {
    color: #4a5568;
}

.education-details ul {
    list-style: none;
    padding: 0;
}

.education-details li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: #4a5568;
    line-height: 1.6;
}

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

/* -----------------------------
   Interests Section
   ----------------------------- */
.interests-section {
    padding: var(--space-4xl) var(--container-padding);
    background: white;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.interest-card {
    background: #f7fafc;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.interest-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
}

.interest-card:hover::before {
    opacity: 1;
}

.interest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    background: white;
}

.interest-card i {
    font-size: var(--text-3xl);
    color: var(--primary-color);
    margin-bottom: var(--space-md);
    position: relative;
}

.interest-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    position: relative;
    color: #1a202c;
}

.interest-card p {
    font-size: var(--text-sm);
    color: #4a5568;
    margin: 0;
    position: relative;
}

.values-quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.values-quote blockquote {
    font-size: var(--text-xl);
    font-style: italic;
    color: #2d3748;
    position: relative;
    padding: var(--space-2xl);
    background: #f7fafc;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
}

.values-quote blockquote::before,
.values-quote blockquote::after {
    content: '"';
    font-size: var(--text-5xl);
    color: var(--primary-light);
    position: absolute;
    opacity: 0.2;
}

.values-quote blockquote::before {
    top: 0;
    left: 20px;
}

.values-quote blockquote::after {
    bottom: -20px;
    right: 20px;
}

/* -----------------------------
   Contact Section
   ----------------------------- */
.contact-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d3748 100%);
    color: var(--text-light);
}

.contact-section .container {
    padding: 0 var(--container-padding);
}

.contact-section .section-title-modern .title-text {
    color: white;
}

.contact-section .section-title-modern .title-text::after {
    background: linear-gradient(90deg, var(--primary-light) 0%, transparent 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.contact-text h3 {
    font-size: var(--text-2xl);
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

.contact-text p {
    color: var(--gray-800);
    margin-bottom: var(--space-xl);
}

.contact-availability {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray-400);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background: var(--error-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--gray-500);
    transition: all var(--transition);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--gray-800);
    transform: translateX(5px);
}

.contact-link i {
    font-size: var(--text-lg);
    color: var(--primary-light);
}

/* -----------------------------
   Footer
   ----------------------------- */
.modern-footer {
    background: var(--dark-bg);
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--dark-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-content p {
    color: var(--gray-400);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--gray-400);
    font-size: var(--text-lg);
    transition: all var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* -----------------------------
   Back to Top Button
   ----------------------------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: var(--z-fixed);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* -----------------------------
   AOS Animation Styles
   ----------------------------- */
[data-aos] {
    opacity: 1;
    transition-property: transform, opacity;
    transition-duration: 0.5s;
    transition-timing-function: ease-out;
}

[data-aos="fade-up"] {
    transform: translateY(0);
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------
   Responsive Design
   ----------------------------- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: span 1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-xl);
    }
    
    .section-title-modern {
        flex-direction: column;
        align-items: start;
        gap: var(--space-sm);
    }
    
    .timeline-modern {
        padding-left: var(--space-lg);
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-items-grid {
        grid-template-columns: 1fr;
    }
    
    .education-cards {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: start;
    }
    
    .contact-links {
        gap: var(--space-sm);
    }
    
    .contact-link {
        padding: var(--space-sm) var(--space-md);
    }
}

/* -----------------------------
   Print Styles
   ----------------------------- */
@media print {
    .sticky-nav,
    .hero-particles,
    .scroll-indicator,
    .back-to-top,
    .nav-toggle {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        background: white;
        color: black;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a {
        text-decoration: underline;
    }
}