/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&family=Great+Vibes&family=Satisfy&display=swap');
@import url("https://www.google.com/fonts#UsePlace:use/Collection:Open+Sans+Condensed:300");
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #000000;
    color: white;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, 
        rgba(30, 144, 255, 0.1) 0%,
        transparent 40%),
        radial-gradient(circle at 20% 80%, 
        rgba(30, 144, 255, 0.2) 0%,
        transparent 30%),
        radial-gradient(circle at 80% 20%, 
        rgba(30, 144, 255, 0.2) 0%,
        transparent 30%);
    animation: pulseGlow 8s ease-in-out infinite;
    z-index: -2;
}

body::after {
    content: '';
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 40% 70%, #1e90ff, transparent),
        radial-gradient(3px 3px at 60% 20%, white, transparent),
        radial-gradient(2px 2px at 70% 90%, #1e90ff, transparent),
        radial-gradient(2px 2px at 80% 40%, white, transparent);
    background-size: 300px 300px;
    animation: sparkleStars 4s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

@keyframes sparkleStars {
    0% { transform: translateY(0); }
    100% { transform: translateY(-300px); }
}

main {
    flex: 1;
}

html {
    scroll-behavior: smooth;
}

/* Gradient Animation */
@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.9); /* Match index.html background */
    color: rgb(255, 255, 255);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s ease-in-out;
}

.navbar .logo .tagline {
  font-size: 25px;
  font-weight: 1000;
  font-family: 'Dancing Script', cursive;
  color: #1e90ff;
}
.nav-links {
    list-style: none;
    display: flex;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #000000, #ff1744);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #ff1744;
    transform: translateY(-2px);
}

/* Mobile Navigation */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: rgb(187, 225, 250);
    cursor: pointer;
}

.timeline {
    position: relative;
    padding:30px 0 8rem 0; /* Increased from 100px to 150px */
    overflow: hidden;
    margin-top: 100px; /* Increased from 60px to 100px */

}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #ffffff;
    z-index: 0;
}

.container {
  max-width: 1200px;
  padding: 20px 15px; /* Increased top padding */
  margin: 0 auto;
}

.timeline-item {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    padding: 0; /* Remove padding */
    margin-bottom: -100px; /* Negative margin to pull items closer */
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-img {
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  margin-left: -13.5px;
  box-shadow: 0 0 10px rgba(30, 144, 255, 0.3);
}

/* Timeline Content */
.timeline-content {
    position: relative;
    width: 52%;
    padding: 20px;
    border-radius: 8px;
    background: rgba(30, 144, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.6);
    transform: scale(0.95);
    transition: transform 0.5s ease-out, box-shadow 0.5s ease-out;
    margin-bottom: 0; /* Remove bottom margin */
    z-index: 1; /* Ensure content is above the line */
}

/* Apply hover effect */
.timeline-content:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Timeline Content Heading */
.timeline-content h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
    position: relative;
    display: inline-block;
    text-align: center;
    width: auto; /* Changed from 100% to auto for box layout */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 2px rgba(0, 0, 0, 0.5); /* Changed shadow for better visibility on gradient */
    background: linear-gradient(45deg, #000000, #1e90ff, #ff1744, #000000); /* Gradient background */
    background-size: 300% 300%; /* Larger background size for animation */
    animation: gradientFlow 10s ease infinite; /* Added animation */
    padding: 5px 20px; /* Added padding for the box */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 20px rgba(30, 144, 255, 0.5); /* Enhanced shadow */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */

}

.timeline-content h2 i {
    margin-right: 10px;
    color: #ffffff;
    font-size: 1.8rem;
}



.timeline-content p {
    color: #ffffff;
    font-weight: 500;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 6px;
}

/* Positioning for Odd & Even Items */
.timeline-item:nth-child(odd) .timeline-content {
    left: 55%;
    margin-top: -50px; /* Pull odd items up */
    animation: fadeInLeft 1s ease-out;
}

.timeline-item:nth-child(even) .timeline-content {
    left: -7%;
    margin-top: -50px; /* Pull even items up */
    animation: fadeInRight 1s ease-out;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {

  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    left: 0;
  }


  .navbar {
    padding: 20px;
    background: rgba(0, 0, 0, 0.9); /* Ensure background is visible on mobile */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: rgb(27, 38, 44);
    width: 100%;
    text-align: center;
    padding: 20px 0;
}

.nav-links.active {
    display: flex;
}

.nav-links li {
    padding: 10px 0;
}

.menu-toggle {
    display: block;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
    font-size: 24px;
    color: rgb(187, 225, 250);
}

.nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95); /* Match index.html background */
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-links.active {
    display: flex !important;
    flex-direction: column;
    animation: slideDown 0.3s ease-out forwards;
}

.nav-links li {
    padding: 10px 0;
}

/* Ensure first timeline item has proper spacing from navbar */
.timeline {
    margin-top: 80px;
}

.timeline-content {
    width: calc(100% - 60px);
    margin-left: 45px;
    margin-top: 0; /* Reset margin for mobile */
    padding: 15px;
}

.timeline-item {
    margin-bottom: 20px; /* Reset margin for mobile */
}

.timeline-item:nth-child(odd) .timeline-content,
.timeline-item:nth-child(even) .timeline-content {
    left: 0;
    margin-top: 0; /* Reset margin for mobile */
}

.timeline-content h2 {
    font-size: 1.5rem;
}

.small-timeline {
    margin: 15px 0;
    padding-left: 15px;
}

.about-content {
    padding: 10px;
}

.about-text .intro {
    font-size: 1.1rem;
}

.about-details li,
.experience-list li,
.career-goals-list li {
    font-size: 0.9rem;
    padding: 8px 10px;
}

/* Mobile Navigation Styles - FIXED and Made Consistent */
@media (max-width: 768px) {
    .nav-links li {
        margin: 8px 0; /* Reduced from 15px to 8px to match style.css */
        padding: 5px 0; /* Added for consistent touch target size */
    }
    
    .nav-links a {
        font-size: 18px;
        width: 100%;
        display: inline-block; /* Ensures the link takes full width */
    }
}
}

