/* Import variables */
@import 'variables.css';
@import 'project.css';
@import 'blog-post.css';
@import 'mobile.css';

/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Enable smooth scrolling behavior */
html {
    scroll-behavior: smooth;
}

/* Base body styles */
body {
    font-family: 'SF Pro Display', sans-serif;
    line-height: 1.6;
    background-color: var(--primary-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-align: left;
}

/* ==========================================================================
   Header and Navigation Components
   Controls the top navigation bar and language switcher
   ========================================================================== */
header {
    font-family: 'SF Pro Display', sans-serif;
    padding: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

nav {
    width: 100%;
    max-width: 1200px;
    position: relative;  /* This is important for absolute positioning */
}

.nav-content {
    display: flex;
    justify-content: center;
}

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

nav a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
}

/* Language Switcher */
.language-switcher {
    position: absolute;
    right: 2rem;
    top: 50%;  /* Center vertically */
    transform: translateY(-50%);  /* Perfect vertical centering */
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;  /* Consistent spacing between elements */
}

.language-switcher span,
.language-switcher a {
    padding: 0;  /* Remove any padding */
    margin: 0;   /* Remove any margin */
}

.language-switcher .separator {
    margin: 0 0.25rem;  /* Add small space around the separator */
}

/* Language switcher link styles */
.language-switcher a {
    color: var(--text-color);
    text-decoration: none;
}

/* Active state for navigation and language items */
.language-switcher .active,
.active {
    font-weight: bold;
    color: var(--accent-color);
}

/* ==========================================================================
   Main Content Layout
   Defines the structure of the main content area
   ========================================================================== */
main {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

/* Base card style that will be used across all sections */
.card-section {
    background-color: var(--secondary-color);
    border-radius: 16px;
    padding: 3rem;
    margin: 3rem auto;
    box-shadow: var(--card-shadow);
    text-align: left;
}

.card-section h2 {
    text-align: left;
    margin-bottom: 3rem;
}

/* Inner cards */
.benefit-card,
.project-card,
.company-card,
.contact-card {
    background-color: var(--text-secondary);  /* White background */
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);  /* Lighter shadow for inner cards */
    text-align: left;
}

/* Company cards specific */
.company-card {
    flex: 0 0 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    background-color: var(--secondary-color);  /* White background */
}

/* Skills cards */
.skill-list {
    background-color: var(--secondary-color);  /* White background */
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

/* ==========================================================================
   Home Page Components
   Styles specific to the home page layout and elements
   ========================================================================== */
/* Split section layout for hero area */
#split-section {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
    margin: 0;
}

.intro-section {
    margin: 3rem auto;
}

/* Profile image container */
.container-small {
    flex: 1;
    padding: 1rem;
    overflow: hidden;
}

/* Profile image styling */
.container-small img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 100%;
}

/* Text content container */
.container-large {
    flex: 2;
    padding: 1rem;
    text-align: left;  /* Changed from justify to left */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.container-large h1,
.container-large h2,
.container-large p {
    text-align: left;  /* Explicitly set all text to left alignment */
    margin: 0;  /* Remove default margins */
}

/* Typography spacing */
.container-large h1 {
    margin-bottom: 0.2rem;
}

.container-large h2 {
    margin-bottom: 0.3rem;
}

.container-large p {
    line-height: 1.6;
}

/* Inside website body, second section: Projects Preview */
#projects {
    background-color: var(--secondary-color);  /* White background */
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var (--card-shadow);
    margin: 2rem auto;
    text-align: center;
}

.project-grid {
    display: grid;
    flex-direction: column;
    justify-content: space-between;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.project-card {
    background-color: var(--secondary-color);  /* Changed from primary-color to white */
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
}

.project-card img {
    width: 100%;    
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
}

.project-card h3 {
    margin: 1rem 0;
}

/* Inside website body, third section: Projects Preview */
#contact {
    background-color: var(--secondary-color);  /* White background */
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    margin: 2rem auto;
    text-align: left;
}

.contact-container {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-form {
    flex: 2;
    text-align: left;
}

.form-group {
    margin-bottom: 0.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--text-color);
    border-radius: 4px;
    background: transparent;
    color: var(--text-color);
    font-family: 'SF Pro Display', sans-serif;
}
.for-group textarea {
    min-height: 150px;
}

