/* Global Styles */
:root {
    --primary-color: #007991;
    --primary-bg: #eef5f6;
    --primary-btn: #007991;
    --secondary-color: #00596b;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #f4f4f4;
    --section-bg: #ffffff;
    --transition: all 0.3s ease;
    --card-bg: #f9f9f9;
    
    /* Dark mode variables */
    --dark-primary: #25c9e9;
    --dark-primary-bg: #054956;
    --dark-secondary: #9eedfc;
    --dark-section-bg: #1a1a1a;
    --dark-text: #f0f0f0;
    --dark-light-text: #c6c6c6;
    --dark-background: #121212;
    --dark-card-bg: #1e1e1e;
    
    /* Theme toggle styles */
    --toggle-bg: #e9e9e9;
    --toggle-bg-dark: #333333;
    --toggle-fg: #ffffff;
}
/* Loading Animation */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loader.active {
  opacity: 1;
  pointer-events: auto;
}

.loader-content {
  text-align: center;
  position: relative;
}

.loader-spinner {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  position: relative;
}

.loader-spinner svg {
  width: 80px;
  height: 80px;
  animation: rotate 2s linear infinite;
}

.loader-circle {
  stroke: var(--primary-color);
  stroke-width: 3;
  stroke-dasharray: 130;
  stroke-dashoffset: 0;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

.loader-text {
  color: white;
  margin-top: 15px;
  font-weight: 500;
}

@keyframes rotate {
  100% { transform: rotate(360deg) }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 130;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 130, 130;
    stroke-dashoffset: -30;
  }
  100% {
    stroke-dasharray: 130, 130;
    stroke-dashoffset: -150;
  }
}

hr {
    border: 2;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    border-image-slice: 1;
    border-width: 1px;
    border-image-source: linear-gradient(to right, transparent, var(--primary-color), transparent);
    margin-top: 10px;
    margin-bottom: 10px;
}
/* Ensure all sections are visible */
section {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.skill-category, .powerbi-section {
    padding: 1rem 0;
}

.powerbi-container, 
.webapps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.powerbi-card, 
.webapp-card,
.project-card {
    background: var(--section-bg);
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.powerbi-card:hover,
.webapp-card:hover,
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.title-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    background: var(--primary-color);
    color: white;
}

.card-title {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-color);
}

.card-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.description-container {
    position: relative;
    overflow: hidden;
    max-height: 120px; /* Adjust this value to control collapsed height */
    transition: max-height 0.3s ease;
}

.description-container.expanded {
    max-height: 1000px; /* Large enough to show all content */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .description-container {
        max-height: 100px; /* Shorter on mobile */
    }
}

.see-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0;
    text-decoration: underline;
    transition: var(--transition);
    margin-top: 0.5rem;
    display: block;
}

.card-subtitle {
    margin-top: 0.5rem;
}

.preview-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    width: fit-content;
    white-space: nowrap;
}

.preview-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #2563eb 0%, var(--primary-color) 100%);
}

.preview-btn:hover::before {
    left: 100%;
}

.preview-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

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

