/* Global Styles */
:root {
    --primary-color: #2c5282;  /* Deep blue - professional and trustworthy */
    --secondary-color: #4299e1;  /* Lighter blue - for hover states */
    --text-color: #2d3748;  /* Dark gray - easy on the eyes */
    --light-text: #718096;  /* Medium gray - for secondary text */
    --background: #ffffff;
    --section-bg: #f7fafc;  /* Very light blue-gray - subtle background */
    --accent-color: #48bb78;  /* Green accent - for highlights */
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --shadow-color: rgba(0, 0, 0, 0.05);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #4299e1;
    --secondary-color: #63b3ed;
    --text-color: #e2e8f0;
    --light-text: #a0aec0;
    --background: #1a202c;
    --section-bg: #2d3748;
    --accent-color: #48bb78;
    --card-bg: #2d3748;
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.2);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 1.2rem;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--section-bg) 0%, var(--background) 100%);
    padding: 6rem 2rem 2rem; /* Increased top padding to account for navbar */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="%232c5282" fill-opacity="0.05"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 2rem;
}

.hero-text {
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.8s ease 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
    margin-bottom: 0.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 0.5rem;
    animation: fadeInUp 0.8s ease 0.8s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-stat-item {
    text-align: center;
}

.hero-stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.hero-stat-item .stat-label {
    color: var(--light-text);
    font-size: 1rem;
}

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

/* Update responsive styles for hero section */
@media (max-width: 768px) {
    .hero {
        padding: 5rem 1rem 1rem; /* Adjusted padding for mobile */
    }
    
    .hero-content {
        padding-top: 1rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }

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

    .hero-description {
        font-size: 1.1rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

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

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

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

.cta-button i {
    margin-right: 0.5rem;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--section-bg);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

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

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

.about-intro {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow-color);
    margin-bottom: 2rem;
}

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

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

.skill-category {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

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

.skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.skill-category h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
    border-radius: 2px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skills-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.95rem;
    padding: 0.5rem;
    border-radius: 6px;
    background: var(--section-bg);
    transition: all 0.3s ease;
}

.skills-list li:hover {
    background: var(--primary-color);
    color: white;
}

.skills-list li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
}

.profile-image {
    width: 100%;
    max-width: 180px;
    margin: -2rem auto 2rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-5px);
}

.profile-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
}

.detail-item i {
    font-size: 2rem;
    color: var(--accent-color);
    align-self: center;
}

.detail-content h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.detail-content p {
    color: var(--light-text);
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

/* Update responsive styles for about section */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text {
        max-width: 100%;
    }

    .profile-image {
        max-width: 200px;
    }
}

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

    .about-intro {
        padding: 1.5rem;
    }

    .detail-item {
        padding: 1.2rem;
    }

    .detail-item i {
        font-size: 1.5rem;
    }

    .profile-image {
        max-width: 160px;
        margin: -1rem auto 1.5rem;
    }
    
    .profile-image img {
        height: 160px;
    }
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.projects h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.project-card.hidden {
    opacity: 0;
    pointer-events: none;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px; /* Fixed height for all project images */
    background: var(--section-bg); /* Fallback background color */
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This ensures images cover the area without distortion */
    transition: transform 0.3s ease;
}

/* Add a loading state for images */
.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--section-bg) 0%, var(--card-bg) 50%, var(--section-bg) 100%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.project-image img.loaded + .project-image::before {
    display: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

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

.project-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-preview {
    opacity: 1;
}

.preview-button {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.project-card:hover .preview-button {
    transform: translateY(0);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
}

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

.project-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

.project-link i {
    margin-right: 0.5rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--section-bg);
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

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

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

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

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

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
    border-color: var(--secondary-color);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.1);
}

.submit-button {
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

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

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

    .contact-content {
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* Add a subtle animation to section headings */
.about h2::after,
.projects h2::after,
.contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Add a professional scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--section-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Resume Link Styles */
.nav-links li a i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

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

/* Project Tags */
.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Python */
.project-tag[data-tool="Python"] {
    background: rgba(49, 130, 189, 0.1);
    color: #2b5b84;
}

/* SQL */
.project-tag[data-tool="SQL"] {
    background: rgba(0, 112, 173, 0.1);
    color: #006ead;
}

/* R */
.project-tag[data-tool="R"] {
    background: rgba(25, 118, 210, 0.1);
    color: #1976d2;
}

/* Tableau */
.project-tag[data-tool="Tableau"] {
    background: rgba(255, 87, 34, 0.1);
    color: #ff5722;
}

/* Power BI */
.project-tag[data-tool="Power BI"] {
    background: rgba(255, 185, 0, 0.1);
    color: #ffb900;
}

/* Excel */
.project-tag[data-tool="Excel"] {
    background: rgba(16, 124, 16, 0.1);
    color: #107c10;
}

/* Machine Learning */
.project-tag[data-tool="Machine Learning"] {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

/* Additional ML tools */
.project-tag[data-tool="Scikit-learn"] {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

.project-tag[data-tool="TensorFlow"] {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
}

/* Data Analytics Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

/* Remove the old graph lines background */
body::after {
    display: none;
}

/* Add a subtle overlay to ensure content readability */
body {
    background: var(--background);
    color: var(--text-color);
}

/* Project Statistics */
.project-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

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