/* ===== GLOBAL STYLES ===== */
:root {
    /* Color Variables - Clean White Theme */
    --primary-color: #2563eb;
    --secondary-color: #0ea5e9;
    --background-color: #ffffff;
    --text-color: #1e293b;
    --text-color-light: #64748b;
    --accent-color: #f97316;
    --border-color: #e2e8f0;
    --card-bg-color: #f8fafc;
    --hover-color: #f1f5f9;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --code-font: 'Fira Code', monospace;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-color-light);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.underline {
    height: 4px;
    width: 70px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
}

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

.primary-btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

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

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

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

.alt-bg {
    background-color: var(--card-bg-color);
}



/* ===== NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border-bottom: 1px solid var(--border-color);
}

#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 30px;
    position: relative;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.contact-btn {
    padding: 8px 20px;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    color: var(--secondary-color);
}

.contact-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger::before {
    transform: translateY(-10px);
}

.hamburger::after {
    transform: translateY(10px);
}



/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background-color);
    min-width: 200px;
    border-radius: 8px;
    box-shadow: var(--shadow-large);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu a:hover, .dropdown-menu a.active {
    background-color: var(--hover-color);
    color: var(--secondary-color);
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* ===== PAGE HEADER ===== */
.page-header {
    background-color: var(--card-bg-color);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 10px;
}

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

.breadcrumb a {
    color: var(--secondary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--section-padding);
    background-color: var(--card-bg-color);
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 20px;
}

.cta-content p {
    margin-bottom: 30px;
}



