/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;600&display=swap');

/* CSS Variables for Consistent Color Scheme - Updated v2.8 - White backgrounds with dark grey text */
:root {
    --primary-color: #222;
    --secondary-color: #333;
    --accent-color: #444;
    --text-primary: #222;
    --text-secondary: #333;
    --text-light: #555;
    --text-muted: #666;
    --background-light: #fff;
    --background-white: #fff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-primary: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #222 0%, #333 100%);
    --gradient-secondary: linear-gradient(135deg, #333 0%, #444 100%);
    --border-light: rgba(0, 0, 0, 0.1);
}

/* General Styles */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-primary);
    line-height: 1.6;
    /* Updated v1.6 - RESPONSIVE FIXED - Proper sizing across all devices */
    background-image: linear-gradient(45deg, var(--background-light) 25%, transparent 25%), 
                      linear-gradient(-45deg, var(--background-light) 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, var(--background-light) 75%), 
                      linear-gradient(-45deg, transparent 75%, var(--background-light) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    overflow-x: hidden; /* Prevent horizontal scroll */
    width: 100%;
    box-sizing: border-box;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Navigation */
nav {
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
    border-bottom: 3px solid #222;
    /* MOBILE NAV FIXED - v2.8 - White backgrounds with dark grey text */
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: #222;
    border: 2px solid #222;
    border-radius: 5px;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #333;
    border-color: #333;
    color: #fff;
    transform: scale(1.05);
}

nav h1 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    color: #222;
}

nav h1 a {
    text-decoration: none;
    color: #222;
    transition: color 0.3s;
}

nav h1 a:hover {
    color: #555;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    padding: 0.4rem 0.7rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.9rem;
    white-space: nowrap;
}

nav ul li a.active {
    background-color: #d3d3d3 !important;
    color: #222 !important;
    font-weight: 700;
    border: 2px solid #999 !important;
}

.resume-btn {
    background: #222;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
}

/* Content Section */
.content {
    flex: 1;
    padding: 1rem 0;
}

/* Remove padding when content is used with specific page classes */
.content.skills-page,
.content.projects-page,
.content.contact-page {
    padding: 0;
}

/* Projects Page Redesign */
.projects-page {
    padding: 1rem 0;
}

.projects-page h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    text-align: center;
    margin: 0 0 1rem 0;
}

.projects-page p {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center; /* Center text within the card */
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 1.5rem;
    color: #333; /* Changed from blue to a consistent dark color */
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 1rem;
    color: #333; /* Ensure text color matches the rest of the site */
}

/* Skills Page Redesign */
.skills-page {
    padding: 1rem 0;
}

.skills-page h2 {
    font-size: 2.5rem;
    color: #222;
    text-align: center;
    margin-bottom: 1rem;
}