.social-links {
    flex: 1;
    text-align: left;
}
.social-links a {
    display: block;
    margin: 1rem 0;
    color: var(--text-color);
    text-decoration: none;
}

.social-links a:hover {
    color: var (--accent-color);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 1rem;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    color: var(--accent-light);
}

.cta-button::after {
    content: '→';
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.cta-button:hover::after {
    transform: translateX(4px);
}

/* ==========================================================================
   Footer Styles
   Styles for the footer section of the website
   ========================================================================== */
/* Footer of the website */
footer {
    font-family: 'SF Pro Display', sans-serif;
    color: var(--text-color);
    text-align: center;
    padding: 1rem;
    width: 100%;
    position: relative;
    text-align: center;
}

/* Containers */
.hard-skills-container {
    background-color: var(--primary-color);
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0;
}
  
  .hard-skill-card {
    flex: 1 1 500px;
    background-color: var(--secondary-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
  }
  
  .hard-skill-category {
    display: flex;
    justify-content: space-between;
    align-items: left;
    margin-bottom: 1.5rem;
  }
  
  .hard-skill-category h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
  }
  
  .progress-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
  }
  
  /* Individual skill items */
  .hard-skill-item {
    margin-bottom: 1rem;
  }
  
  .hard-skill-header {
    display: flex;
    align-items: left;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
  }
  
  .hard-skill-icon i {
    font-size: 1rem;
    color: var(--text-secondary);
  }
  
  .hard-skill-name {
    font-size: 1.rem;
    color: var(--text-color);
  }
  
  .progress-bar-container {
    height: 20px;  
    background-color: var(--secondary-color);  
    border-radius: 8px;  
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1); 
  }
  
  .progress-bar {
    height: 100%;
    background-color: var(--accent-color); 
    border-radius: 8px;
    position: relative;
  }
  
  .progress-percentage {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #333;
  }


/* ==========================================================================
   About Page Components
   Styles for about page sections and elements
   ========================================================================== */
#about {
    max-width: 1200px;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

/* Individual skill category box */
.skill-category {
    padding: 1rem;
    border-radius: 4px;
}

/* Skill category headings */
.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Skill list container */
.skill-category ul {
    list-style: none;
    padding: 0;
}

/* Individual skill items */
.skill-category li {
    margin: 0.5rem 0;
}

/* ==========================================================================
   Companies Section
   Displays company logos in a grid layout
   ========================================================================== */
.companies {
    background-color: var(--secondary-color);  /* White background */
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

   .companies-grid {
    display: grid;
    grid-template-columns: repeat(8, 200px);
    gap: 2rem;
    margin: 3rem auto;
    width: 100%;
    padding: 0;
    justify-items: center;
    justify-content: center;
    align-items: center;
}

/* Individual logo container */
.company-card {
    flex: 0 0 200px;
    height: 200px;
    background-color: var(--secondary-color);  /* Changed from primary-color to white */
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transform-origin: center;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    will-change: transform;
    margin: 0 auto;
}

/* Logo image styling */
.company-card img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Companies Carousel */
.carousel-container {
    width: 100%;
    overflow-x: scroll;
    position: relative;
    padding: 2rem 0;
    scroll-behavior: smooth;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

/* Hide scrollbar for Chrome/Safari/Opera */
.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
}

.company-card {
    flex: 0 0 200px;
    height: 200px;
    background-color: var(--secondary-color);
    box-shadow: var(--card-shadow);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.company-card img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
    /* Remove grayscale filter */
    transition: transform 0.3s ease;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-200px * 4 - 8rem)); /* Adjust based on number of logos */
    }
}

/* Pause animation on hover */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.arrow-left {
    left: -20px;
    opacity: 0;
    pointer-events: none;
}

.arrow-right {
    right: -20px;
}

.carousel-arrow i {
    color: var(--text-color);
    font-size: 1rem;
}

.carousel-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* ==========================================================================
   Benefits Section - Home Page
   Grid layout for displaying key benefits or features
   ========================================================================== */
.benefits {
    margin: 6rem auto;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
}

.benefits h2 {
    margin-bottom: 3rem;
}

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