/* ===== FOOTER ===== */
footer {
    background-color: #1e293b;
    padding-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo a {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-logo p {
    margin-top: 15px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-links-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    color: var(--text-color-light);
    transition: all 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

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

.footer-social a:hover {
    color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-color-light);
    font-size: 0.9rem;
}

.back-to-top {
    width: 40px;
    height: 40px;
    background-color: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    color: var(--background-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}


/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .main-content h1 {
        font-size: 3rem;
    }
    
    .main-content h2 {
        font-size: 1.8rem;
    }
    
    .main-image {
        width: 40%;
    }
    
    .cyber-graphic {
        width: 300px;
        height: 300px;
    }
    
    .cyber-graphic::before {
        width: 220px;
        height: 220px;
    }
    
    .cyber-graphic::after {
        width: 150px;
        height: 150px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-icon {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 80px);
        background-color: var(--card-bg-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0 0 20px 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 10px 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        padding-left: 20px;
        display: none;
    }
    
    .dropdown-menu.show {
        display: block;
    }
    
    .dropdown-menu a {
        border-bottom: none;
        padding: 10px 0;
    }
    
    .dropdown-toggle::after {
        float: right;
    }
    
    .main-section {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 60px;
    }
    
    .main-content {
        max-width: 100%;
    }
    
    .main-buttons {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .main-image {
        position: relative;
        width: 100%;
        height: 300px;
        margin-top: 40px;
    }
    
    .featured-projects-container, 
    .latest-articles-container,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .certification-card {
        flex-direction: column;
    }
    
    .certification-logo {
        padding: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    
    .main-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-content h1 {
        font-size: 2.5rem;
    }
    
    .main-content h2 {
        font-size: 1.5rem;
    }
    
    .achievement-item,
    .roadmap-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .achievement-icon,
    .roadmap-icon {
        margin-bottom: 15px;
    }
}



/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: var(--section-padding);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Adjust ratio as needed */
    gap: 50px;
    align-items: flex-start; /* Align items to the top */
}

.contact-info {
    text-align: left; /* Align section headers left */
    margin-bottom: 2rem;
}

.contact-info {
    margin: 0; /* Remove auto margin for left alignment */
    margin-bottom: 1.5rem;
}

.contact-info h2{
    font-size: 2rem; /* Slightly smaller header for these sections */
}

.contact-info p {
    margin-bottom: 2rem;
}

/* Responsive stacking for contact info and form */
@media screen and (max-width: 992px) { /* Adjust breakpoint if needed */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        text-align: center; /* Center headers when stacked */
    }

    .contact-info .underline{
        margin: 0 auto 1.5rem; /* Center underline when stacked */
    }
}

/* ===== CONTACT DETAILS ===== */
.contact-details {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start; /* Align icon top with text */
    gap: 20px;
    margin-bottom: 1.5rem;
}

.contact-icon {
    flex: 0 0 45px; /* Fixed width for icon container */
    height: 45px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(14, 165, 233, 0.08) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    border: 2px solid var(--border-color);
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-text p {
    margin-bottom: 0;
    color: var(--text-color-light);
    font-size: 0.95rem;
}

.contact-text p a {
    color: var(--text-color-light); /* Link color same as text */
    text-decoration: underline; /* Add underline for clarity */
    text-decoration-color: rgba(100, 255, 218, 0.5); /* Subtle underline */
}

.contact-text p a:hover {
    color: var(--secondary-color);
    text-decoration-color: var(--secondary-color);
}

/* From Uiverse.io by Nawsome */ 
.wheel-and-hamster {
    --dur: 1s;
    position: relative;
    left: 160px;
    top: 120px;
    width: 12em;
    height: 12em;
    font-size: 30px;
  }
  
  .wheel,
  .hamster,
  .hamster div,
  .spoke {
    position: absolute;
  }
  
  .wheel,
  .spoke {
    border-radius: 50%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .wheel {
    background: radial-gradient(100% 100% at center,hsla(0,0%,60%,0) 47.8%,hsl(0,0%,60%) 48%);
    z-index: 2;
  }
  
  .hamster {
    animation: hamster var(--dur) ease-in-out infinite;
    top: 50%;
    left: calc(50% - 3.5em);
    width: 7em;
    height: 3.75em;
    transform: rotate(4deg) translate(-0.8em,1.85em);
    transform-origin: 50% 0;
    z-index: 1;
  }
  
  .hamster__head {
    animation: hamsterHead var(--dur) ease-in-out infinite;
    background: hsl(30,90%,55%);
    border-radius: 70% 30% 0 100% / 40% 25% 25% 60%;
    box-shadow: 0 -0.25em 0 hsl(30,90%,80%) inset,
          0.75em -1.55em 0 hsl(30,90%,90%) inset;
    top: 0;
    left: -2em;
    width: 2.75em;
    height: 2.5em;
    transform-origin: 100% 50%;
  }
  
  .hamster__ear {
    animation: hamsterEar var(--dur) ease-in-out infinite;
    background: hsl(0,90%,85%);
    border-radius: 50%;
    box-shadow: -0.25em 0 hsl(30,90%,55%) inset;
    top: -0.25em;
    right: -0.25em;
    width: 0.75em;
    height: 0.75em;
    transform-origin: 50% 75%;
  }
  
  .hamster__eye {
    animation: hamsterEye var(--dur) linear infinite;
    background-color: hsl(0,0%,0%);
    border-radius: 50%;
    top: 0.375em;
    left: 1.25em;
    width: 0.5em;
    height: 0.5em;
  }
  
  .hamster__nose {
    background: hsl(0,90%,75%);
    border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%;
    top: 0.75em;
    left: 0;
    width: 0.2em;
    height: 0.25em;
  }
  
  .hamster__body {
    animation: hamsterBody var(--dur) ease-in-out infinite;
    background: hsl(30,90%,90%);
    border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%;
    box-shadow: 0.1em 0.75em 0 hsl(30,90%,55%) inset,
          0.15em -0.5em 0 hsl(30,90%,80%) inset;
    top: 0.25em;
    left: 2em;
    width: 4.5em;
    height: 3em;
    transform-origin: 17% 50%;
    transform-style: preserve-3d;
  }
  
  .hamster__limb--fr,
  .hamster__limb--fl {
    clip-path: polygon(0 0,100% 0,70% 80%,60% 100%,0% 100%,40% 80%);
    top: 2em;
    left: 0.5em;
    width: 1em;
    height: 1.5em;
    transform-origin: 50% 0;
  }
  
  .hamster__limb--fr {
    animation: hamsterFRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30,90%,80%) 80%,hsl(0,90%,75%) 80%);
    transform: rotate(15deg) translateZ(-1px);
  }
  
  .hamster__limb--fl {
    animation: hamsterFLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30,90%,90%) 80%,hsl(0,90%,85%) 80%);
    transform: rotate(15deg);
  }
  
  .hamster__limb--br,
  .hamster__limb--bl {
    border-radius: 0.75em 0.75em 0 0;
    clip-path: polygon(0 0,100% 0,100% 30%,70% 90%,70% 100%,30% 100%,40% 90%,0% 30%);
    top: 1em;
    left: 2.8em;
    width: 1.5em;
    height: 2.5em;
    transform-origin: 50% 30%;
  }
  
  .hamster__limb--br {
    animation: hamsterBRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30,90%,80%) 90%,hsl(0,90%,75%) 90%);
    transform: rotate(-25deg) translateZ(-1px);
  }
  
  .hamster__limb--bl {
    animation: hamsterBLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30,90%,90%) 90%,hsl(0,90%,85%) 90%);
    transform: rotate(-25deg);
  }
  
  .hamster__tail {
    animation: hamsterTail var(--dur) linear infinite;
    background: hsl(0,90%,85%);
    border-radius: 0.25em 50% 50% 0.25em;
    box-shadow: 0 -0.2em 0 hsl(0,90%,75%) inset;
    top: 1.5em;
    right: -0.5em;
    width: 1em;
    height: 0.5em;
    transform: rotate(30deg) translateZ(-1px);
    transform-origin: 0.25em 0.25em;
  }
  
  .spoke {
    animation: spoke var(--dur) linear infinite;
    background: radial-gradient(100% 100% at center,hsl(0,0%,60%) 4.8%,hsla(0,0%,60%,0) 5%),
          linear-gradient(hsla(0,0%,55%,0) 46.9%,hsl(0,0%,65%) 47% 52.9%,hsla(0,0%,65%,0) 53%) 50% 50% / 99% 99% no-repeat;
  }
  
  /* Animations */
  @keyframes hamster {
    from, to {
      transform: rotate(4deg) translate(-0.8em,1.85em);
    }
  
    50% {
      transform: rotate(0) translate(-0.8em,1.85em);
    }
  }
  
  @keyframes hamsterHead {
    from, 25%, 50%, 75%, to {
      transform: rotate(0);
    }
  
    12.5%, 37.5%, 62.5%, 87.5% {
      transform: rotate(8deg);
    }
  }
  
  @keyframes hamsterEye {
    from, 90%, to {
      transform: scaleY(1);
    }
  
    95% {
      transform: scaleY(0);
    }
  }
  
  @keyframes hamsterEar {
    from, 25%, 50%, 75%, to {
      transform: rotate(0);
    }
  
    12.5%, 37.5%, 62.5%, 87.5% {
      transform: rotate(12deg);
    }
  }
  
  @keyframes hamsterBody {
    from, 25%, 50%, 75%, to {
      transform: rotate(0);
    }
  
    12.5%, 37.5%, 62.5%, 87.5% {
      transform: rotate(-2deg);
    }
  }
  
  @keyframes hamsterFRLimb {
    from, 25%, 50%, 75%, to {
      transform: rotate(50deg) translateZ(-1px);
    }
  
    12.5%, 37.5%, 62.5%, 87.5% {
      transform: rotate(-30deg) translateZ(-1px);
    }
  }
  
  @keyframes hamsterFLLimb {
    from, 25%, 50%, 75%, to {
      transform: rotate(-30deg);
    }
  
    12.5%, 37.5%, 62.5%, 87.5% {
      transform: rotate(50deg);
    }
  }
  
  @keyframes hamsterBRLimb {
    from, 25%, 50%, 75%, to {
      transform: rotate(-60deg) translateZ(-1px);
    }
  
    12.5%, 37.5%, 62.5%, 87.5% {
      transform: rotate(20deg) translateZ(-1px);
    }
  }
  
  @keyframes hamsterBLLimb {
    from, 25%, 50%, 75%, to {
      transform: rotate(20deg);
    }
  
    12.5%, 37.5%, 62.5%, 87.5% {
      transform: rotate(-60deg);
    }
  }
  
  @keyframes hamsterTail {
    from, 25%, 50%, 75%, to {
      transform: rotate(30deg) translateZ(-1px);
    }
  
    12.5%, 37.5%, 62.5%, 87.5% {
      transform: rotate(10deg) translateZ(-1px);
    }
  }
  
  @keyframes spoke {
    from {
      transform: rotate(0);
    }
  
    to {
      transform: rotate(-1turn);
    }
  }