/* Small Timeline Styles */
.small-timeline {
    margin: 20px 0;
    padding-left: 20px;
    border-left: 2px solid rgb(255, 255, 255);
}

.small-timeline-item {
    position: relative;
    margin-bottom: 20px;
    padding-left: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    background-color: ;
}

.small-timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.small-timeline-dot {
    position: absolute;
    left: -31px;
    top: 4px;
    width: 20px;
    background: #f8f9ff;
    height: 20px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    
}

.small-timeline-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 6px;
}

.small-timeline-content h3 {
    color: #ffffff;
    font-weight: 600;
    background: linear-gradient(45deg, #ffffff, #000000);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: none;
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.small-timeline-content h3 i {
    margin-right: 10px;
    color: #ffffff;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.small-timeline-content:hover h3 i {
    transform: scale(1.2);
}

.small-timeline-content h4 {
  color: #ffffff;
  font-weight: 550;
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  padding-bottom: 5px;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.small-timeline-content h5 {
  color: #ffffff;
  font-weight: 500;
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  padding-bottom: 5px;
  margin-bottom: 0px;
  font-size: 1.1rem;
}

.small-timeline-content h6 {
  color: #ffffff;
  font-weight: 500;
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  padding-bottom: 5px;
  margin-bottom: 0px;
  font-size: 1.1rem;
}

.small-timeline-content p {
    color: #ffffff;
    margin: 0;
    font-size: 0.9rem;
    font-style: bold;
}

.experience-list {
    color: #ffffff;
    list-style-type: disc;
    padding-left: 20px;
    margin: 10px 0;
}

.experience-list li {
    font-size: 0.9rem;
    margin: 8px 0;
    line-height: 1.4;
    display: flex;
    align-items: center;
}

.experience-list li i {
    color: #ffffff;
    margin-right: 10px;
    font-size: 1rem;
    min-width: 20px;
    transition: transform 0.3s ease;
}

.experience-list li:hover i {
    transform: scale(1.2);
}

/* Footer Section */
.footer {
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 16px;
    width: 100%;
    flex-grow: 1; /* Ensure footer is pushed to the bottom */
}

/* Social Media Icons */
.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: rgb(255, 255, 255);
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

.social-icons a:hover {
    color: #ff1744;
}

.career-goals-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.career-goals-list li {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 15px 0;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.career-goals-list li:hover {
    transform: translateX(10px);
    background: rgba(0, 0, 0, 0.3);
}

.career-goals-list li i {
    margin-right: 15px;
    color: #ffffff;
    font-size: 1.2rem;
}

.about-content {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.about-text .intro {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 500;
}

.about-text .intro i {
    color: #ffffff;
    margin-right: 10px;
    font-size: 1.2rem;
}

.about-details {
    list-style: none;
    padding: 0;
}

.about-details li {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 12px 0;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.about-details li:hover {
    transform: translateX(10px);
}

.about-details li i {
    color: #ffffff;
    margin-right: 12px;
    font-size: 1.1rem;
    min-width: 25px;
}

/* Add this near the other icon styles */
.fa-quote-left {
    color: #1e90ff;
    margin-right: 10px;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.fa-quote-left {
    font-size: 2rem;
    background: linear-gradient(45deg, #1e90ff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 15px;
    filter: drop-shadow(0 0 8px rgba(30, 144, 255, 0.4));
    animation: glowPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.fa-quote-left:hover {
    transform: scale(1.1) rotate(-10deg);
    filter: drop-shadow(0 0 12px rgba(30, 144, 255, 0.6));
    background: linear-gradient(45deg, #ffffff, #1e90ff);
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes glowPulse {
    0%, 100% { 
        filter: drop-shadow(0 0 8px rgba(30, 144, 255, 0.4));
    }
    50% { 
        filter: drop-shadow(0 0 12px rgba(30, 144, 255, 0.6));
    }
}

/* Mobile Menu Styles */
.menu-toggle {
    display: none;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

}

/* Mobile Menu Styles - Updated to fix visibility */
.menu-toggle {
    display: none;
    z-index: 1001;
    transition: transform 0.3s ease;
    color: rgb(187, 225, 250); /* Ensure color is visible against dark background */
    font-size: 24px;
    cursor: pointer;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

/* Mobile Navigation Styles - Fixed for visibility */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
        background: rgba(0, 0, 0, 0.9); /* Match index.html background */
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
    }
    
    .menu-toggle {
        display: block !important; /* Force display with !important */
        position: relative; /* Ensure proper positioning */
        cursor: pointer;
        z-index: 1001; /* Higher z-index to appear above other elements */
        font-size: 24px;
        color: rgb(187, 225, 250); /* Match index.html color */
    }
    
    /* Remove the arrow that might be causing issues */
    .menu-toggle::after {
        display: none;
    }
    
    /* ...rest of existing code... */
}

/* Skills Cards Section */
.skills-section {
    padding: 50px 0;
}

.skills-section .container {
    width: 1000px;
    position: relative;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.skills-section .card {
    position: relative;
    cursor: pointer;
}

.skills-section .card .face {
    width: 300px;
    height: 200px;
    transition: 0.5s;
}

.skills-section .card .face.face1 {
    position: relative;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    transform: translateY(100px);
}

.skills-section .card:hover .face.face1 {
    background: #1e90ff;
    transform: translateY(0);
}

.skills-section .card .face.face1 .content {
    opacity: 0.2;
    transition: 0.5s;
    text-align: center;
}

.skills-section .card:hover .face.face1 .content {
    opacity: 1;
}

.skills-section .card .face.face1 .content img {
    max-width: 100px;
    filter: invert(1);
}

.skills-section .card .face.face1 .content h3 {
    margin: 10px 0 0;
    padding: 0;
    color: #fff;
    text-align: center;
    font-size: 1.5em;
}

.skills-section .card .face.face2 {
    position: relative;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(-100px);
}

.skills-section .card:hover .face.face2 {
    transform: translateY(0);
}

.skills-section .card .face.face2 .content p {
    margin: 0;
    padding: 0;
    color: #333;
}

.skills-section .card .face.face2 .content a {
    margin: 15px 0 0;
    display: inline-block;
    text-decoration: none;
    font-weight: 900;
    color: #333;
    padding: 5px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.skills-section .card .face.face2 .content a:hover {
    background: #333;
    color: #fff;
}

/* Mobile Responsiveness for Cards */
@media (max-width: 1024px) {
    .skills-section .container {
        width: 100%;
        padding: 0 20px;
        justify-content: center;
    }
}

/* Skills Section */
.skills-section {
    padding: 10px 20px;
    text-align: center;
}



/* Animation for gradient flow */
@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
}

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

.skill-card {
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.card-content {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.75, 0, 0.85, 1);
}

.skill-card:hover .card-content {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(30, 144, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-front {
    color: #ffffff;
}

.card-front i {
    font-size: 2.5rem;
    background: rgb(255, 255, 255);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.card-back {
    transform: rotateY(180deg);
    background: rgba(255, 23, 68, 0.2);
}

.card-back ul {
    list-style: none;
    padding: 0;
}

.card-back li {
    color: #ffffff;
    font-size: 1rem;
    margin: 10px 0;
    padding: 8px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.card-back li:hover {
    transform: translateX(10px);
}

.card-back li i {
    margin-right: 10px;
    color: #ffffff;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

/* Enhance card animations */
.skill-card {
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.card-content {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .skill-card {
        height: 250px;
    }
}

/* Enhanced Skills Section */
.tech-logos {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.tech-logos svg {
    fill: #0078d4; /* Azure blue color */
    width: 32px;
    height: 32px;
    margin: 0 10px;
}

.card-back svg {
    fill: #0078d4; /* Azure blue color */
    width: 32px;
    height: 32px;
    margin: 0 10px;
}


.card-front h1{
    font-size: 25px;
}

.tech-logos img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

/* Enhanced Tech Logo Display - Front View */
.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px; /* Increased gap between logos */
    margin-top: 20px;
    width: 100%;
    flex-wrap: wrap; /* Allow logos to wrap if needed */
}

.tech-logos svg,
.tech-logos i,
.tech-logos img {
    width: 40px; /* Increased size */
    height: 40px; /* Increased size */
    font-size: 2.4rem; /* Increased font size for icon fonts */
    color: white;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    transition: transform 0.3s ease;
    display: block; /* Ensure block display for consistent spacing */
}

.card-front {
    justify-content: center; /* Center content vertically */
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-front h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 20px; /* Increased bottom margin for more space before logos */
    padding: 0 10px;
    font-weight: 600;
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Fix Azure icon and VS Code icon specific issues */
img[src="assets/images/skills/Microsoft_Azure.svg"],
img[src="assets/images/skills/vs.svg"] {
    width: 40px !important;
    height: 40px !important;
    filter: brightness(0) invert(1) !important;
}

/* Improve front card layout */
.card-front .tech-logos i {
    background: transparent;
    -webkit-text-fill-color: white;
    margin: 0 5px; /* Add horizontal margin for better spacing */
}

/* Mobile adjustments for tech logos */
@media (max-width: 768px) {
    .tech-logos {
        gap: 20px; /* Smaller gap on mobile but still sufficient */
        margin-top: 15px;
        padding: 0 5px; /* Add some padding on the sides */
    }
    
    .tech-logos svg,
    .tech-logos i,
    .tech-logos img {
        width: 32px; /* Consistent size on mobile */
        height: 32px; /* Consistent size on mobile */
        font-size: 2rem; /* Consistent font size for icon fonts */
    }
    
    img[src="assets/images/skills/Microsoft_Azure.svg"],
    img[src="assets/images/skills/vs.svg"] {
        width: 32px !important;
        height: 32px !important;
    }
    
    .card-front h1 {
        font-size: 18px;
        margin-bottom: 15px; /* Adjusted for mobile */
    }
}

/* Even smaller screen adjustments */
@media (max-width: 375px) {
    .tech-logos {
        gap: 15px; /* Even smaller gap on very small screens */
    }
    
    .tech-logos svg,
    .tech-logos i,
    .tech-logos img {
        width: 28px; /* Smaller on very small screens */
        height: 28px; /* Smaller on very small screens */
        font-size: 1.8rem; /* Smaller on very small screens */
    }
}

/* Enhanced Tech Logo Display - Front View */
.tech-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.tech-logos svg,
.tech-logos i,
.tech-logos img {
    width: 36px;
    height: 36px;
    font-size: 2.2rem;
    color: white;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    transition: transform 0.3s ease;
}

.card-front h1 {
    font-size: 22px;
    text-align: center;
    margin-bottom: 10px;
    padding: 0 10px;
    font-weight: 600;
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-front {
    justify-content: space-around;
    padding: 25px 15px;
}

/* Adjust mobile view for skills cards */
@media (max-width: 768px) {
    .tech-logos {
        gap: 16px;
        margin-top: 15px;
    }
    
    .tech-logos svg,
    .tech-logos i,
    .tech-logos img {
        width: 28px;
        height: 28px;
        font-size: 1.8rem;
    }
    
    .card-front h1 {
        font-size: 18px;
        margin-bottom: 5px;
    }
}

/* Improve front card layout */
.card-front .tech-logos i {
    background: transparent;
    -webkit-text-fill-color: white;
    margin-bottom: 0;
}

/* Fix Azure icon specific issues */
img[src="assets/images/skills/Microsoft_Azure.svg"],
img[src="assets/images/skills/vs.svg"] {
    width: 36px !important;
    height: 36px !important;
    filter: brightness(0) invert(1) !important;
}

@media (max-width: 768px) {
    img[src="assets/images/skills/Microsoft_Azure.svg"],
    img[src="assets/images/skills/vs.svg"] {
        width: 28px !important;
        height: 28px !important;
    }
}

.skill-card:hover .tech-logos i {
    animation: bounce 0.5s ease infinite alternate;
}

/* Modern Certifications Section */
.certifications-section {
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.9);
    text-align: center; /* Add text-align center to the certifications section */
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cert-card {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.cert-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cert-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #000000, #1e90ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon i {
    font-size: 24px;
    color: white;
}

.cert-info {
    flex: 1;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cert-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin: 0;
}

.cert-pill {
    background: rgba(30, 144, 255, 0.9);
    color: rgb(30, 144, 255);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.cert-issuer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.cert-issuer img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.cert-issuer span {
    color: #ffffff;
    font-size: 0.9rem;
    opacity: 0.8;
}

.cert-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.cert-meta span {
    color: #ffffff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge {
    background: rgba(234, 100, 100, 0.2);
    color: #ea6464;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .cert-card {
        padding: 15px;
    }

    .cert-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Modern Certifications Section */
.certifications-section {
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.1);
}

.cert-categories {
    display: grid;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cert-category {
    background: rgba(30, 144, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.category-title {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title i {
    font-size: 1.8rem;
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cert-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.cert-item {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.cert-header img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.cert-header h4 {
    color: #ffffff;
    font-size: 1.2rem;
}

.cert-details {
    text-align: left;
}

.cert-details p {
    color: #ffffff;
    font-size: 0.9rem;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cert-status {
    display: inline-block;
    color: #ff1744;
    background: rgba(255, 23, 68, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .cert-items {
        grid-template-columns: 1fr;
    }
    
    .cert-category {
        padding: 15px;
    }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #000000, #ff1744);
    transform-origin: 0;
    z-index: 1001;
}

/* Enhanced Card Hover Effects */
.cert-item {
    position: relative;
    overflow: hidden;
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

.cert-item:hover::before {
    left: 100%;
}

/* Floating Animation for Icons */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.cert-icon i {
    animation: float 3s ease-in-out infinite;
}

/* Glowing Effect for Status Badge */
.cert-status {
    position: relative;
}


.cert-status:hover::after {
    opacity: 1;
}

/* Tilt Effect for Cards */
.cert-category {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.cert-category:hover {
    transform: perspective(1000px) rotateX(5deg);
}

/* Enhanced Skills Section Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.skill-card {
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.8s;
    z-index: 1;
}

.skill-card:hover::before {
    left: 100%;
}

.card-front h3 {
    position: relative;
    overflow: hidden;
}

.card-front h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #1e90ff, #ffffff);
    transition: width 0.3s ease;
}

.skill-card:hover .card-front h3::after {
    width: 100%;
}

.tech-logos img {
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.skill-card:hover .tech-logos img {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Enhance card back list items */
.card-back li {
    transform-origin: left;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card-back li:hover {
    transform: translateX(10px) scale(1.05);
    background: rgba(50, 130, 184, 0.3);
}

.card-back li i {
    transition: transform 0.3s ease;
}

.card-back li:hover i {
    transform: scale(1.2);
}

.icon-color {
    color: #1e90ff; /* Replace with your desired color */
}

/* Mobile Navigation Enhancement */
.menu-toggle {
    display: none;
    z-index: 1001;
    transition: transform 0.3s ease;
    position: relative;
}

.menu-toggle::after {
    content: '▼';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.menu-toggle.active::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Improved Timeline Mobile Styles */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 0px;
        width: 0px;  /* Move timeline line to left */
    }

    .timeline-img {
        left: 15px;  /* Align dots with line */
        margin-left: 0;
        width: 0px;
        height: 0px;
    }

    .timeline-content {
        width: calc(100% - 70px);
        float: right;
        margin-left: 60px;
        
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        left: 0;
        margin-top: 20px;
    }

    /* Adjust small timeline for mobile */
    .small-timeline {
        margin-left: 10px;
        padding-left: 15px;
    }

    .small-timeline-dot {
        left: -20.5px;
        width: 10px;
        height: 10px;
    }

    /* Certification Cards Mobile Adjustments */
    .cert-category {
        padding: 15px;
        margin: 10px;
    }

    .cert-items {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .cert-item {
        width: 100%;
        margin: 0;
    }

    /* Skills Section Mobile Adjustments */
    .skills-container {
        padding: 10px;
    }

    .skill-card {
        width: 100%;
        margin: 10px 0;
    }

    /* Fix Navigation Mobile Menu */
    .nav-links {
        background: rgba(0, 0, 0, 0.95);
        padding: 15px 0;
    }

    /* Adjust Content Spacing */
    .timeline-content {
        padding: 15px;
    }

    .timeline-content h2 {
        font-size: 1.5rem;
    }

    .about-content {
        margin: 10px;
    }
}

/* Additional Mobile Optimizations */
@media screen and (max-width: 480px) {
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 40px;
    }

    .cert-category {
        padding: 10px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-text .intro {
        font-size: 1.1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .card-back li:hover {
        transform: none;
    }

    .nav-links a:hover {
        transform: none;
    }
}

img[src="assets/images/certs/full stack.png"] {
    width: 200px;
    height: auto;
}

img[src="assets/images/certs/github.png"] {
    width: 150px;
    height: auto;
}

/* Add floating animation for cards */
@keyframes floatUpDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Apply floating animation to skill cards */
.skill-card {
    animation: floatUpDown 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

/* Override the animation on hover to prevent conflicts */
.skill-card:hover {
    animation: none;
    transform: translateY(-10px);
}

/* Each card starts the animation at a slightly different time */
.skills-container .skill-card:nth-child(1) {
    animation-delay: 0s;
}

.skills-container .skill-card:nth-child(2) {
    animation-delay: 0.5s;
}

.skills-container .skill-card:nth-child(3) {
    animation-delay: 1s;
}

.skills-container .skill-card:nth-child(4) {
    animation-delay: 1.5s;
}

/* Apply floating animation to certification cards */
.cert-category {
    animation: floatUpDown 5s ease-in-out infinite;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* Override the animation on hover to preserve the tilt effect */
.cert-category:hover {
    animation: none;
    transform: perspective(1000px) rotateX(5deg);
}

/* Each certification category starts the animation at a slightly different time */
.cert-categories .cert-category:nth-child(1) {
    animation-delay: 0s;
}

.cert-categories .cert-category:nth-child(2) {
    animation-delay: 1.2s;
}

.cert-categories .cert-category:nth-child(3) {
    animation-delay: 0.7s;
}

/* Adjust mobile responsiveness to work with animations */
@media (max-width: 768px) {
    .skill-card, .cert-category {
        animation-duration: 6s; /* Slower on mobile for better performance */
    }
}

/* Turn off animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .skill-card, .cert-category {
        animation: none;
    }
}

/* Mobile Menu Styles - Updated with animations */
.menu-toggle {
    display: none;
    z-index: 1001;
    transition: transform 0.3s ease;
    color: rgb(187, 225, 250);
    font-size: 24px;
    cursor: pointer;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

/* Mobile Navigation Styles - Fixed with animations */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        animation: slideDown 0.5s ease-out forwards;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .menu-toggle {
        display: block !important;
        position: relative;
        cursor: pointer;
        z-index: 1001;
        font-size: 24px;
        color: rgb(187, 225, 250);
        animation: pulse 2s infinite ease-in-out;
    }
    
    .menu-toggle.active {
        animation: none;
    }
    
    /* Remove the arrow that might be causing issues */
    .menu-toggle::after {
        display: none;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transform: translateY(-10px);
        opacity: 0;
    }
    
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        animation: slideDown 0.3s ease-out forwards;
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links li {
        transform: translateY(-20px);
        opacity: 0;
        animation: fadeInUp 0.3s forwards ease-out;
    }
    
    .nav-links.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.4s; }

    /* ...existing code... */
}

/* Add animation keyframes if they don't already exist */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

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

/* Improved Timeline Mobile Styles */
@media screen and (max-width: 768px) {
    .timeline {
        padding: 30px 0 4rem 0;
        margin-top: 100px;
        /* Center timeline in mobile view */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .timeline .container {
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .timeline::before {
        left: 50%; /* Center the timeline line */
        transform: translateX(-50%);
        width: 0px; /* Make line visible again */
    }

    .timeline-img {
        left: 50%;
        margin-left: -15px;
        width: 0px; /* Restore dot size */
        height: 0px; /* Restore dot size */
        visibility: visible;
    }

    .timeline-content {
        width: 90%; /* Wider content area */
        margin-left: 0; /* Remove side offset */
        margin-right: 0;
        margin-bottom: 40px; /* Add space between items */
        float: none; /* Remove float */
    }

    .timeline-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px; /* Add space between items */
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        left: 0;
        margin: 30px 0 0 0; /* Center content and add top margin */
    }

    /* Adjust small timeline for better mobile view */
    .small-timeline {
        width: 100%;
        margin: 15px 0;
        padding-left: 15px;
        border-left: 2px solid rgba(255, 255, 255, 0.5);
    }

    /* Additional adjustments for content */
    .timeline-content h2 {
        text-align: center;
        font-size: 1.5rem;
        width: 100%;
    }
    
    .about-content {
        width: 100%;
        margin: 10px 0;
        padding: 15px;
    }
    
    .career-goals-list {
        width: 100%;
    }
}

/* Additional Mobile Optimizations for smaller screens */
@media screen and (max-width: 480px) {
    .timeline-content {
        width: 95%; /* Even wider on smaller screens */
    }
    
    .timeline::before {
        opacity: 0.5; /* Make the line more subtle */
    }
    
    .timeline-img {
        width: 25px;
        height: 25px;
    }
}

/* Enhanced Skills Section For Mobile */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
        padding: 10px 15px;
    }

    .skill-card {
        height: 220px; /* Slightly smaller height on mobile */
        width: 100%;
        margin: 10px 0;
    }
    
    .card-front h1 {
        font-size: 20px; /* Smaller font size for mobile */
        padding: 0 10px;
        text-align: center;
        margin-bottom: 5px;
    }
    
    .card-front, .card-back {
        padding: 15px; /* Reduce padding on mobile */
    }
    
    .card-back ul {
        width: 100%;
    }
    
    .card-back li {
        font-size: 0.9rem; /* Smaller text in list items */
        margin: 8px 0;
        padding: 6px;
    }
    
    .tech-logos {
        gap: 10px;
        margin-top: 12px;
    }
    
    .tech-logos i, .tech-logos img {
        width: 22px;
        height: 22px;
        font-size: 1.8rem;
    }
    
    /* Improve touch experience for card flipping */
    .skill-card {
        cursor: pointer;
        perspective: 1000px;
        touch-action: manipulation;
    }
    
    /* Provide visual cue that cards are flippable */
    .card-front::after {
        content: '↻';
        position: absolute;
        bottom: 10px;
        right: 10px;
        font-size: 18px;
        opacity: 0.8;
        color: white;
        animation: pulseGlow 1.5s infinite ease-in-out;
    }
}

/* Smaller mobile adjustments */
@media (max-width: 480px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .skill-card {
        height: 200px;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .card-front h1 {
        font-size: 18px;
    }
    
    /* Optimized smooth flipping for lower-end devices */
    .card-content {
        transition: transform 0.6s ease;
    }
}

/* Improve touch interactions for the skills section */
@media (hover: none) {
    /* Touch device optimizations */
    .skill-card:active .card-content {
        transform: rotateY(180deg);
    }
    
    .card-back li:active {
        transform: translateX(5px);
        background: rgba(50, 130, 184, 0.3);
    }
    
    /* Add a subtle touch effect */
    .skill-card:active {
        transform: scale(0.98);
    }
}

/* Mobile-friendly section title */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 2rem; /* Reduced from 2.5rem */
        padding: 5px 15px;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 1.7rem; /* Further reduced for very small screens */
        padding: 4px 12px;
        margin-bottom: 25px;
    }
}

/* Enhanced Skills Section For Mobile - Improved Card Size */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px; /* Reduced gap */
        padding: 5px 10px; /* Reduced padding */
    }

    .skill-card {
        height: 190px; /* Reduced height */
        width: 90%; /* Reduced width */
        margin: 8px auto; /* Centered with reduced margin */
    }
    
    .card-front h1 {
        font-size: 18px; /* Smaller heading */
        padding: 0 8px;
        margin-bottom: 5px;
    }
    
    .card-front, .card-back {
        padding: 12px 10px; /* Reduced padding */
        border-radius: 12px; /* Slightly reduced border radius */
    }
    
    .card-back li {
        font-size: 0.85rem; /* Smaller text */
        margin: 6px 0;
        padding: 5px;
    }
    
    .tech-logos {
        gap: 12px; /* Adjusted gap */
        margin-top: 8px; /* Reduced top margin */
    }
    
    .tech-logos i, .tech-logos img, 
    .tech-logos svg {
        width: 24px; /* Smaller icons */
        height: 24px; /* Smaller icons */
        font-size: 1.6rem; /* Smaller icon font */
    }
    
    img[src="assets/images/skills/Microsoft_Azure.svg"],
    img[src="assets/images/skills/vs.svg"] {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Even smaller screens - further optimizations */
@media (max-width: 480px) {
    .skill-card {
        height: 180px; /* Even smaller height */
        max-width: 240px; /* Limit max width */
    }
    
    .card-front h1 {
        font-size: 16px; /* Smaller heading */
        margin-bottom: 4px;
    }
    
    .card-front::after {
        font-size: 16px; /* Smaller flip icon */
        bottom: 8px;
        right: 8px;
    }
    
    .tech-logos {
        gap: 10px;
    }
    
    .tech-logos i, .tech-logos img, 
    .tech-logos svg {
        width: 22px;
        height: 22px;
        font-size: 1.4rem;
    }
    
    img[src="assets/images/skills/Microsoft_Azure.svg"],
    img[src="assets/images/skills/vs.svg"] {
        width: 22px !important;
        height: 22px !important;
    }
    
    /* Reduce back content for better fit */
    .card-back li {
        font-size: 0.8rem;
        margin: 5px 0;
        padding: 4px;
    }
}

/* Improved Certifications Section for Mobile */
@media (max-width: 768px) {
    /* Section title adjustments */
    .certifications-section {
        padding: 60px 15px; /* Reduced padding */
    }
    
    .cert-categories {
        gap: 25px; /* Reduced gap between categories */
        padding: 10px 5px; /* Reduced padding */
    }
    
    .category-title {
        font-size: 1.6rem; /* Smaller title */
        margin-bottom: 15px;
        gap: 8px;
    }
    
    .cert-category {
        padding: 15px 12px; /* Reduced padding */
        border-radius: 12px; /* Slightly smaller radius */
    }
    
    .cert-items {
        gap: 15px; /* Reduced gap */
    }
    
    .cert-item {
        padding: 15px; /* Reduced padding */
        height: auto; /* Adjust height as needed */
    }
    
    /* Adjust certification card content */
    .cert-header {
        gap: 10px; /* Reduced gap */
    }
    
    .cert-header img {
        width: 60px; /* Smaller logo */
        height: 60px;
    }
    
    .cert-header h4 {
        font-size: 1.1rem; /* Smaller title */
    }
    
    .cert-details p {
        font-size: 0.85rem; /* Smaller text */
        margin: 4px 0;
        gap: 6px;
    }
    
    .cert-status {
        font-size: 0.8rem;
        padding: 3px 10px;
        margin-top: 8px;
    }
    
    /* Improve category title appearance */
    .category-title i {
        font-size: 1.5rem;
    }
}

/* Even smaller screens optimization */
@media (max-width: 480px) {
    .certifications-section {
        padding: 50px 10px;
    }
    
    .cert-categories {
        gap: 20px;
        padding: 5px;
    }
    
    .category-title {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .cert-category {
        padding: 12px 10px;
    }
    
    .cert-items {
        gap: 12px;
    }
    
    .cert-item {
        padding: 12px;
    }
    
    /* Further reduced sizes for very small screens */
    .cert-header img {
        width: 50px;
        height: 50px;
    }
    
    .cert-header h4 {
        font-size: 1rem;
    }
    
    .cert-details p {
        font-size: 0.8rem;
    }
    
    /* Adjust specific certification images for smaller screens */
    img[src="assets/images/certs/full stack.png"] {
        width: 120px;
        height: auto;
    }
    
    img[src="assets/images/certs/github.png"] {
        width: 120px;
        height: auto;
    }
    
    /* Add a hint for horizontal scrolling if needed */
    .cert-categories {
        position: relative;
    }
    
    .cert-category::after {
        position: absolute;
        bottom: 5px;
        right: 5px;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.5);
    }
}

/* Improve Certification Items Animation for Mobile */
@media (max-width: 768px) {
    /* Animation optimizations for better performance on mobile */
    .cert-category {
        animation-duration: 6s;
        animation-delay: 0s !important;
    }
    
    /* Reset multiple complex animations to improve performance */
    .cert-category:hover {
        animation: none;
        transform: none; /* Remove complex transform on hover for mobile */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Simpler hover effect */
    }
    
    /* Simpler animation for certification items on mobile */
    .cert-item:hover {
        transform: translateY(-3px); /* Less dramatic movement */
    }
    
    /* Disable or simplify hover animation if causing performance issues */
    .cert-item::before {
        display: none; /* Remove gradient animation on mobile */
    }
    
    /* Provide visual feedback for touch interaction */
    .cert-item:active {
        background: rgba(0, 0, 0, 0.8);
        transform: scale(0.98);
    }
}

/* Custom styling for specific certification logos */
img[src="assets/images/certs/azure.png"] {
    width: 70px !important;
    height: auto !important;
    margin-right: 15px;
}

img[src="assets/images/certs/full stack.png"] {
    width: 150px;
    height: auto;
    margin-right: 10px;
    margin-bottom: 5px;
}

  img[src="assets/images/certs/github.png"] {
        width: 150px;
        height: auto;
    }

/* Adjust certificate header for larger logos */
.cert-item .cert-header {
    align-items: center;
    flex-wrap: wrap;
}

.cert-header h4 {
    flex: 1;
    min-width: 150px;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    img[src="assets/images/certs/azure.png"] {
        width: 60px !important;
    }
    
    img[src="assets/images/certs/full stack.png"] {
        width: 180px;
    }
    
    /* Ensure text wraps properly next to larger images */
    .cert-header h4 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    img[src="assets/images/certs/azure.png"] {
        width: 55px !important;
    }
    
    img[src="assets/images/certs/full stack.png"] {
        width: 150px;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    flex: 1;
    min-width: 300px;
}

.contact-card {
    background: rgba(30, 144, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 280px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-card i {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #1e90ff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(30, 144, 255, 0.4));
}

.contact-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.contact-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #1e90ff, #ff1744);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.contact-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.contact-form {
    background: rgba(30, 144, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1e90ff;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
    width: 100%;
    padding: 12px 25px;
    background: linear-gradient(45deg, #ff1744);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.submit-btn:hover i {
    transform: translateX(5px);
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
    height: 20px;
}

.form-status.success {
    color: #4BB543;
}

.form-status.error {
    color: #FF6B6B;
}

/* Mobile Responsiveness for Contact Section */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-card {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .contact-form h3 {
        font-size: 1.5rem;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .contact-card {
        padding: 20px 15px;
    }
    
    .contact-card i {
        font-size: 2.5rem;
    }
    
    .contact-card h3 {
        font-size: 1.3rem;
    }
    
    .contact-form {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px;
    }
}

/* Contact Section Redesign */
.contact-section {
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

/* Contact Image and Message Area */
.contact-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-decoration {
    position: relative;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.primary-icon {
    font-size: 5rem;
    color: #ffffff;
    position: relative;
    z-index: 2;
    background: linear-gradient(45deg, #1e90ff, #ff1744);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(30, 144, 255, 0.5));
    animation: pulse 2s ease-in-out infinite;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-icons i {
    position: absolute;
    color: rgba(255, 255, 255, 0.3);
    animation: floatIcon 6s ease-in-out infinite;
}

.floating-icons i:nth-child(1) { 
    top: 20%; 
    left: 20%; 
    animation-delay: 0s; 
    font-size: 1.2rem;
}
.floating-icons i:nth-child(2) { 
    top: 70%; 
    left: 30%; 
    animation-delay: 0.5s; 
    font-size: 1.4rem;
}
.floating-icons i:nth-child(3) { 
    top: 30%; 
    left: 70%; 
    animation-delay: 1s; 
    font-size: 1.3rem;
}
.floating-icons i:nth-child(4) { 
    top: 80%; 
    left: 60%; 
    animation-delay: 1.5s; 
    font-size: 1.1rem;
}
.floating-icons i:nth-child(5) { 
    top: 40%; 
    left: 40%; 
    animation-delay: 2s; 
    font-size: 1.5rem;
}
.floating-icons i:nth-child(6) { 
    top: 60%; 
    left: 80%; 
    animation-delay: 2.5s; 
    font-size: 1.2rem;
}

@keyframes floatIcon {
    0% { transform: translateY(0) translateX(0); opacity: 0.3; }
    50% { transform: translateY(-15px) translateX(10px); opacity: 0.7; }
    100% { transform: translateY(0) translateX(0); opacity: 0.3; }
}

.contact-message {
    background: rgba(30, 144, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-message:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contact-message h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-align: center;
    background: linear-gradient(45deg, #1e90ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-message p {
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.6;
    text-align: justify;
}

.availability {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-weight: 500;
    color: #ffffff;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #4BB543;
    border-radius: 50%;
    position: relative;
}

.status-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: #4BB543;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    opacity: 0.5;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Form Container - Keep most of the original styles */
.contact-form-container {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.contact-form {
    background: rgba(30, 144, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Keep the rest of contact form styles from your original code */
/* ...existing form styles... */

/* Mobile Responsiveness for Contact Section */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-image, .contact-form-container {
        width: 100%;
        max-width: 100%;
    }
    
    .contact-decoration {
        height: 150px; /* Smaller height on mobile */
    }
    
    .primary-icon {
        font-size: 4rem; /* Smaller icon on mobile */
    }
    
    .contact-message {
        padding: 20px;
    }
    
    .contact-message h3 {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .contact-decoration {
        height: 120px;
    }
    
    .primary-icon {
        font-size: 3.5rem;
    }
    
    .contact-message {
        padding: 15px;
    }
    
    .contact-message h3 {
        font-size: 1.3rem;
    }
    
    .contact-form {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px;
    }
}

/* Center the "Get In Touch" heading */
.contact-section .section-title {
    text-align: center;
}

/* Center the "Get In Touch" heading in contact section */
.contact-section .section-title {
        font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: white;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 0;
}

/* Remove animations for the contact section */
.contact-decoration .floating-icons i {
    animation: none;
}

.contact-message {
    transform: none;
    transition: none;
    box-shadow: none;
}

/* Resize the "Let's Connect" section */
.contact-section .contact-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Resize the contact message */
.contact-message {
    flex: 1 1 100%;
    padding: 20px;
    background: rgba(30, 144, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Resize the contact form */
.contact-form-container {
    flex: 1 1 100%;
    max-width: 100%;
}

.contact-form {
    padding: 20px;
    background: rgba(30, 144, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove envelope animation */
.contact-decoration .primary-icon {
    animation: none;
}

/* Contact Section Layout */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Ensure both sections stretch to the same height */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-message,
.contact-form-container {
    flex: 1; /* Equal flex proportions */
    padding: 20px;
    background: rgba(30, 144, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Align content properly */
}

/* Remove envelope animation */
.contact-decoration .primary-icon {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-message,
    .contact-form-container {
        width: 100%;
    }
}

/* Remove envelope animation */
.contact-decoration .primary-icon {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-message,
    .contact-form-container {
        width: 100%;
    }
}

/* Contact Details Icons */
.contact-details p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #ffffff;
    margin: 10px 0;
}

.contact-details i {
    font-size: 1.2rem;
    color: #1e90ff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-details p:hover i {
    transform: scale(1.2);
    color: #ff1744;
}

/* Mobile Menu Styles - FIXED */
.menu-toggle {
    display: none;
    z-index: 1001;
    transition: transform 0.3s ease;
    color: rgb(187, 225, 250);
    font-size: 24px;
    cursor: pointer;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

/* Mobile Navigation Styles - FIXED */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }
    
    .menu-toggle {
        display: block !important;
        position: relative;
        cursor: pointer;
        z-index: 1001;
        font-size: 24px;
        color: rgb(187, 225, 250);
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        flex-direction: column;
    }
    
    /* This is critical - ensure active nav links are displayed */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a {
        font-size: 18px;
        width: 100%;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