.benefit-card {
    padding: 2rem;
    background-color: var(--secondary-color);  /* Changed from primary-color to white */
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: var(--card-shadow);
    text-align: left;
    height: 100%;
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: block;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.benefit-card p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.benefit-item {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    text-align: left;
    transition: transform 0.3s ease;
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.benefit-item h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.benefit-item p {
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   About Page Skills Section
   ========================================================================== */
.skills {
    margin: 6rem auto;
    text-align: center;
    max-width: 1200px;
    padding: 0 2rem;
}

.skills h1 {
    margin-bottom: 3rem;
    color: var(--text-color);
}

/* Update these styles for the skills card */
.skills-card {
    padding: 2rem;
    background-color: var(--secondary-color);  /* Changed from primary-color to white */
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: var(--card-shadow);
    text-align: center;
    height: 100%;
}

.skills-card i {
    font-size: 2.5rem;
    color: var (--text-secondary);
    margin-bottom: 1.5rem;
}

.skills-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.skills-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Skills Layout */
.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.skill-list {
    width: 100%;
}

/* ==========================================================================
   Form Elements
   Styling for form inputs, labels, and buttons
   ========================================================================== */
/* Form group container */
.form-group {
    margin-bottom: 0.5rem;
    position: relative;
}

/* Form label styling */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Input and textarea base styles */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--text-color);
    border-radius: 4px;
    background: transparent;
    color: var(--text-color);
    font-family: 'SF Pro Display', sans-serif;
    transition: border-color 0.3s ease;
}

/* Form focus states */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Textarea specific styling */
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   WhatsApp Button
   Fixed floating button for direct messaging
   ========================================================================== */
.whatsapp-button {
    position: fixed;
    bottom: 40px;          /* Increased distance from bottom */
    right: 40px;          /* Increased distance from right */
    background-color: #25D366;
    color: white;
    width: 70px;          /* Increased button size */
    height: 70px;         /* Increased button size */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;    /* Increased icon size */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;        /* Ensure it stays on top */
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    background-color: #20ba59;  /* Slightly darker on hover */
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Learn More Button
   Styling for the Learn More button
   ========================================================================== */
.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 2rem;
    transition: all 0.3s ease;
}

.learn-more-btn:hover {
    transform: translateY(-2px);
    background-color: var(--text-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.learn-more-btn i {
    transition: transform 0.3s ease;
}

.learn-more-btn:hover i {
    transform: translateX(4px);
}


/* ==========================================================================
   Accessibility Enhancements
   Improve website accessibility
   ========================================================================== */
/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

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

/* ==========================================================================
   Animation Classes
   Reusable animation effects
   ========================================================================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;  /* Changed from 4px to 50px for rounded look */
    width: auto;          /* Changed from 100% to auto */
    justify-content: center;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.project-btn:hover {
    transform: translateY(-2px);
    background-color: var(--accent-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.project-btn i {
    transition: transformX 0.3s ease;
}

.project-btn:hover i {
    transform: translateX(4px);
}

/* Update the overlay button as well for consistency */
.view-project {
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;  /* Match the main button */
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-project:hover {
    background-color: var(--accent-light);
}

/* ==========================================================================
   Projects Showcase Page Styles
   ========================================================================== */
.projects-showcase {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: left;
}

.section-header {
    text-align: left;
    margin-bottom: 4rem;
}

.section-header h1 {
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--text-color);
    font-size: 1.1rem;
}

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

/* Project Card */
.project-card {
    background: var(--secondary-color);
    box-shadow: var(--card-shadow);
    padding: 1rem;
    border-radius: 16px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.view-project {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid white;
    border-radius: 50px;  /* Match the main button */
    transition: all 0.3s ease;
}

.project-info {
    padding: 1.5rem;
    text-align: left;
}

.project-info h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.project-info p {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    text-align: left;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin: 6rem auto;
    padding: 4rem 2rem;
    background: var(--primary-color);
}

.cta-section h2 {
    margin-bottom: 1rem;
}


/* ==========================================================================
   Intro Skills Section
   ========================================================================== */
.intro-skills-section {
    margin: 3rem auto 6rem;
}

.intro-skills-section h2 {
    color: var(--text-color);
    margin: 4rem 0 2rem;
}

.split-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 1rem;
}

.skills-category {
    background-color: var(--secondary-color);  /* Changed from primary-color to white */
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.skills-category h2 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.skill-item {
    margin-bottom: 1rem;
}

.skill-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.skill-icon i {
    color: var(--text-secondary);
    font-size: 1rem;
    width: 1.5rem;
    text-align: center;
}

.skill-name {
    color: var(--text-color);
    font-size: 0.9rem;
}

.progress-bar-container {
    height: 16px;  /* Increased from 10px */
    background-color: var(--secondary-color);  /* Changed from primary-color */
    border-radius: 8px;  /* Increased to match new height */
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);  /* Added subtle border */
}

.progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 8px;  /* Match container's radius */
    position: relative;
}

.progress-percentage {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: white;  /* Changed to white for better contrast */
    font-size: 0.8rem;  /* Slightly smaller font to fit better */
}

/* Combined Section Styling */
.section-divider {
    height: 1px;
    background-color: var(--accent-color);
    opacity: 0.1;
    margin: 4rem 0;
}

/* Typography Hierarchy */
h1, h2, h3 {
    margin-top: 0;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-color);
    letter-spacing: -0.022em;  /* Apple-style letter spacing */
}

h2 {
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    letter-spacing: -0.021em;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    color: var(--accent-color);
    letter-spacing: -0.019em;
}

.typography-hierarchy h1 {
    margin-bottom: 0.5rem;
}

.typography-hierarchy h2 {
    margin-bottom: 0.3rem;
}

/* Blog Specific Styles */
.blog-header {
    text-align: left;  /* Exception: keep centered for visual hierarchy */
}

.blog-categories {
    display: flex;
    justify-content: flex-start;  /* Changed from center to flex-start */
    gap: 1rem;
    margin: 2rem 0 3rem 0;
    padding-left: 1rem;  /* Added padding to align with other content */
}

.category-btn {
    padding: 0.75rem 2rem;
    border: 1px solid var(--text-color);
    border-radius: 25px;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease;
    text-align: left;
}

.post-card:hover {
    transform: translateY(-4px);
}

.post-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.post-image {
    position: relative;
    height: 200px;
}

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

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.post-content {
    padding: 1.5rem;
    text-align: left;
}

.post-date {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    text-align: left;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

.load-more-btn {
    display: block;
    margin: 3rem auto 0;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.contact-header {
    text-align: center;  /* Exception: keep centered for visual hierarchy */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    text-align: left;
    font-size: 1.1rem;
}

.contact-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    margin-top: 1.5rem;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    background-color: var(--primary-color);
    font-size: 1.1rem;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

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

.contact-card p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--text-secondary);
}

.social-links i {
    font-size: 1.6rem;
}

.contact-social-links {
    color: var(--text-secondary);
    text-decoration: none;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-btn i {
    font-size: 1rem;
    margin: 0;
    transition: transform 0.3s ease;
}

.contact-btn:hover i {
    transform: translateX(4px);
}

/* Header Cards */
.projects-header,
.blog-header {
    text-align: left;
    margin-bottom: 2rem;
}

/* Content Cards */
.projects-content,
.blog-content {
    text-align: left;
}

.blog-categories {
    margin-bottom: 3rem;
    display: flex;
    justify-content: left;
    gap: 1rem;
}

/* Grid Layouts */
.projects-grid,
.posts-grid {
    margin-top: 2rem;
}

/* Blog Page Styles */
.blog-categories {
    display: flex;
    justify-content: flex-start;  /* Changed from center to flex-start */
    gap: 1rem;
    margin: 2rem 0 3rem 0;
    padding-left: 1rem;  /* Added padding to align with other content */
}

.category-btn {
    padding: 0.75rem 2rem;
    border: 1px solid var(--text-color);
    border-radius: 25px;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.category-btn.active,
.category-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Posts Grid Layout */
.posts-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

/* Featured Post */
.post-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.post-card.featured .post-image {
    height: 100%;
}

.post-card.featured .post-image img {
    height: 100%;
    object-fit: cover;
}

.post-card.featured .post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Regular Posts */
.post-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.post-card .post-image {
    position: relative;
    height: 200px;
}

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

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.post-content {
    padding: 1.5rem;
    text-align: left;
}

.post-date {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    margin-top: 1rem;
    font-weight: 500;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(4px);
}

