/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--current-text-color, #333);
    background: var(--current-bg-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    min-height: 100vh;
    transition: all 0.3s ease;
}

/* Navigation */
nav {
    background: var(--current-nav-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-container h1 a {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: bold;
}

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

.nav-container ul li a {
    text-decoration: none;
    color: var(--current-text-color, #333);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-container ul li a:hover {
    color: var(--accent-color);
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 0;
}

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

/* Hero section */
.hero {
    text-align: center;
    background: var(--current-card-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--current-text-color, #333);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    color: var(--current-text-secondary, #666);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem !important;
    color: var(--current-text-secondary, #888) !important;
    margin-bottom: 2rem !important;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center; /* Center button text */
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    border: 2px solid #667eea;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Features section */
.features, .skills-section, .project-category, .about-section, .contact-section, .resume-section {
    background: var(--current-card-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.features h2, .skills-section h2, .project-category h2, .about-section h1, .contact-section h1, .resume-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--current-text-color, #333);
}

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

.feature-card, .tech-category, .project-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover, .tech-category:hover, .project-card:hover {
    transform: translateY(-5px);
}

.feature-card h3, .tech-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--current-text-color, #333);
}

.feature-card p, .tech-category p {
    color: var(--current-text-secondary, #666);
}

/* Tech tags */
.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.tech-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Project cards */
.project-card {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--current-text-color, #333);
}

.project-content p {
    flex: 1;
    margin-bottom: 1rem;
    color: var(--current-text-secondary, #666);
}

.projects-header {
    text-align: center;
    background: var(--current-card-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.projects-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--current-text-color, #333);
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-header p {
    font-size: 1.3rem;
    color: var(--current-text-secondary, #666);
}

/* About page styles */
.about-profile {
    text-align: center;
    margin: 2rem 0 3rem 0;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(102, 126, 234, 0.2);
}

.about-content, .experience-section, .achievements-section {
    margin-bottom: 3rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--current-text-secondary, #666);
}

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

.experience-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.company-logo {
    height: 80px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.experience-card h3 {
    margin-bottom: 0.5rem;
    color: var(--current-text-color, #333);
}

.role {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 1rem;
}

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

.achievement-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.achievement-item h3 {
    margin-bottom: 1rem;
    color: var(--current-text-color, #333);
}

/* Contact page styles */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-method h3 {
    margin-bottom: 0.5rem;
    color: var(--current-text-color, #333);
}

.contact-method a {
    color: #667eea;
    text-decoration: none;
}

.contact-method a:hover {
    text-decoration: underline;
}

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--current-text-color, #333);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-response {
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Resume page styles */
.resume-header {
    text-align: center;
    margin-bottom: 3rem;
}

.resume-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.resume-section-content {
    margin-bottom: 3rem;
}

.resume-section-content h2 {
    margin-bottom: 1.5rem;
    color: var(--current-text-color, #333);
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.education-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.education-item h3 {
    margin-bottom: 0.5rem;
    color: var(--current-text-color, #333);
}

.institution {
    font-weight: 600;
    color: #667eea;
}

.year {
    color: var(--current-text-secondary, #888);
    font-style: italic;
}

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

.skill-category {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--current-text-color, #333);
}

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

.project-highlight {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-highlight h3 {
    margin-bottom: 1rem;
    color: var(--current-text-color, #333);
}

/* Project detail styles */
.project-detail {
    background: var(--current-card-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: center;
}

.project-image-large {
    width: 100%;
    max-width: 400px;
    text-align: center;
    margin: 0 auto;
}

.project-image-large img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--current-text-color, #333);
}

.project-type {
    font-size: 1.1rem;
    color: #667eea;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1.2rem;
    color: var(--current-text-secondary, #666);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-details-placeholder {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-details-placeholder h2 {
    margin-bottom: 1.5rem;
    color: var(--current-text-color, #333);
}

.project-details-placeholder ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.project-details-placeholder li {
    margin-bottom: 0.5rem;
    color: var(--current-text-secondary, #666);
}

/* API section */
.api-section {
    background: var(--current-card-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.api-examples {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.api-endpoint {
    padding: 1rem;
    background: rgba(118, 75, 162, 0.1);
    border-radius: 10px;
    border-left: 4px solid #764ba2;
    flex: 1;
    min-width: 250px;
}

.api-endpoint code {
    font-weight: bold;
    color: #764ba2;
    font-size: 1.1rem;
}

.api-result {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.api-result h3 {
    color: var(--current-text-color, #333);
    margin-bottom: 1rem;
}

.api-result pre {
    background: rgba(52, 73, 94, 0.8);
    color: var(--text-color-dark);
    border-color: #555;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #e9ecef;
}

/* Footer */
footer {
    background: var(--current-nav-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    color: var(--current-text-secondary, #666);
}

/* Resume page additional styles */
.contact-info {
    text-align: center;
    margin: 1rem 0 2rem 0;
}

.contact-info p {
    margin: 0.5rem 0;
    color: var(--current-text-secondary, #666);
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.overview-list {
    list-style-type: disc;
    padding-left: 2rem;
    margin: 1rem 0;
}

.overview-list li {
    margin-bottom: 0.8rem;
    color: var(--current-text-secondary, #666);
    line-height: 1.6;
}

.experience-item {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.experience-header h3 {
    color: var(--current-text-color, #333);
    font-size: 1.3rem;
    margin: 0;
}

.experience-meta {
    text-align: right;
}

.experience-meta .company {
    color: #667eea;
    font-weight: 600;
    margin: 0;
}

.experience-meta .dates {
    color: var(--current-text-secondary, #888);
    font-style: italic;
    margin: 0;
    font-size: 0.9rem;
}

.role-description {
    color: var(--current-text-secondary, #666);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.achievements {
    list-style-type: disc;
    padding-left: 2rem;
    margin: 0;
}

.achievements li {
    margin-bottom: 0.8rem;
    color: var(--current-text-secondary, #666);
    line-height: 1.6;
}

.achievements li strong {
    color: var(--current-text-color, #333);
}

/* Dark mode variables */
:root {
    --bg-gradient-light: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-gradient-dark: linear-gradient(135deg, #4a3c9a 0%, #5a4286 100%);
    --card-bg-light: rgba(255, 255, 255, 0.95);
    --card-bg-dark: rgba(45, 52, 54, 0.95);
    --text-color-light: #333;
    --text-color-dark: #f8f9fa;
    --text-secondary-light: #666;
    --text-secondary-dark: #d1d5db;
    --nav-bg-light: rgba(255, 255, 255, 0.95);
    --nav-bg-dark: rgba(45, 52, 54, 0.95);
    --accent-color: #667eea;
}

/* Theme toggle styles */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.theme-toggle {
    position: relative;
}

.theme-switch {
    display: none;
}

.theme-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60px;
    height: 30px;
    background: var(--accent-color);
    border-radius: 15px;
    padding: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.theme-label::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.theme-switch:checked + .theme-label::before {
    transform: translateX(30px);
}

.theme-icon {
    font-size: 16px;
    z-index: 2;
    position: relative;
}

.theme-icon.sun {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.theme-icon.moon {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.theme-switch:checked + .theme-label .theme-icon.sun {
    opacity: 0.3;
}

.theme-switch:checked + .theme-label .theme-icon.moon {
    opacity: 1;
}

/* Dark mode styles */
[data-theme="dark"] {
    --current-bg-gradient: var(--bg-gradient-dark);
    --current-card-bg: var(--card-bg-dark);
    --current-text-color: var(--text-color-dark);
    --current-text-secondary: var(--text-secondary-dark);
    --current-nav-bg: var(--nav-bg-dark);
}

[data-theme="light"] {
    --current-bg-gradient: var(--bg-gradient-light);
    --current-card-bg: var(--card-bg-light);
    --current-text-color: var(--text-color-light);
    --current-text-secondary: var(--text-secondary-light);
    --current-nav-bg: var(--nav-bg-light);
}

/* Update existing styles to use CSS variables */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--current-text-color, #333);
    background: var(--current-bg-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    min-height: 100vh;
    transition: all 0.3s ease;
}

nav {
    background: var(--current-nav-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container h1 a {
    text-decoration: none;
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-container ul li a {
    text-decoration: none;
    color: var(--current-text-color, #333);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-container ul li a:hover {
    color: var(--accent-color);
}

/* Update card backgrounds */
.hero, 
.features, 
.skills-section, 
project-category, 
.about-section, 
.contact-section, 
.resume-section,
.projects-header,
.project-detail,
.api-section {
    background: var(--current-card-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

/* Update text colors */
h1, h2, h3, h4, h5, h6 {
    color: var(--current-text-color, #333);
}

p {
    color: var(--current-text-secondary, #666);
}

.feature-card h3, 
.tech-category h3,
.project-content h3,
.experience-card h3,
.achievement-item h3 {
    color: var(--current-text-color, #333);
}

.feature-card p, 
.tech-category p,
.project-content p {
    color: var(--current-text-secondary, #666);
}

/* Update footer */
footer {
    background: var(--current-nav-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    color: var(--current-text-secondary, #666);
}

/* Dark mode specific adjustments */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .tech-category,
[data-theme="dark"] .project-card,
[data-theme="dark"] .experience-card,
[data-theme="dark"] .achievement-item,
[data-theme="dark"] .contact-method,
[data-theme="dark"] .education-item,
[data-theme="dark"] .project-highlight,
[data-theme="dark"] .skill-category,
[data-theme="dark"] .experience-item {
    background: rgba(52, 73, 94, 0.7);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: rgba(52, 73, 94, 0.8);
    border-color: #555;
    color: var(--text-color-dark);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--accent-color);
}

[data-theme="dark"] .api-result pre {
    background: rgba(52, 73, 94, 0.8);
    color: var(--text-color-dark);
    border-color: #555;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-container ul {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero, .features, .about-section, .contact-section, .resume-section, .project-detail {
        padding: 2rem 1rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .feature-grid, .tech-grid, .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .project-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .api-examples {
        flex-direction: column;
    }
}

.grid-item {
    position: relative;
    background-color: var(--color1);
    border-radius: 8px;
    width: 175px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 10px 0;
    padding: 0;
    text-decoration: none;
    color: inherit;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-item h3 {
    margin-top: 10px;
    font-size: 14px;
    color: white;
}

.project-description {
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 8px;
    display: none;
    z-index: 1;
    position: absolute;    
}

.grid-item:hover .project-description {
    display: block;
}

.hidden-overflow {
    overflow: hidden;
}

.project-title {
    text-align: center;
    width: 100%;
    color: #56709e; /* Set text color for the project title */
}

.project-subtitle {
    text-align: center;
    width: 100%;
    color: #56709e; /* Set text color for the project title */
}

.project-writeup {
    margin: 20px auto;
    width: 75%;
    padding: 20px;
    background-color: var(--color3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Optional: Adjust the space between images */
}

.project-writeup img {
    display: block; /* Ensure the image is treated as a block element */
    margin: 0 auto; /* Center the image horizontally within the .project_writeup */
    max-width: 100%;
    height: auto;
    justify-content: center;
}

.project-writeup figure {
    justify-content: center;
}

.project-writeup figcaption {
    text-align: center; 
    font-style: italic;
    margin-top: 2px;
    font-size: 15px;
}

.project-writeup p {
    line-height: 1.6;
    margin-bottom: 15px;
    justify-content: flex-start;
}

.small-img {
    width: 20%;
    height: 20%;
    object-fit: cover;
    display: block;
    margin: 1rem auto;
    text-align: center;
}

.med-img {
    width: 35%;
    height: 35%;
    object-fit: cover;
    display: block;
    margin: 1rem auto;
    text-align: center;
}

.lg-img {
    width: 100%;
    height: 45%;
    object-fit: cover;
    display: block;
    margin: 1rem auto;
    text-align: center;
}

.link-div {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.link {
    color: var(--color4);
    text-decoration: none;
    text-align: center;
    transition: color 0.3s ease-in-out;
}

.link:hover {
    color: white;
}

.contact-text {
    font-size: 16px;
    line-height: 1.5;
}

/* Style the External Contacts section */
.contact-list {
    list-style: none;
    padding: 0;
    display: flex; /* Use flexbox to align items horizontally */
    justify-content: center; /* Center the list items */
}

.contact-list-item {
    margin-right: 20px; /* Add some spacing between list items */
}

.contact-list-item:last-child {
    margin-right: 0; /* Remove margin from the last list item */
}

.contact-list-item a {
    color: var(--current-text-color, #333);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.contact-list-item a:hover {
    color: #56709e;
}

/* Style the Send a message section */
.message-form {
    margin-top: 20px;
    text-align: center;
}

.message-text {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--color1);
    border-radius: 5px;
    resize: none;
}

.message-button {
    background-color: var(--color1);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    text-align: center;
}

.message-button:hover {
    background-color: var(--color4);
}

.resume-div {
    margin: 20px auto;
    width: 75%;
    padding: 20px;
    background-color: var(--color3);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    height: 100vh;
}

.resume-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.connect-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.home-img-container {
    width: 100%;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.home-header {
    width: 100%;
    height: 33vh;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color4)
}

.home-img-container img {
    max-width: 100%;
    max-height: 100%;
}

.welcome-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.welcome-header {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color4)
}

.welcome-text {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color4)
}

.home-img-bundle {
    width: 100%;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.home-img-bundle img {
    /* width: 75px; */
    height: 75px;
    object-fit: cover;
    margin: 10px;
}

.home-company-bundle {
    width: 100%;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.home-company-bundle img {
    /* width: 75px; */
    height: 150px;
    object-fit: cover;
    margin: 10px;
}

/* Center all images in project content */
.project-content img,
.project-details-placeholder img {
    display: block;
    margin: 1rem auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-content figure,
.project-details-placeholder figure {
    text-align: center;
    margin: 1.5rem auto;
}

.project-content figure img,
.project-details-placeholder figure img {
    margin: 0 auto 0.5rem auto;
}

.project-content figcaption,
.project-details-placeholder figcaption {
    font-style: italic;
    color: var(--current-text-secondary, #666);
    margin-top: 0.5rem;
}
