/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand h2 {
    color: #ff6b35;
    font-weight: 600;
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6b35;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-primary {
    background: #ff6b35;
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid #ff6b35;
}

.btn-secondary:hover {
    background: #ff6b35;
    transform: translateY(-2px);
}

/* Profile Card */
.profile-card {
    background: rgba(45, 45, 45, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #ff6b35;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.profile-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.profile-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.social-btn {
    padding: 8px 16px;
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #ff6b35;
    color: white;
}

/* Values Section in Profile Card */
.values-section {
    margin-top: 1.5rem;
    text-align: left;
}

.values-section h4 {
    color: #ff6b35;
    font-size: 1rem;
    margin-bottom: 0.8rem;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    color: #cccccc;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.values-list li:before {
    content: "•";
    color: #ff6b35;
    position: absolute;
    left: 0;
}

/* Quotes Section */
.quotes-section {
    padding: 80px 20px;
    background: #1a1a1a;
}

.quotes-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
}

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

.quote-card {
    background: rgba(45, 45, 45, 0.6);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.quote-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(45, 45, 45, 0.8);
}

.quote-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.6;
    position: relative;
}

.quote-card blockquote:before {
    content: "\201C";
    font-size: 3rem;
    color: #ff6b35;
    position: absolute;
    top: -10px;
    left: -10px;
}

.quote-card cite {
    color: #ff6b35;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Blog Section */
.blog-section {
    padding: 80px 20px;
    background: #1a1a1a;
}

.blog-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.blog-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #cccccc;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.blog-card {
    background: rgba(45, 45, 45, 0.6);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(45, 45, 45, 0.8);
}

.blog-card.featured {
    grid-column: span 2;
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    display: flex;
    gap: 2rem;
    align-items: center;
}