/* ===== CONTACT SOCIAL ===== */
.contact-social h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

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

.social-links a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Add aria-label for accessibility if not present in HTML */
.social-links a[aria-label="LinkedIn"]:hover { color: #0A66C2; }
.social-links a[aria-label="Twitter"]:hover { color: #1DA1F2; }
.social-links a[aria-label="GitHub"]:hover { color: #e6f1ff; } /* Use text color or a light grey */
.social-links a[aria-label="Medium"]:hover { color: #e6f1ff; } /* Use text color or a light grey */


/* From Uiverse.io by ElSombrero2 */ 
.card {
    overflow: visible;
    width: 345px;
    height: 360px;
  }
  
  .content {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 300ms;
    box-shadow: var(--shadow-large);
    border-radius: 20px;
  }
  
  .front, .back {
    background-color: var(--background-color);
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color);
  }
  
  .back {
    width: 100%;
    height: 100%;
    justify-content: center;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  
  .back::before {
    position: absolute;
    content: ' ';
    display: block;
    width: 160px;
    height: 160%;
    background: linear-gradient(90deg, transparent, var(--secondary-color), var(--primary-color), var(--secondary-color), transparent);
    animation: rotation_481 5000ms infinite linear;
  }
  
  .back-content {
    position: absolute;
    width: 99%;
    height: 99%;
    background-color: var(--card-bg-color);
    border-radius: 5px;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
  }
  
  .card:hover .content {
    transform: rotateY(180deg);
  }
  
  @keyframes rotation_481 {
    0% {
      transform: rotateZ(0deg);
    }
  
    0% {
      transform: rotateZ(360deg);
    }
  }
  
  .front {
    transform: rotateY(180deg);
    font-size: 25px;
  }
  
  .front .front-content {
    position: absolute;
    width: 99%;
    height: 99%;
    background-color: var(--card-bg-color);
    border-radius: 5px;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  
  .front-content .badge {
    padding: 2px 10px;
    border-radius: 10px;
    backdrop-filter: blur(2px);
    width: fit-content;
  }
  
  .description {
    width: 100%;
    padding: 20px;
    backdrop-filter: blur(5px);
    border-radius: 20px;
  }
  
  .title {
    font-size: 15px;
    color: var(--text-color);
    max-width: 100%;
    display: flex;
    justify-content: space-between;
  }
  
  .title p {
    width: 100%;
  }
  
  .card-footer {
    color: #ffffff88;
    margin-top: 5px;
    font-size: 8px;
  }
  
  .front .img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  #bottom {
    background-color: #ff8866;
    left: 50px;
    top: 0px;
    width: 150px;
    height: 150px;
    animation-delay: -800ms;
  }
  
  #right {
    background-color: #ff2233;
    left: 160px;
    top: -80px;
    width: 30px;
    height: 30px;
    animation-delay: -1800ms;
  }
  
  @keyframes floating {
    0% {
      transform: translateY(0px);
    }
  
    50% {
      transform: translateY(10px);
    }
  
    100% {
      transform: translateY(0px);
    }
  }


  /* ===== CAROUSEL MODAL STYLES ===== */

/* --- Modal Base (Leverage existing .modal styles if possible) --- */
.carousel-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* Prevent scroll on body (JS adds/removes class too) */
    background-color: rgba(0, 0, 0, 0.8); /* Darker overlay */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
    display: flex; /* Use flex to center content */
    align-items: center;
    justify-content: center;
}

.carousel-modal.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0s linear 0s;
}

/* Prevent body scroll when modal is active */
body.modal-open {
  overflow: hidden;
}

/* --- Modal Content Box --- */
.carousel-modal-content {
    background-color: var(--card-bg-color); /* Or slightly different */
    color: var(--text-color);
    margin: auto;
    padding: 20px; /* Base padding */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 90%;
    max-width: 900px; /* Adjust max width as needed */
    max-height: 90vh;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Animation for appearing */
    transform: scale(0.9) translateY(-10px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28), opacity 0.3s ease-out; /* Pop effect */
    display: flex; /* To help center content maybe */
    flex-direction: column;
}

.carousel-modal.active .carousel-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* --- Close Button --- */
.carousel-close-btn {
    color: var(--text-color-light);
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: lighter;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    z-index: 10; /* Above image */
}

.carousel-close-btn:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* --- Carousel Container --- */
.carousel-container {
    position: relative; /* For absolute positioning arrows */
    width: 100%;
    /* Adjust height based on content, maybe using aspect ratio */
    aspect-ratio: 16 / 9; /* Example aspect ratio, adjust as needed */
    overflow: hidden; /* Ensures arrows stay within bounds if needed */
    display: flex; /* Center image */
    align-items: center;
    justify-content: center;
    background-color: #000; /* Black background for images */
    border-radius: 4px; /* Match content border-radius */
}

/* --- Carousel Image --- */
.carousel-image {
    display: block;
    max-width: 100%;
    max-height: 100%; /* Fit within container */
    object-fit: contain; /* Scale while preserving aspect ratio */
    opacity: 1;
    transition: opacity 0.5s ease-in-out; /* Fade effect */
}

/* When loading a new image, briefly fade out */
.carousel-image.loading {
    opacity: 0;
}


/* --- Navigation Arrows --- */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(10, 25, 47, 0.6); /* Semi-transparent background */
    color: #fff; /* White arrow */
    border: none;
    border-radius: 50%; /* Circular arrows */
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 5; /* Above image */
    opacity: 0.7; /* Slightly transparent until hover */
    user-select: none; /* Prevent text selection */
}

.carousel-arrow:hover {
    background-color: rgba(10, 25, 47, 0.9);
    opacity: 1;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.prev-arrow {
    left: 15px;
}

.next-arrow {
    right: 15px;
}

/* --- Image Counter --- */
.carousel-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
    z-index: 5;
}


/* --- Responsive Adjustments --- */
@media screen and (max-width: 768px) {
    .carousel-modal-content {
        width: 95%;
        padding: 15px;
    }
    .carousel-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    .prev-arrow {
        left: 10px;
    }
    .next-arrow {
        right: 10px;
    }
    .carousel-close-btn {
        font-size: 2rem;
    }
}

/* ===== GLOBAL SCROLLBAR HIDE ===== */

/* width */
::-webkit-scrollbar {
  width: 4px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px grey;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #0e1d25c7;
}