/* Base Styles */
:root {
    --primary-color: #3a6ea5;  /* More accessible blue, works well for colorblind users */
    --secondary-color: #5d9c7a; /* Muted green that passes contrast checks */
    --dark-color: #2d3142;    /* Softer dark blue-gray instead of harsh black */
    --light-color: #f0f2f5;   /* Slightly off-white for reduced eye strain */
    --bg-color: #f5f7fa;      /* Background with slight blue tint to reduce brightness */
    --card-bg: #ffffff;       /* Card background color */
    --text-primary: #3c4353;  /* Main text color, slightly softer than black */
    --text-secondary: #5c6273; /* Secondary text color for better hierarchy */
    --success-color: #4d9772; /* More muted success green */
    --error-color: #b55a55;   /* Softer error red */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 60px 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

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

.highlight {
    color: var(--primary-color);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    text-align: center;
}

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

.primary-btn:hover {
    background: #1e3c6e;
    transform: translateY(-3px);
}

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

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

.small-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    box-shadow: var(--box-shadow);
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
}

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

.burger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 10px;
    z-index: 1000;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(245, 247, 250, 0.95), rgba(240, 242, 245, 0.85)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 70px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    margin-top: 20px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background-color: #eee;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--box-shadow);
}

.image-placeholder i {
    font-size: 80px;
    color: #ccc;
    margin-bottom: 10px;
}

.image-placeholder p {
    color: #999;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skill-category h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
}

.skill {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.skill i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.skill-bar {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* Skills and Project Tags Formatting */
/* Skill tag styling moved to skills.css */

/* Project tag styles moved to projects.css */

/* Small screen styles moved to their respective CSS files */

/* Projects Section */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(58, 110, 165, 0.08);
    border: 1px solid rgba(58, 110, 165, 0.12);
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(58, 110, 165, 0.15);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Legacy projects grid - DISABLED for horizontal card layout */
/* See projects.css for current grid layout */
.projects-grid-legacy-disabled {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-items: center;
    align-items: stretch;
}

@media screen and (max-width: 768px) {
    .projects-grid-legacy-disabled {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media screen and (max-width: 576px) {
    .projects-grid-legacy-disabled {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        max-width: 100%;
    }
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 430px; /* Ensure consistent minimum height */
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.03);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.85;
    transition: transform 0.5s ease, opacity 0.5s ease;
    display: block;
    max-height: 100%;
}

/* Ensure GitHub Pages images maintain correct proportions */
img.project-bg-img {
    min-height: 100%;
}

/* Special handling for GIF images to ensure proper display */
.project-bg-img[src$=".gif"] {
    object-fit: cover;
    background-color: #f9f9f9;
}

.project-card:hover .project-bg-img {
    transform: scale(1.05);
    opacity: 0.7;
}

.project-info {
    padding: 20px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Project tags styling moved to projects.css for consistency */

/* Project links */
.project-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
}

.project-links .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #e1e4e8;
    transition: all 0.3s ease;
    width: auto;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
}

.project-links .btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.project-links .btn i {
    font-size: 1.1rem;
}

/* Updated Project Category Badge Styles */
.project-category-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
}

.project-card:hover .project-category-badge {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(42, 82, 152, 0.4);
}

/* Add subtle background contrast between sections */
.projects {
    background-color: var(--bg-color);
}

.skills {
    background-color: #ffffff;
}

.about {
    background-color: var(--bg-color);
}

.resume {
    background-color: #ffffff;
}

/* Reviews section background handled in reviews.css */

.contact {
    background-color: var(--bg-color);
}

/* Contact Section Styling */
.contact {
    background-color: #f9f9fa;
}

.contact-content.centered {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-info-centered {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 25px;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 5px;
}

.contact-item {
    min-width: auto;
    max-width: none;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(42, 82, 152, 0.1);
}

.contact-item i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    background-color: rgba(42, 82, 152, 0.08);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(42, 82, 152, 0.1);
}

.contact-item:hover i {
    transform: scale(1.1);
    background-color: rgba(42, 82, 152, 0.12);
}

.contact-item h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
}

.contact-item p, .contact-item a {
    color: #555;
    font-size: 1rem;
    word-break: break-word;
    line-height: 1.5;
}

.contact-item a {
    text-decoration: none;
    transition: all 0.25s ease;
    position: relative;
    border-bottom: 1px solid transparent;
}

.contact-item a:hover {
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

@media screen and (max-width: 992px) {
    .contact-info-centered {
        grid-gap: 15px;
    }
    
    .contact-item {
        padding: 20px;
    }
}

@media screen and (max-width: 768px) {
    .contact-info-centered {
        grid-template-columns: 1fr;
    }
    
    .contact-item i {
        font-size: 2rem;
        margin-bottom: 12px;
    }
}

@media screen and (max-width: 480px) {
    .contact-item {
        padding: 15px;
    }
    
    .contact-item i {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .contact-item h3 {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .contact-item p, .contact-item a {
        font-size: 0.9rem;
    }
}

/* Enhanced Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
}

@media screen and (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        grid-row: 1;
        justify-content: center;
    }
    
    .about-text {
        grid-row: 2;
    }
    
    .project-card {
        min-height: 430px; /* Match the global value for consistency */
    }
    
    .project-info h3 {
        font-size: 1.3rem;
    }
    
    .projects-grid-legacy-disabled {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        justify-content: center;
    }
}

/* View All Projects Button */
.projects-view-more {
    margin-top: 50px;
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.projects-view-more .btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(42, 82, 152, 0.2);
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.projects-view-more .btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.projects-view-more .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(42, 82, 152, 0.3);
}

.projects-view-more .btn:hover i {
    transform: rotate(15deg);
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .burger {
        display: block;
        cursor: pointer;
    }
    
    .nav-links {
        position: fixed;
        right: 0;
        top: 70px;
        background-color: white;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: translateY(-150%);
        transition: transform 0.5s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
    }
    
    .nav-links li {
        margin: 12px 0;
    }
    
    .nav-active {
        transform: translateY(0);
    }
    
    /* Project card improvements for mobile - responsive project tag styles moved to projects.css */
    
    .project-info {
        padding: 15px;
    }
    
    .project-card {
        margin-bottom: 30px;
    }
}

/* Animation Classes */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Footer Styling */
footer {
    background-color: #2a2d36;
    color: #fff;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright p {
    font-size: 1rem;
    color: #b3b3b3;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #b3b3b3;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #ffffff;
    transform: translateY(-3px);
}

/* Project title was removed to avoid redundancy */

@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .copyright {
        margin-bottom: 15px;
    }
}

/* Technology-specific tag styles moved to projects.css */