.blog-image {
    flex: 0 0 300px;
    border-radius: 8px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image:hover {
    transform: scale(1.05);
}

.blog-content {
    flex: 1;
}

/* Small blog card images for non-featured posts */
.blog-image-small {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.card-image-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-image-small:hover {
    transform: scale(1.05);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-meta .category {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-meta .date,
.blog-meta .read-time {
    color: #999999;
    font-size: 0.9rem;
}

.blog-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.3;
}

.blog-card.featured h3 {
    font-size: 1.6rem;
}

.blog-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 400;
}

.blog-card .read-more {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.blog-card .read-more:hover {
    color: #ffffff;
}

.blog-cta {
    text-align: center;
    background: rgba(45, 45, 45, 0.4);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.blog-cta h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-cta p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Interests Section */
.interests-section {
    padding: 80px 20px;
    background: #2d2d2d;
}

.interests-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
}

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

.interest-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.interest-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.3);
}

.interest-card h3 {
    color: #ff6b35;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.media-content h4 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.media-content p {
    color: #cccccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.song-info h4 {
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.song-info p {
    color: #ff6b35;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    padding: 40px 20px;
    text-align: center;
}

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

.contact-section h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    justify-content: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-btn span {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #0f0f0f;
    padding: 60px 20px 20px;
}

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

.footer-section h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: #cccccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b35;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .featured-posts h2 {
        font-size: 2rem;
    }
    
    .contact-section {
        padding: 30px 20px;
    }
    
    .contact-section h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-section p {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .contact-btn-inline {
        display: block;
        margin: 0.5rem auto;
        min-width: 200px;
        text-align: center;
    }
    
    .quotes-section h2,
    .interests-section h2,
    .blog-section h2 {
        font-size: 2rem;
    }
    
    .quotes-grid,
    .interests-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card.featured {
        grid-column: span 1;
        flex-direction: column;
        text-align: center;
    }
    
    .blog-image {
        flex: none;
        width: 100%;
    }
    
    .card-image {
        height: 250px;
    }
    
    .blog-intro {
        font-size: 1rem;
    }
}

/* Blog Post Styles */
.blog-post-header {
    padding: 140px 20px 40px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    text-align: center;
}

/* Blog Hero Image */
.blog-hero-image {
    padding: 0 20px 40px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
}

.hero-image-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.image-caption {
    background: rgba(26, 26, 26, 0.9);
    padding: 1rem;
    text-align: center;
}

.image-caption p {
    color: #cccccc;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0;
}

.blog-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.blog-breadcrumb a {
    color: #ff6b35;
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: #ffffff;
}

.blog-breadcrumb span {
    color: #cccccc;
}

.blog-post-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-post-meta .category {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-post-meta .date,
.blog-post-meta .read-time {
    color: #999999;
    font-size: 0.9rem;
}

.blog-post-header h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.blog-post-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.blog-post-intro p {
    font-size: 1.2rem;
    color: #cccccc;
    line-height: 1.6;
    font-style: italic;
}

.blog-post-header .blog-tags {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.blog-post-header .tag {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 400;
}

/* Blog Content */
.blog-post-content {
    padding: 80px 20px;
    background: #1a1a1a;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.blog-content .lead {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-content h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin: 3rem 0 1.5rem 0;
    font-weight: 600;
}

.blog-content h2:first-of-type {
    margin-top: 0;
}

.blog-content p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.blog-content ul {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.blog-content ul li {
    color: #cccccc;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.7;
}

.blog-content ul li:before {
    content: "•";
    color: #ff6b35;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.blog-content strong {
    color: #ffffff;
    font-weight: 600;
}

/* Related Posts */
.related-posts {
    padding: 80px 20px;
    background: #2d2d2d;
}

.related-posts h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #ffffff;
}

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

.related-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.3);
}

.related-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.related-meta .category {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.related-meta .date {
    color: #999999;
    font-size: 0.9rem;
}

.related-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.related-card p {
    color: #cccccc;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.related-card .read-more {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.related-card .read-more:hover {
    color: #ffffff;
}

/* Blog Newsletter */
.blog-newsletter {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    padding: 60px 20px;
    text-align: center;
}

.blog-newsletter .newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.blog-newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.blog-newsletter p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.newsletter-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Inline Blog Images */
.blog-image-inline {
    margin: 2rem 0;
    text-align: center;
}

.inline-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.inline-image:hover {
    transform: scale(1.02);
}

.blog-image-inline .image-caption {
    background: rgba(45, 45, 45, 0.8);
    padding: 0.8rem;
    margin-top: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #cccccc;
    font-style: italic;
}

/* Highlight Box for Key Takeaways */
.highlight-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-left: 4px solid #ff6b35;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.highlight-box h3 {
    color: #ff6b35;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.highlight-box p {
    color: #e0e0e0;
    margin-bottom: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive Design for Blog Post */
@media (max-width: 768px) {
    .blog-post-header h1 {
        font-size: 2.2rem;
    }
    
    .blog-post-intro p {
        font-size: 1.1rem;
    }
    
    .blog-post-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .blog-content {
        padding: 0 10px;
    }
    
    .blog-content h2 {
        font-size: 1.5rem;
    }
    
    .blog-content p,
    .blog-content ul li {
        font-size: 1rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .blog-post-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-post-header {
        padding: 120px 15px 40px;
    }
    
    .blog-post-content {
        padding: 60px 15px;
    }
    
    .related-posts {
        padding: 60px 15px;
    }
    
    .blog-image-inline {
        margin: 1.5rem 0;
    }
    
    .inline-image {
        max-width: 100%;
    }
    
    .blog-image-inline .image-caption {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
}/* 
Blog Archive Styles */
.blog-archive-header {
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    text-align: center;
}

.archive-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.archive-breadcrumb a {
    color: #ff6b35;
    text-decoration: none;
}

.archive-breadcrumb a:hover {
    color: #ffffff;
}

.archive-breadcrumb span {
    color: #cccccc;
}

.blog-archive-header h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.archive-intro {
    font-size: 1.2rem;
    color: #cccccc;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.archive-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff6b35;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #cccccc;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blog Archive Grid */
.blog-archive {
    padding: 80px 20px;
    background: #1a1a1a;
}

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

.archive-card {
    background: rgba(45, 45, 45, 0.6);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.archive-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 107, 53, 0.3);
    background: rgba(45, 45, 45, 0.8);
}

.archive-card.featured {
    grid-column: span 2;
    display: flex;
    gap: 2rem;
    align-items: center;
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
}

.archive-image {
    position: relative;
    overflow: hidden;
}

.archive-card.featured .archive-image {
    flex: 0 0 400px;
    height: 250px;
}

.archive-card:not(.featured) .archive-image {
    width: 100%;
    height: 200px;
}

.archive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.archive-img:hover {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ff6b35;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.archive-content {
    padding: 2rem;
    flex: 1;
}

.archive-card:not(.featured) .archive-content {
    padding: 1.5rem;
}

.archive-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.archive-meta .category {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.archive-meta .date,
.archive-meta .read-time {
    color: #999999;
    font-size: 0.9rem;
}

.archive-card h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.3;
}

.archive-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.3;
}

.archive-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.archive-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.archive-card .read-more {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.archive-card .read-more:hover {
    color: #ffffff;
}

/* Archive Newsletter */
.archive-newsletter {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    padding: 60px 20px;
    text-align: center;
}

.archive-newsletter .newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.archive-newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.archive-newsletter p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Active nav link */
.nav-links a.active {
    color: #ff6b35;
}

/* Responsive Design for Archive */
@media (max-width: 768px) {
    .blog-archive-header h1 {
        font-size: 2.2rem;
    }
    
    .archive-intro {
        font-size: 1.1rem;
    }
    
    .archive-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .archive-card.featured {
        flex-direction: column;
        text-align: center;
    }
    
    .archive-card.featured .archive-image {
        flex: none;
        width: 100%;
        height: 250px;
    }
    
    .archive-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-archive-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-archive-header {
        padding: 100px 15px 40px;
    }
    
    .blog-archive {
        padding: 60px 15px;
    }
    
    .archive-newsletter {
        padding: 40px 15px;
    }
}

/* Professional Page Styles */
.professional-hero {
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    text-align: center;
}

.professional-intro h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.professional-intro .lead {
    font-size: 1.3rem;
    color: #cccccc;
    max-width: 800px;
    margin: 0 auto;
}

.professional-summary {
    padding: 80px 20px;
    background-color: #222222;
}

.summary-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.summary-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #ff6b35;
}

.summary-content p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.key-strengths h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.strengths-list {
    list-style: none;
}

.strengths-list li {
    padding: 0.5rem 0;
    color: #cccccc;
    position: relative;
    padding-left: 1.5rem;
}

.strengths-list li::before {
    content: "→";
    color: #ff6b35;
    position: absolute;
    left: 0;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(135deg, #333333 0%, #444444 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #444444;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #cccccc;
    font-size: 1rem;
}

.experience-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
}

.experience-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ff6b35;
    text-align: center;
}

.experience-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.experience-item {
    background: linear-gradient(135deg, #222222 0%, #333333 100%);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid #444444;
}

.experience-header {
    margin-bottom: 1.5rem;
}

.experience-header h3 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.experience-meta {
    display: flex;
    gap: 2rem;
    color: #cccccc;
}

.company {
    color: #ff6b35;
    font-weight: 500;
}

.experience-content p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.achievements-list li {
    padding: 0.5rem 0;
    color: #cccccc;
    position: relative;
    padding-left: 1.5rem;
}

.achievements-list li::before {
    content: "✓";
    color: #ff6b35;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background-color: #444444;
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #555555;
}

.skills-section {
    padding: 80px 20px;
    background-color: #222222;
}

.skills-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ff6b35;
    text-align: center;
}

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

.skill-category {
    background: linear-gradient(135deg, #333333 0%, #444444 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #444444;
}

.skill-category h3 {
    font-size: 1.5rem;
    color: #ff6b35;
    margin-bottom: 1.5rem;
}

.skills-list {
    list-style: none;
}

.skills-list li {
    padding: 0.5rem 0;
    color: #cccccc;
    position: relative;
    padding-left: 1.5rem;
}

.skills-list li::before {
    content: "•";
    color: #ff6b35;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.education-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
}

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

.education-column h2,
.certifications-column h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ff6b35;
}

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

.education-item {
    background: linear-gradient(135deg, #222222 0%, #333333 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #444444;
}

.education-item h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.institution {
    color: #ff6b35;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.year {
    color: #cccccc;
    margin-bottom: 1rem;
}

.details {
    color: #cccccc;
    line-height: 1.6;
}

.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-item {
    background: linear-gradient(135deg, #222222 0%, #333333 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #444444;
}

.cert-item h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.cert-item p {
    color: #cccccc;
    font-size: 0.9rem;
}

.philosophy-section {
    padding: 80px 20px;
    background-color: #222222;
}

.philosophy-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ff6b35;
    text-align: center;
}

.philosophy-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #333333 0%, #444444 100%);
    border-radius: 12px;
    border-left: 4px solid #ff6b35;
}

.philosophy-principles h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

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

.principle-card {
    background: linear-gradient(135deg, #333333 0%, #444444 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #444444;
    text-align: center;
}

.principle-card h4 {
    font-size: 1.3rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.principle-card p {
    color: #cccccc;
    line-height: 1.6;
}

.professional-contact {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.contact-cta {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ff6b35;
}

.contact-cta p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Active navigation state */
.nav-links a.active {
    color: #ff6b35;
}

/* Responsive Design for Professional Page */
@media (max-width: 768px) {
    .professional-intro h1 {
        font-size: 2.5rem;
    }
    
    .professional-intro .lead {
        font-size: 1.1rem;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .summary-stats {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .stat-card {
        flex: 1;
        padding: 1.5rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .experience-item {
        padding: 1.5rem;
    }
    
    .experience-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .professional-intro h1 {
        font-size: 2rem;
    }
    
    .summary-stats {
        flex-direction: column;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
    }
}

/* Breadcrumb Navigation */
.breadcrumb {
    background-color: #2d2d2d;
    padding: 1rem 0;
    border-bottom: 1px solid #444;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.breadcrumb a:hover {
    color: #ff6b35;
}

.breadcrumb-separator {
    color: #999;
    margin: 0 0.5rem;
}

.breadcrumb-current {
    color: #ff6b35;
    font-weight: 500;
}

/* Navigation Brand Link */
.nav-brand a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: #ff6b35;
}
/*
 ===== INTERACTIVE RESUME CAROUSEL ===== */

/* Main Carousel Container */
.interactive-resume-main {
    height: calc(100vh - 240px); /* Account for header (80px) + breadcrumb (60px) + footer (100px) */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.interactive-resume-carousel {
    position: relative;
    width: 100vw;
    min-height: calc(100vh - 240px); /* Account for header + breadcrumb + footer */
    overflow: visible;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    max-width: 100%;
}

/* Carousel Track */
.carousel-track {
    display: flex;
    width: 200vw;
    min-height: 100%;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
    touch-action: pan-y; /* Allow vertical scrolling but handle horizontal gestures */
    will-change: transform;
}

.carousel-track.slide-to-second {
    transform: translateX(-100vw);
}

/* Touch Momentum Animations */
.carousel-track.momentum-left {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track.momentum-right {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced touch feedback for mobile */
@media (hover: none) and (pointer: coarse) {
    .carousel-track {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .carousel-track.momentum-left,
    .carousel-track.momentum-right {
        transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
}

/* Carousel Cards */
.carousel-card {
    width: 100vw;
    min-height: calc(100vh - 240px); /* Account for header + breadcrumb + footer */
    padding: 1.5rem;
    flex-shrink: 0;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Two-column grid layout for Card 1 */
.card-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    align-items: start;
    padding: 1rem 0;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    overflow: hidden;
    padding-right: 1rem;
}

/* Compact grid layout for Card 2 */
.card-content-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    align-items: start;
    padding: 1rem 1rem 3rem 1rem;
    overflow: visible;
    background: #2a2a2a;
}

.card-content {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Compact Profile Section */
.profile-section-compact {
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-section-compact .profile-avatar {
    margin-bottom: 1rem;
}

.profile-section-compact .profile-image {
    width: 120px;
    height: 120px;
}

.profile-section-compact h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-section-compact .profile-title {
    font-size: 1.1rem;
    color: #ff6b35;
    margin-bottom: 0.25rem;
}

.profile-section-compact .profile-company {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Compact About Section */
.about-section-compact {
    margin-bottom: 1.5rem;
}

.about-section-compact h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ff6b35;
}

.about-section-compact p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Inline Contact Info */
.contact-info-inline {
    margin-bottom: 1rem;
}

.contact-methods-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.contact-btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: rgba(26, 26, 26, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin: 0 0.3rem;
    white-space: nowrap;
}

.contact-btn-inline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Compact Timeline Section */
.timeline-section-compact {
    height: 100%;
}

.timeline-section-compact h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #ff6b35;
    text-align: center;
}

.interactive-timeline-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: calc(100% - 3rem);
    overflow: visible;
    padding-right: 1rem;
}



.timeline-item-compact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid #ff6b35;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.timeline-item-compact:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.timeline-marker-compact {
    width: 12px;
    height: 12px;
    background: #ff6b35;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.3rem;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.timeline-content-compact {
    flex: 1;
}

.timeline-year {
    font-size: 0.75rem;
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-content-compact h3 {
    font-size: 0.95rem;
    color: #ffffff;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    font-weight: 600;
}

.timeline-content-compact .company {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin: 0;
}

/* Company Logo Styling */
.company-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
}

.cisco-logo {
    height: 24px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    filter: brightness(0.9);
}

.timeline-item-compact:hover .cisco-logo {
    opacity: 1;
    filter: brightness(1);
}

/* Compact Card 2 Layout */
.card-content-grid-2 .skills-section {
    grid-column: 1;
    grid-row: 1;
    background: #1a1a1a;
    padding: 1rem 1rem 2rem 1rem;
    border-radius: 8px;
    margin: 0;
    height: 520px;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.card-content-grid-2 .skills-section h2 {
    font-size: 1.4rem;
    color: #ff6b35;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 0.5rem;
}

.card-content-grid-2 .skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-content-grid-2 .skill-category {
    padding: 0;
    margin-bottom: 0;
    background: none;
    border: none;
}

.card-content-grid-2 .skill-category h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #ff6b35;
    font-weight: 600;
}

.card-content-grid-2 .skills-list li {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.card-content-grid-2 .education-section {
    grid-column: 2;
    grid-row: 1;
    background: #1a1a1a;
    padding: 1rem 1rem 2rem 1rem;
    border-radius: 8px;
    margin: 0;
    height: 520px;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.card-content-grid-2 .activities-section {
    grid-column: 3;
    grid-row: 1;
    background: #1a1a1a;
    padding: 1rem 1rem 2rem 1rem;
    border-radius: 8px;
    margin: 0;
    height: 520px;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.card-content-grid-2 .education-section h2,
.card-content-grid-2 .activities-section h2 {
    font-size: 1.4rem;
    color: #ff6b35;
    margin-bottom: 1rem;
    text-align: center;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 0.5rem;
}

.card-content-grid-2 .education-grid,
.card-content-grid-2 .activities-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-content-grid-2 .education-item,
.card-content-grid-2 .activity-item {
    padding: 0;
    margin-bottom: 1rem;
    background: none;
    border: none;
}

.card-content-grid-2 .education-item h3,
.card-content-grid-2 .activity-item h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
    color: #ff6b35;
    font-weight: 600;
}

.card-content-grid-2 .education-item .institution,
.card-content-grid-2 .education-item .year,
.card-content-grid-2 .activity-item .activity-org,
.card-content-grid-2 .activity-item .activity-duration {
    font-size: 0.85rem;
    color: #ffffff;
}

.card-content-grid-2 .education-item .details {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Hero Section Styling */
.hero-section {
    margin-bottom: 3rem;
    text-align: center;
}

.interactive-resume .hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.interactive-resume .profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-avatar {
    position: relative;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #ff6b35;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.profile-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-title {
    font-size: 1.2rem;
    color: #ff6b35;
    font-weight: 500;
    margin: 0.5rem 0 0 0;
}

.profile-company {
    font-size: 1rem;
    color: #cccccc;
    margin: 0.25rem 0 0 0;
}

.about-section {
    max-width: 600px;
    text-align: center;
}

.about-section h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
}

/* Contact Information */
.contact-info {
    margin-top: 2rem;
}

.contact-info h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 1.2rem;
}

.contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ff6b35;
}

/* Timeline Section */
.timeline-section {
    margin-top: 3rem;
}

.timeline-section h2 {
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
}

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

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.timeline-item:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    background: #ff6b35;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.25rem;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.timeline-company {
    font-size: 1rem;
    color: #ff6b35;
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.timeline-duration {
    font-size: 0.9rem;
    color: #cccccc;
    margin: 0;
}

/* Skills Section */
.skills-section {
    margin-bottom: 3rem;
}

.skills-section h2 {
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid #ff6b35;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #ff8c42);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    padding: 0.5rem 0;
    color: #cccccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.skills-list li:last-child {
    border-bottom: none;
}

.skills-list li:hover {
    color: #ff6b35;
    padding-left: 0.5rem;
}

.skills-list li::before {
    content: '▸';
    color: #ff6b35;
    font-size: 0.8rem;
    position: absolute;
    left: -1rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.skills-list li:hover::before {
    opacity: 1;
    left: -0.5rem;
}

/* Education Section */
.education-section {
    margin-bottom: 3rem;
}

.education-section h2 {
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
}

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

.education-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff6b35, #ff8c42);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.education-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.education-item:hover::before {
    transform: scaleY(1);
}

.education-item h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
}

.institution {
    font-size: 1rem;
    color: #ff6b35;
    margin-bottom: 0.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.year {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.details {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
    position: relative;
    padding-left: 1rem;
}

.details::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 3px;
    height: calc(100% - 1rem);
    background: rgba(255, 107, 53, 0.3);
    border-radius: 2px;
}

/* Activities Section */
.activities-section h2 {
    font-size: 2rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
}

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

.activity-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.activity-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #ff6b35, #ff8c42);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
}

.activity-item:hover::before {
    transform: scaleY(1);
}

.activity-item h4 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.activity-org {
    font-size: 0.95rem;
    color: #ff6b35;
    margin-bottom: 0.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



.activity-duration {
    font-size: 0.9rem;
    color: #cccccc;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}



/* Carousel Navigation */
.carousel-navigation {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.carousel-arrow {
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid #ff6b35;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-arrow:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.carousel-arrow.carousel-next:not(:disabled) {
    animation: pulseNext 2s ease-in-out infinite;
}

@keyframes pulseNext {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 0 8px rgba(255, 107, 53, 0.2);
    }
}

.carousel-indicators {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.indicator-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.indicator-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.indicator-group:has(.carousel-dot.active) .indicator-label {
    color: #ff6b35;
}

.card-counter {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(255, 107, 53, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.current-card {
    color: #ff6b35;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
}

.total-cards {
    color: rgba(255, 255, 255, 0.8);
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #ff6b35;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-dot.active {
    background: #ff6b35;
    border-color: #ff6b35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

.carousel-dot:hover {
    border-color: #ff6b35;
    transform: scale(1.2);
}

/* Job Detail Modal */
.job-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.job-detail-modal.active {
    opacity: 1;
    visibility: visible;
}

.job-detail-content {
    background: #2d2d2d;
    border-radius: 16px;
    padding: 0;
    max-width: 800px;
    max-height: 80vh;
    width: 90%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

.job-detail-modal.active .job-detail-content {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    flex: 1;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 120px);
}

.job-meta {
    margin-bottom: 1.5rem;
}

.job-company {
    font-size: 1.1rem;
    color: #ff6b35;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.job-duration {
    font-size: 1rem;
    color: #cccccc;
    margin: 0 0 1rem 0;
}

.job-description {
    margin-bottom: 2rem;
}

.job-description p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.job-achievements h3,
.job-tech-stack h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.achievements-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.achievements-list li {
    padding: 0.75rem 0;
    color: #cccccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.achievements-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #ff6b35;
    font-weight: bold;
}

.achievements-list li:last-child {
    border-bottom: none;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(255, 107, 53, 0.2);
    color: #ff6b35;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 107, 53, 0.3);
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design - Large Tablet */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .interactive-resume-carousel {
        height: auto;
        min-height: 100vh;
    }
    
    .carousel-card {
        padding: 1.5rem;
    }
    
    .profile-section {
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .interactive-resume-main {
        height: calc(100vh - 180px); /* Reduced for mobile header/footer */
    }
    
    .interactive-resume-carousel {
        height: calc(100vh - 180px);
    }
    
    .carousel-card {
        width: 100vw;
        padding: 1rem;
        height: calc(100vh - 180px);
        overflow: visible;
    }
    
    .card-content-grid,
    .card-content-grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        height: 100%;
        overflow: visible;
    }
    
    .left-column,
    .right-column {
        height: auto;
        overflow: visible;
        padding-right: 0;
    }
    
    .interactive-timeline-compact {
        gap: 0.4rem;
        overflow: visible;
    }
    
    .timeline-item-compact {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .cisco-logo {
        height: 20px;
    }
    
    .contact-methods-inline {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .contact-btn-inline {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    .card-content {
        padding: 0.5rem 0;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-navigation {
        bottom: 1rem;
        gap: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .card-counter {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .carousel-indicators {
        gap: 1.5rem;
    }
    
    .indicator-label {
        font-size: 0.7rem;
    }
    
    .job-detail-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: calc(90vh - 100px);
    }
}

@media (max-width: 480px) {
    .carousel-card {
        width: 100vw;
        padding: 0.5rem;
    }
    
    .profile-section {
        gap: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .profile-info h1 {
        font-size: 1.8rem;
    }
    
    .profile-title {
        font-size: 1rem;
    }
    
    .about-section h2,
    .timeline-section h2,
    .skills-section h2,
    .education-section h2,
    .activities-section h2 {
        font-size: 1.5rem;
    }
    
    .about-section p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .timeline-item {
        padding: 1rem;
        gap: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content .company {
        font-size: 0.9rem;
    }
    
    .timeline-content .duration {
        font-size: 0.85rem;
    }
    
    .skill-category,
    .education-item,
    .activity-item {
        padding: 1.5rem;
    }
    
    .skill-category h3,
    .education-item h3,
    .activity-item h4 {
        font-size: 1.1rem;
    }
    
    .carousel-navigation {
        flex-direction: column;
        gap: 0.8rem;
        bottom: 0.5rem;
        padding: 1rem;
    }
    
    .carousel-indicators {
        order: -1;
        gap: 1rem;
    }
    
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .card-counter {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .indicator-label {
        font-size: 0.6rem;
    }
    
    /* Enhanced mobile modal */
    .job-detail-modal {
        padding: 0.5rem;
    }
    
    .job-detail-content {
        width: 100%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1rem;
        max-height: calc(95vh - 80px);
    }
    
    .modal-close {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
}
/* Tou
ch Device Optimizations */
.touch-device .timeline-item.touch-active {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(0.98);
    transition: all 0.1s ease;
}

.touch-device .carousel-arrow.touch-active {
    background: rgba(255, 107, 53, 0.3);
    transform: scale(0.95);
    transition: all 0.1s ease;
}

.touch-device .carousel-dot.touch-active {
    transform: scale(0.9);
    transition: all 0.1s ease;
}

/* Enhanced touch scrolling for mobile */
@supports (-webkit-overflow-scrolling: touch) {
    .carousel-card {
        -webkit-overflow-scrolling: touch;
    }
}

/* Prevent text selection during touch gestures */
.carousel-track {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Touch gesture visual feedback */
.carousel-track.dragging {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

/* Momentum animation keyframes */
@keyframes momentum-left {
    0% { transform: translateX(var(--start-transform, 0%)); }
    30% { transform: translateX(calc(var(--start-transform, 0%) + 2%)); }
    100% { transform: translateX(var(--end-transform, -50%)); }
}

@keyframes momentum-right {
    0% { transform: translateX(var(--start-transform, -50%)); }
    30% { transform: translateX(calc(var(--start-transform, -50%) - 2%)); }
    100% { transform: translateX(var(--end-transform, 0%)); }
}

/* Loading and state transition animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced micro-interactions */
.carousel-card {
    animation: fadeInUp 0.6s ease-out;
}

.timeline-item {
    animation: slideInFromLeft 0.5s ease-out;
    animation-fill-mode: both;
}

.timeline-item:nth-child(even) {
    animation-name: slideInFromRight;
}

.skill-category,
.education-item,
.activity-item {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.skill-category:nth-child(2) {
    animation-delay: 0.1s;
}

.skill-category:nth-child(3) {
    animation-delay: 0.2s;
}

.education-item:nth-child(2) {
    animation-delay: 0.1s;
}

.education-item:nth-child(3) {
    animation-delay: 0.2s;
}

.activity-item:nth-child(2) {
    animation-delay: 0.1s;
}

.activity-item:nth-child(3) {
    animation-delay: 0.2s;
}

/* Loading state for modal content */
.job-detail-modal.loading .modal-body {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Enhanced hover effects for interactive elements */
.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.carousel-arrow:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
    transform: translateY(-2px) scale(1.05);
}

.carousel-dot:hover {
    border-color: #ff6b35;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.4);
}

/* Scroll-triggered animations */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Smooth transitions for all interactive elements */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced focus states for accessibility */
.timeline-item:focus,
.carousel-arrow:focus,
.carousel-dot:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Performance optimizations with cross-browser support */
.carousel-track {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.job-detail-modal {
    will-change: opacity, visibility;
}

.timeline-item,
.skill-category,
.education-item,
.activity-item {
    will-change: transform, opacity;
}

/* Cross-browser compatibility for transforms */
.carousel-track {
    -webkit-transform: translateX(0%);
    -moz-transform: translateX(0%);
    -ms-transform: translateX(0%);
    -o-transform: translateX(0%);
    transform: translateX(0%);
    
    -webkit-transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -ms-transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track.slide-to-second {
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
}

/* Cross-browser support for flexbox */
.carousel-track {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
}

.carousel-card {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 50%;
    -moz-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
}

/* Cross-browser support for grid */
.skills-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1.5rem 1fr 1.5rem 1fr;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.5rem;
    gap: 1.5rem;
}

/* IE11 Grid fallback */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .skills-grid {
        display: -ms-grid;
        -ms-grid-columns: 1fr 1.5rem 1fr 1.5rem 1fr;
    }
    
    .skill-category:nth-child(1) {
        -ms-grid-column: 1;
    }
    
    .skill-category:nth-child(2) {
        -ms-grid-column: 3;
    }
    
    .skill-category:nth-child(3) {
        -ms-grid-column: 5;
    }
    
    .education-grid,
    .activities-grid {
        display: -ms-grid;
        -ms-grid-columns: 1fr;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .carousel-arrow,
    .carousel-dot {
        border-width: 3px;
    }
    
    .timeline-item:focus,
    .carousel-arrow:focus,
    .carousel-dot:focus {
        outline-width: 3px;
    }
}

/* Mobile device specific optimizations */
.mobile-device .carousel-track {
    transition-duration: 0.4s;
}

.mobile-device .timeline-item,
.mobile-device .skill-category,
.mobile-device .education-item,
.mobile-device .activity-item {
    animation-duration: 0.3s;
}

.mobile-device .job-detail-modal {
    transition-duration: 0.2s;
}

/* Tablet device optimizations */
.tablet-device .skills-grid {
    grid-template-columns: repeat(2, 1fr);
}

.tablet-device .education-grid,
.tablet-device .activities-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Landscape orientation optimizations */
@media (orientation: landscape) and (max-height: 600px) {
    .interactive-resume-carousel {
        height: auto;
        min-height: 100vh;
    }
    
    .carousel-card {
        padding: 1rem;
    }
    
    .profile-section {
        flex-direction: row;
        gap: 2rem;
    }
    
    .carousel-navigation {
        bottom: 0.5rem;
    }
}

/* Portrait orientation optimizations */
@media (orientation: portrait) and (max-width: 480px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .timeline-item {
        margin-bottom: 1.5rem;
    }
}

/* Browser-specific fallbacks */

/* Firefox specific fixes */
@-moz-document url-prefix() {
    .carousel-track {
        -moz-transform: translateX(0%);
    }
    
    .carousel-track.slide-to-second {
        -moz-transform: translateX(-50%);
    }
}

/* Safari specific fixes */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .carousel-track {
            -webkit-transform: translateZ(0);
        }
        
        .job-detail-modal {
            -webkit-backdrop-filter: blur(10px);
        }
    }
}

/* Edge specific fixes */
@supports (-ms-ime-align:auto) {
    .carousel-track {
        -ms-transform: translateX(0%);
    }
    
    .carousel-track.slide-to-second {
        -ms-transform: translateX(-50%);
    }
}

/* Fallback styles for browsers without CSS custom properties */
.carousel-track {
    background: #1a1a1a; /* Fallback background */
}

.timeline-item {
    background: rgba(255, 255, 255, 0.05); /* Fallback background */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Fallback border */
}

.skill-category,
.education-item,
.activity-item {
    background: rgba(255, 255, 255, 0.05); /* Fallback background */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Fallback border */
}

/* Progressive enhancement for modern browsers */
@supports (display: grid) {
    .skills-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@supports (transform: translateX(0)) {
    .carousel-track {
        transform: translateX(0%);
    }
    
    .carousel-track.slide-to-second {
        transform: translateX(-50%);
    }
}

@supports (backdrop-filter: blur(10px)) {
    .job-detail-modal {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Print styles */
@media print {
    .carousel-navigation,
    .job-detail-modal {
        display: none !important;
    }
    
    .carousel-track {
        transform: none !important;
        display: block !important;
        width: 100% !important;
    }
    
    .carousel-card {
        width: 100% !important;
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .timeline-item,
    .skill-category,
    .education-item,
    .activity-item {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}