.preview-btn:hover i {
    transform: scale(1.1);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.video-modal video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.card-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.card-tag {
    background: rgba(0,0,0,0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--light-text);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    margin-right: 70px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Theme toggle styles */
.theme-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.toggle-checkbox {
    display: none;
}

.toggle-label {
    display: block;
    width: 50px;
    height: 24px;
    background: var(--toggle-bg);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-ball {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.toggle-checkbox:checked + .toggle-label {
    background: var(--toggle-bg-dark);
}

.toggle-checkbox:checked + .toggle-label .toggle-ball {
    transform: translateX(26px);
    background: var(--toggle-fg);
}

/* Dark mode styles */
body.dark-mode {
    --primary-color: var(--dark-primary);
    --secondary-color: var(--dark-secondary);
    --primary-bg: var(--dark-primary-bg);
    --section-bg: var(--dark-section-bg);
    --text-color: var(--dark-text);
    --light-text: var(--dark-light-text);
    --background: var(--dark-background);
    --card-bg: var(--dark-card-bg);
}

/* Timeline Navigation */
.timeline-nav {
    position: fixed;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--primary-bg);
    padding: 15px 0px;
    border-radius: 0px;
    width: auto;
}

.timeline-track {
    position: relative;
    height: 99vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.progress-indicator {
    position: absolute;
    top: 0;
    /* left: 37%; */
    transform: translateX(-50%);
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), rgba(0, 123, 255, 0.3));
    z-index: 1;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
}

.timeline-points {
    list-style: none;
    padding: 0;
    margin: 8px;
    margin-right: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.timeline-point {
    position: relative;
    margin: 8px 0px;
}

.point-anchor {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.point-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.point-label {
    position: absolute;
    right: 60px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-point:hover .point-label,
.timeline-point.active .point-label {
    opacity: 1;
    transform: translateX(0);
}

.timeline-point:hover .point-icon,
.timeline-point.active .point-icon {
    background-color: var(--primary-color);
    border-color: var(--primary-btn);
    color: var(--text-color);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.25);
}

.timeline-point.visited .point-icon {
    border-color: var(--primary-color);
    background: linear-gradient(45deg, var(--primary-color), var(--primary-btn));
    color: white;
}

/* Add a connecting line between points */
.timeline-point::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: calc(100% + 16px);
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

/* Remove the line for the first and last points */
.timeline-point:first-child::before {
    top: 50%;
    height: 50%;
}

.timeline-point:last-child::before {
    height: 50%;
    bottom: 50%;
    top: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-nav {
        right: 5px;
        padding: 15px 8px;
    }
    
    .point-icon {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
    
    .point-label {
        right: 50px;
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: linear-gradient(135deg, var(--background) 0%, var(--primary-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x1080') center/cover no-repeat;
    opacity: 0.05;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    top: 25px;
}

.profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background-image: url('images/1706632268188.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.typing-text {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color) !important;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin: 0.5rem;
}

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

/* Experience Section */
.experience {
    background-color: var(--section-bg);
    padding: 5rem 2rem;
}

.experience h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.experience-timeline {
    max-width: 900px;
    margin: 3rem auto 0;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
}

.experience-item {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 45px;
}

.experience-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary-color);
    z-index: 1;
}

.experience-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    margin-bottom: 1rem;
}

.experience-header h3 {
    font-size: 1.4rem;
    margin: 0 1rem 0.5rem 0;
    color: var(--primary-color);
}

.experience-header .company {
    font-weight: 600;
    margin-right: 1rem;
}

.experience-header .duration {
    color: var(--light-text);
    font-size: 0.9rem;
}

.experience-content {
    background: var(--primary-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.experience-content p {
    margin-bottom: 1rem;
}

.experience-content ul {
    padding-left: 1.5rem;
}

.experience-content li {
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .experience-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .experience-item {
        padding-left: 0;
        width: 50%;
    }
    
    .experience-item:nth-child(odd) {
        padding-right: 40px;
        text-align: right;
        margin-left: 0;
        margin-right: auto;
    }
    
    .experience-item:nth-child(even) {
        padding-left: 40px;
        margin-left: auto;
        margin-right: 0;
    }
    
    .experience-item::before {
        left: auto;
        right: -13px;
    }
    
    .experience-item:nth-child(even)::before {
        left: -13px;
        right: auto;
    }
    
    .experience-header {
        justify-content: flex-end;
    }
    
    .experience-item:nth-child(even) .experience-header {
        justify-content: flex-start;
    }
}

/* Education Section */
.education {
    padding: 5rem 2rem;
    background: var(--section-bg);
}

.education h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.education-container {
    max-width: 1100px;
    margin: 3rem auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.education-item {
    display: flex;
    border-left: 2px dashed var(--light-text);
    padding-bottom: 30px;
    position: relative;
    padding-left: 30px;
    margin-left: 25px;
    transition: all 0.3s ease;
}

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

.education-icon {
    position: absolute;
    left: -17px;
    background: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px var(--section-bg);
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.education-content {
    padding: 1.5rem;
    flex: 1;
}

.education-content h3 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.education-content .institution {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.education-content .duration {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.education-content .achievement {
    font-weight: 500;
    color: var(--secondary-color);
    margin-top: 0.5rem;
}

.certification-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.certification-list li {
    margin-bottom: 0.5rem;
}

.publication {
    font-style: italic;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.publication a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px dashed var(--primary-color);
}

.publication a:hover {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

@media (min-width: 768px) {
    .education-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile responsive styles for Power BI, Web Apps and Projects */
@media (max-width: 768px) {
    .powerbi-container,
    .webapps-container,
    .projects-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .powerbi-report,
    .webapp-card,
    .project-card {
        margin: 1rem;
        padding: 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .powerbi-report iframe,
    .webapp-card iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
    
    .card-content {
        padding: 0.5rem !important;
    }
    
    .powerbi-report .card-content,
.webapp-card .card-content,
.project-card .card-content {
    display: flex !important;
    flex-direction: column;
    opacity: 1 !important;
    max-height: none !important;
    padding: 1rem;
}

.card {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
    transition: none;
}

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

.card-title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.card-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
}
    
    .skill-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .key-points {
        grid-template-columns: 1fr;
    }
    
    /* Improved touch targets for mobile */
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Adjust font sizes for readability */
    h2 {
        font-size: 2rem !important;
    }
    
    h3 {
        font-size: 1.3rem !important;
    }
    
    /* Stack timeline navigation vertically on mobile */
    .timeline-nav {
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 10px;
        background: var(--section-bg);
        justify-content: center;
        align-items: center;
    }
    
    .timeline-track {
        height: auto;
        width: 100%;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }
    
    .timeline-points {
        flex-direction: row;
        margin: 0;
        justify-content: space-around;
    }
    
    .timeline-point {
        margin: 0 5px;
    }
    
    .point-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    /* Hide labels on timeline for small devices */
    .timeline-label {
        display: none !important;
    }
    
    /* Ensure timeline points have no overlapping text */
    .timeline-point {
        position: relative;
    }
    
    .timeline-point .point-label {
        display: none !important;
    }
    
    /* Adjust body margins when timeline is at bottom */
    body {
        margin-right: 0 !important;
    }
}

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

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

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

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.key-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.point {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: var(--primary-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.point i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Skills Section */
.skills {
    padding: 6rem 2rem;
    background: var(--section-bg);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.skills h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--primary-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.6s ease;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.skill-category.aos-animate {
    transform: translateY(0);
    opacity: 1;
}

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

.skill-items {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.skill-item {
    background: var(--section-bg);
    padding: 1.2rem;
    border-radius: 10px;
    transition: var(--transition);
    font-size: 0.8rem;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-right: 1rem;
}

.skill-progress {
    position: relative;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
}

.progress-text {
    position: absolute;
    right: 0;
    top: -1.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Power BI Section */
.powerbi {
    padding: 6rem 2rem;
    background: var(--background);
}

.powerbi h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.powerbi-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.powerbi-report {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.powerbi-report:hover {
    transform: translateY(-5px);
}

.powerbi-report h3 {
    padding: 1.5rem;
    margin: 0;
    color: var(--primary-color);
}

.report-preview {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.report-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f6d728 0%, #a28d17 100%);
    transition: var(--transition);
}

.report-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(210, 188, 26, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.report-preview:hover .report-overlay {
    opacity: 1;
}

.report-overlay p {
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Web Applications Section */
.webapps {
    padding: 6rem 2rem;
    background: var(--background);
}

.webapps h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.webapps-container {
    max-width: 1200px;
    margin: 0 auto;
}

.webapp-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem; /* Reduced gap for better fit */
    justify-content: center;
    align-items: flex-start; /* This ensures cards don't stretch to match each other's height */
    max-width: 1600px; /* Increased container width */
    margin: 0 auto;
}

/* Allow 3 cards per row on larger screens */
@media (max-width: 1300px) {
    .webapp-showcase {
        max-width: 1400px;
    }
    
    .webapp-card {
        flex-basis: 360px;
        max-width: 360px;
    }
}

/* 2 cards per row on medium screens */
@media (max-width: 900px) {
    .webapp-showcase {
        max-width: 780px;
    }
    
    .webapp-card {
        flex-basis: 340px;
        max-width: 340px;
    }
}

/* Single column on small screens */
@media (max-width: 700px) {
    .webapp-showcase {
        max-width: 100%;
    }
    
    .webapp-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.webapp-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    flex: 1 1 380px; /* Narrower width to ensure 3 fit */
    max-width: 380px;
    min-width: 320px;
}

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

.webapp-preview {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.webapp-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    transition: var(--transition);
}

.webapp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 150, 105, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition);
}

.webapp-preview:hover .webapp-overlay {
    opacity: 1;
}

.webapp-overlay h3 {
    color: white;
    margin-bottom: 1rem;
}

.webapp-overlay p {
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
}

.webapp-tech {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.webapp-tech span {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Projects Section */
.projects {
    padding: 6rem 2rem;
    background: var(--background);
}

.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--light-text);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.project-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
    opacity: 1 !important;
    visibility: visible !important;
}

.project-card {
    background: var(--card-bg) !important;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

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

.project-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-bg);
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: var(--card-bg);
}

.project-content h3 {
    margin-bottom: 0.8rem;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.project-content p {
    color: var(--light-text);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    flex-grow: 1;
    font-size: 0.9rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--primary-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--primary-color);
    color: white;
}

.github-stats {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    color: #555;
}

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

.project-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    color: var(--secondary-color);
    transform: translateX(3px);
}

.publication-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-container {
    max-width: 950px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-info {
    background: var(--primary-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px;
    text-align: center;
}

.contact-item p {
    font-size: 1rem;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr 2fr;
    }
}

.contact-form {
    background: var(--primary-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    transition: var(--transition);
    pointer-events: none;
}

.form-group textarea ~ label {
    top: 1rem;
    transform: none;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -0.6rem;
    left: 0.5rem;
    font-size: 0.8rem;
    background: rgba(0, 119, 143, 0.7);
    border-radius: 5px;
    padding: 0 0.5rem;
    color: white;
}

.form-group input {
    border-color: #05c7ed !important;
}

/* Footer */
.footer {
    background: black;
    color: white;
    padding: 2rem;
    text-align: center;
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: var(--transition);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .typing-text {
        font-size: 1.4rem;
    }

    .about,
    .skills,
    .projects,
    .contact {
        padding: 3rem 1rem;
    }
}

.about-languages h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text {
    text-align: center;

}