.skills-page p {
    text-align: center;
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center; /* Center text within the card */
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skills-grid .skill-card h3 {
    font-size: 1.5rem;
    color: #333; /* Change text color to match the rest of the site */
    margin-bottom: 0.5rem;
}

.skill-card p {
    font-size: 1rem;
    color: #333; /* Ensure text color matches the rest of the site */
}

/* Contact Page Redesign */
.contact-page .content {
    padding: 1rem 0;
    background-color: #f0f0f0;
}

.contact-page h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.contact-page p {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-highlights .highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-highlights .highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.contact-highlights .highlight-item i {
    font-size: 1.1rem;
}

.contact-page .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-page .contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.contact-page .contact-icon {
    width: 32px;
    height: 32px;
}

.contact-page .contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-page .contact-form label {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-page .contact-form textarea {
    resize: vertical;
}

.contact-page .submit-btn {
    background-color: #222 !important;
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 600;
    border: 2px solid #222;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-page .submit-btn:hover {
    background-color: #555 !important;
    border-color: #555;
}

@media (max-width: 768px) {
    .contact-page .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .contact-page h2,
    .contact-page p {
        text-align: center;
    }

    .contact-page .contact-form {
        width: 90%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .projects-page h2,
    .skills-page h2,
    .contact-page h2 {
        font-size: 2.2rem;
    }

    .hero-text .name-text {
        font-size: 2.2rem;
        color: #222;
        font-weight: 600;
        animation: streamText 10s linear infinite;
    }

    .hero-text .hero-tagline {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .project-card,
    .skill-card {
        margin-bottom: 1rem;
    }

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

/* Resume Page Styling */
.resume-page {
    padding: 2rem 0;
    background-color: #f8f8f8;
}

.resume-page h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.resume-page p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Education Duplicate Page Redesign */
.contact-page .content {
    padding: 1rem 0;
    background-color: #f0f0f0; /* Match the contact page's background */
}

.contact-page h2 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center; /* Center the title */
}

.contact-page p {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
    text-align: center; /* Center the description */
}

.contact-page .contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-page .contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.contact-page .contact-icon {
    width: 32px;
    height: 32px;
}

.contact-page .contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.contact-page .contact-form label {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.contact-page .contact-form textarea {
    resize: vertical;
}

.contact-page .submit-btn {
    background-color: #007BFF;
    color: #fff;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-page .submit-btn:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .contact-page .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-page h2,
    .contact-page p {
        text-align: center;
    }

    .contact-page .contact-form {
        width: 90%;
    }
}

/* Skills Page Redesign */
.skills-page {
    padding: 1rem 0;
}

.skills-page h2 {
    font-size: 2.5rem;
    color: #222;
    text-align: center;
    margin-bottom: 1rem;
}

.skills-page p {
    text-align: center;
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center; /* Center text within the card */
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skills-grid .skill-card h3 {
    font-size: 1.5rem;
    color: #333; /* Change text color to match the rest of the site */
    margin-bottom: 0.5rem;
}

.skill-card p {
    font-size: 1rem;
    color: #333; /* Ensure text color matches the rest of the site */
}

/* Call to Action Section */
.cta-section {
    background: #222;
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: 3rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

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

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #222;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Footer */
footer {
    background-color: #222;
    color: #fff !important;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: auto;
    font-size: 0.875rem;
    font-weight: 400;
}

/* Hero Section */
.hero {
    background-color: #fff;
    padding: 1rem 0;
    text-align: left;
}

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

.hero-text {
    max-width: 50%;
    text-align: left;
}

.hero-text .intro-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #222;
    font-weight: 300;
    margin-bottom: 0.2rem;
}

.hero-text .name-text {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    color: #222;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
    animation: streamText 4s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.hero-text .hero-tagline {
    font-size: 1.2rem;
    font-weight: 500;
    color: #666;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

@keyframes streamText {
    0% { 
        opacity: 0.4; 
        transform: scale(1); 
        color: #222; 
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }
    25% { 
        opacity: 0.8; 
        transform: scale(1.03); 
        color: #000; 
        text-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    }
    50% { 
        opacity: 1; 
        transform: scale(1); 
        color: #222; 
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }
    75% { 
        opacity: 0.8; 
        transform: scale(1.03); 
        color: #000; 
        text-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    }
    100% { 
        opacity: 0.4; 
        transform: scale(1); 
        color: #222; 
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }
}

.hero-text p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.hero-image img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn {
    background-color: #222;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
}

.btn:hover {
    background-color: #333;
    color: #fff;
}

/* Projects Page Additional Styles */
.projects-page {
    padding: 1rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center; /* Center text within the card */
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    font-size: 1.5rem;
    color: #fff; /* Changed to match dark theme */
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 1rem;
    color: #fff; /* Ensure text color matches the rest of the site */
}

/* Project Links */
.project-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #222;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: #444;
    transform: translateY(-2px);
}

.project-link.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.project-link.disabled:hover {
    background-color: #444;
    transform: none;
}

.project-link i {
    font-size: 1rem;
}

/* Project Visual Enhancements */
.project-visual {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gradient-primary);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.project-visual:hover {
    transform: scale(1.02);
}

.chart-placeholder {
    color: var(--background-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.chart-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.chart-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Featured Project Styles */
.featured-project {
    position: relative;
    background: linear-gradient(135deg, #222 0%, #333 100%);
    color: #fff;
    border: 2px solid #444;
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.featured-project:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.featured-project h3 {
    color: #fff !important;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.featured-project p {
    color: #fff !important;
    font-size: 1rem;
    line-height: 1.7;
}

.project-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.featured-project .project-links {
    margin-top: 1.5rem;
}

.featured-project .project-link {
    background-color: #fff;
    color: #222;
    font-weight: 600;
}

.featured-project .project-link:hover {
    background-color: #f0f0f0;
    color: #222;
    transform: translateY(-3px);
}

.featured-project .project-visual {
    background: linear-gradient(135deg, #444 0%, #555 100%);
    border: 1px solid #666;
}

.featured-project .chart-placeholder {
    color: #fff;
}

.featured-project .chart-placeholder i {
    font-size: 2.5rem;
    color: #ff6b35;
}

/* Enhanced Project Cards */
.project-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #eee;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.project-card h3 {
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.project-card p {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Enhanced Skills Cards */
.skill-card {
    background-color: #fff;
    padding: 1.8rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #222;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.skills-grid .skill-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

/* Enhanced Skill Card Elements */
.skill-icon {
    width: 60px;
    height: 60px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.skill-level {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #222;
    border-radius: 20px;
    display: inline-block;
}

.level-label {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Enhanced Navigation */
nav {
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
    backdrop-filter: blur(10px);
}

nav h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: #222;
}

/* Enhanced Buttons */
.btn {
    background: #222;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.resume-btn {
    background: #222;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Enhanced Hero Section */
.hero-text .name-text {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    color: #fff;
    font-weight: 700;
    margin-top: 0;
    animation: streamText 10s linear infinite;
}

/* Enhanced Page Headers */
.projects-page h2,
.skills-page h2,
.contact-page h2 {
    font-size: 2.8rem;
    color: #222;
    text-align: center;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

/* Enhanced Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #222;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.timeline-icon:hover {
    transform: scale(1.1);
}

.timeline-icon i {
    font-size: 1.5rem;
    color: #fff;
}

.timeline-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    flex: 1;
    max-width: 400px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline-content h4 {
    font-size: 1rem;
    color: #222;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-content p {
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

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

/* Education Statistics */
.education-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--background-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-light);
    border: 1px solid var(--border-light);
    transition: transform 0.3s ease;
    min-width: 200px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.2rem;
    color: var(--background-white);
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-info .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-info .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Resume Page Styles */
.resume-section {
    margin-bottom: 3rem;
}

.resume-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.resume-icon {
    width: 80px;
    height: 80px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    transition: transform 0.3s ease;
}

.resume-card:hover .resume-icon {
    transform: scale(1.1);
}

.resume-icon i {
    font-size: 2rem;
    color: white;
}

.resume-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.resume-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.resume-highlights {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

.highlight-item i {
    font-size: 1rem;
}

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

.project-card,
.skill-card {
    animation: fadeInUp 0.6s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }
.project-card:nth-child(7) { animation-delay: 0.7s; }
.project-card:nth-child(8) { animation-delay: 0.8s; }
.project-card:nth-child(9) { animation-delay: 0.9s; }

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }
.skill-card:nth-child(6) { animation-delay: 0.6s; }
.skill-card:nth-child(7) { animation-delay: 0.7s; }
.skill-card:nth-child(8) { animation-delay: 0.8s; }
.skill-card:nth-child(9) { animation-delay: 0.9s; }

/* Enhanced Responsive Design - FAANG Standard - FIXED SIZING */

/* Critical Responsive Fixes - Enhanced */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure all tables are responsive */
table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Ensure all forms are responsive */
form {
    width: 100%;
    max-width: 100%;
}

/* Ensure all inputs and textareas are responsive */
input, textarea, select {
    max-width: 100%;
    box-sizing: border-box;
}

/* Large Tablets and Small Laptops */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        gap: 2rem;
        flex-wrap: wrap;
    }
    
    .hero-text .name-text {
        font-size: 3rem;
        word-wrap: break-word;
        color: #222;
        font-weight: 600;
        animation: streamText 3s ease-in-out infinite;
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .projects-grid,
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        width: 100%;
    }
    
    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat {
        padding: 1rem;
        min-width: 150px;
        text-align: center;
    }
    
    .cta-buttons {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .contact-highlights {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .contact-highlights .highlight-item {
        flex: 1;
        min-width: 200px;
        text-align: center;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    /* Navigation */
    nav h1 {
        font-size: 1.5rem;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
    
               /* Hide desktop navigation */
           nav ul {
               display: none;
               position: absolute;
               top: 100%;
               left: 0;
               right: 0;
               background: #fff;
               flex-direction: column;
               gap: 0;
               box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
               border-top: 1px solid #eee;
               z-index: 1001;
           }
    
    /* Show navigation when mobile menu is active */
    nav ul.mobile-active {
        display: flex;
    }
    
               nav ul li {
               width: 100%;
               border-bottom: 1px solid #eee;
           }
    
    nav ul li:last-child {
        border-bottom: none;
    }
    
               nav ul li a {
               font-size: 1rem;
               padding: 1rem 1.5rem;
               display: block;
               width: 100%;
               text-align: left;
               color: #222;
           }
    
               nav ul li a:hover {
               background-color: #f5f5f5;
           }
    
    .resume-btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
        margin: 0;
        border-radius: 0;
    }
    
    /* Hero Section */
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-image img {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-text .intro-text {
        font-size: 1.2rem;
    }
    
    .hero-text .name-text {
        font-size: 2.5rem;
        margin: 0.5rem 0;
        color: #222;
        font-weight: 600;
        opacity: 1;
    }
    
    .hero-description {
        font-size: 1rem;
        margin: 1rem 0;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .stat {
        padding: 1rem;
        min-width: 200px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Projects & Skills */
    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .project-card,
    .skill-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .project-card h3,
    .skill-card h3 {
        font-size: 1.3rem;
    }
    
    .project-card p,
    .skill-card p {
        font-size: 0.95rem;
    }
    
    /* Page Headers */
    .projects-page h2,
    .skills-page h2,
    .contact-page h2,
    .education-page h2,
    .resume-page h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .projects-page p,
    .skills-page p,
    .contact-page p,
    .education-page p {
        font-size: 1rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Contact Page */
    .contact-page .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .contact-page .contact-info li {
        text-align: center;
        padding: 1rem;
    }
    
    .contact-page .contact-form {
        padding: 1.5rem;
    }
    
    .contact-page .contact-form input,
    .contact-page .contact-form textarea {
        font-size: 1rem;
        padding: 0.8rem;
    }
    
    /* Education Timeline */
    .timeline {
        margin: 2rem 0;
    }
    
    .timeline-item {
        margin-bottom: 2rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.2rem;
    }
    
    .timeline-content h4 {
        font-size: 1rem;
    }
    
    .education-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .stat-card {
        min-width: 250px;
        padding: 1.5rem;
    }
    
    /* Resume Page */
    .resume-card {
        padding: 1.5rem;
    }
    
    .resume-card h3 {
        font-size: 1.3rem;
    }
    
    .resume-card p {
        font-size: 0.95rem;
    }
    
    .resume-highlights {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .highlight-item {
        width: 100%;
        justify-content: center;
    }
}

/* Medium Screens */
@media (max-width: 900px) {
    .container {
        padding: 0 1.5rem;
        width: 100%;
    }
    
    .hero-text .name-text {
        font-size: 2.8rem;
    }
    
    .projects-grid,
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.2rem;
    }
    
    .contact-highlights .highlight-item {
        min-width: 180px;
        font-size: 0.9rem;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    nav .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav h1 {
        font-size: 1.3rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    nav ul li a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .resume-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 2rem 0;
    }
    
    .hero-image img {
        max-width: 220px;
    }
    
    .hero-text .intro-text {
        font-size: 1rem;
    }
    
    .hero-text .name-text {
        font-size: 2rem;
        color: #222;
        font-weight: 600;
        animation: streamText 3s ease-in-out infinite;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .hero-stats {
        gap: 0.8rem;
    }
    
    .stat {
        padding: 0.8rem;
        min-width: 150px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Projects & Skills */
    .project-card,
    .skill-card {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .project-card h3,
    .skill-card h3 {
        font-size: 1.1rem;
    }
    
    .project-card p,
    .skill-card p {
        font-size: 0.85rem;
    }
    
    /* Page Headers */
    .projects-page h2,
    .skills-page h2,
    .contact-page h2,
    .education-page h2,
    .resume-page h2 {
        font-size: 1.6rem;
    }
    
    .projects-page p,
    .skills-page p,
    .contact-page p,
    .education-page p {
        font-size: 0.9rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 2rem 0;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Contact Page */
    .contact-page .contact-info li {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .contact-page .contact-form {
        padding: 1rem;
    }
    
    .contact-page .contact-form input,
    .contact-page .contact-form textarea {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
    
    /* Education Timeline */
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline-content h4 {
        font-size: 0.9rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
    
    .stat-card {
        min-width: 200px;
        padding: 1rem;
    }
    
    /* Resume Page */
    .resume-card {
        padding: 1rem;
    }
    
    .resume-card h3 {
        font-size: 1.1rem;
    }
    
    .resume-card p {
        font-size: 0.85rem;
    }
    
    .highlight-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Footer */
    footer {
        padding: 1rem 0;
        font-size: 0.8rem;
    }
}

/* Small Mobile */
@media (max-width: 375px) {
    .container {
        padding: 0 0.8rem;
        width: 100%;
    }
    
    .hero-text .name-text {
        font-size: 1.9rem;
        line-height: 1.2;
        color: #222;
        font-weight: 600;
        animation: streamText 3s ease-in-out infinite;
    }
    
    .hero-description {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .stat {
        min-width: 130px;
        padding: 0.7rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .project-card,
    .skill-card {
        padding: 0.8rem;
        margin: 0.5rem 0;
    }
    
    .project-card h3,
    .skill-card h3 {
        font-size: 1.1rem;
    }
    
    .project-card p,
    .skill-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .contact-highlights .highlight-item {
        min-width: 100%;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 320px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-text .name-text {
        font-size: 1.8rem;
        color: #222;
        font-weight: 600;
        animation: streamText 3s ease-in-out infinite;
    }
    
    .hero-image img {
        max-width: 200px;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .stat {
        min-width: 120px;
        padding: 0.6rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .project-card,
    .skill-card {
        padding: 0.8rem;
    }
    
    .project-card h3,
    .skill-card h3 {
        font-size: 1rem;
    }
    
    .project-card p,
    .skill-card p {
        font-size: 0.8rem;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero-content {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .hero-image img {
        max-width: 200px;
    }
    
    .hero-text .name-text {
        font-size: 2.2rem;
        color: #222;
        font-weight: 600;
        animation: streamText 10s linear infinite;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }
    
    .stat {
        padding: 0.8rem;
        min-width: 120px;
    }
    
    .projects-grid,
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }
.reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal:nth-child(8) { transition-delay: 0.56s; }
.reveal:nth-child(9) { transition-delay: 0.64s; }

/* Page entrance */
.page-enter {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.page-enter.page-enter-active {
    opacity: 1;
    transform: translateY(0);
}

/* GitHub icon link in nav */
.github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem !important;
    padding: 0.4rem 0.5rem !important;
    color: #222 !important;
    transition: transform 0.3s ease, color 0.3s ease;
}

.github-link:hover {
    transform: scale(1.15);
    color: #555 !important;
}
