﻿#games-container img {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

    #games-container img:hover {
        transform: scale(1.2);
        box-shadow: 0 4px 10px rgba(255, 0, 0, 0.6);
    }
.grid {
    justify-content: center;
}
#playableFrame {
  aspect-ratio: 9/16;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: black;
}
p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1em;
}
:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-text-secondary: #d1d1d1; /* softer gray for paragraphs */
    --color-accent: #C244A5;
    --color-secondary: #DD8152;
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', sans-serif;
    --scroll-speed: 25s;
}

/* Light mode override */
body.light-mode {
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-text-secondary: #333333;
    --color-accent: #DD8152;
    --color-secondary: #C244A5;
}
/* General text styling */
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    transition: background-color 0.4s, color 0.4s;
}
/* Navigation links */
.nav-link {
    color: var(--color-text);
    transition: color 0.3s ease;
}



    .nav-link:hover {
        color: var(--color-accent);
    }


/* Headings */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-accent);
    letter-spacing: 1px;
    font-weight: 700;
    /*-webkit-text-stroke: 1px black;*/ /* Outline width + color */
    /*;*/ /* (For extra browser support) */
}

/* Make main heading text different from accent color in light mode */
body.light-mode h1 {
    color: var(--color-secondary) !important;
}

/* Banner styling */
section {
    position: relative;
    overflow: hidden;
}


p {
    color: var(--color-text);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

    a:hover {
        opacity: 0.9;
    }

/* Button styling */
.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-text);
    transition: all 0.3s ease;
    transform: scale(1);
}

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

.btn-secondary {
    background-color: #222;
    color: var(--color-text);
    transition: all 0.3s ease;
    transform: scale(1);
}

    .btn-secondary:hover {
        background-color: var(--color-accent);
        transform: scale(1.05);
    }

    /* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem; /* spacing between tags */
}

.skill-tag {
    background-color: rgba(194, 68, 165, 0.15); /* same accent color but very transparent */
    color: var(--color-text);
    border: 1px solid rgba(194, 68, 165, 0.3);
    padding: 6px 14px;
    border-radius: 9999px; /* pill shape */
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

    .skill-tag:hover {
        background-color: rgba(221, 129, 82, 0.25); /* warm hover tone */
        border-color: rgba(221, 129, 82, 0.4);
        transform: translateY(-2px);
    }

    /*Toggle Button*/
.theme-btn {
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    z-index: 50;
}

    .theme-btn:hover {
        background: var(--color-accent);
        color: #fff;
        border-color: var(--color-accent);
        transform: scale(1.05);
    }

#theme-toggle {
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.light-mode #theme-toggle {
    background: rgba(221, 129, 82, 0.2);
    border-color: #DD8152;
    color: #000;
}

/* Override Tailwind gray colors for theme support */
.text-gray-400 {
    color: var(--color-text-secondary) !important;
}
.text-gray-300{
    color: var(--color-text) !important;
    font-weight: bold;
}

.text-gray-200 {
    color: var(--color-text) !important;
}

.text-white {
    color: var(--color-text) !important;
}

/* Card backgrounds for light mode */
body.light-mode .bg-gray-800,
body.light-mode .bg-gray-900,
body.light-mode .custom-card {
    background-color: #f5f5f5 !important;
    border: 1px solid #e0e0e0;
}

body.light-mode .bg-gray-700 {
    background-color: #e8e8e8 !important;
}

/* Button text in light mode */
body.light-mode .bg-blue-600 {
    background-color: #2563eb !important;
    color: white !important;
}

/* Fix hardcoded orange color for name */
.text-\[#DD8152\] {
    color: var(--color-secondary) !important;
}

/* Fix secondary button for light mode */
body.light-mode .btn-secondary {
    background-color: #333 !important;
    color: white !important;
    border: 1px solid #555;
}

body.light-mode .btn-secondary:hover {
    background-color: var(--color-accent) !important;
    color: white !important;
}

/* Tab content transitions */
.tab-content {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.tab-content.hidden {
    opacity: 0;
    pointer-events: none;
}

.tab-content.fade-out {
    opacity: 0;
}

.tab-content.fade-in {
    opacity: 1;
}

/* Scrolling animations */
@keyframes scroll-right {
    from{
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes scroll-left {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.animate-scroll-right {
    margin: 50px auto;

    align-items: center;
    justify-content: center;
    gap: 5em;
    /*
    */
    animation: scroll-right 25s linear infinite;
    will-change: transform;

    display: flex;
    padding-right: 5em;
    margin: 50px auto;
    transition: all 0.4s ease;

}

.animate-scroll-left {
    margin: 50px auto;
    align-items: center;
    justify-content: center;
    gap: 5em;
    /*
    */
    animation: spin 20s linear infinite;
    display: flex;
    padding-right: 5em;
    /* margin: 50px auto; */
}

/* Pause animation on hover */
/* .animate-scroll-right:hover,
.animate-scroll-left:hover {
    animation-play-state: paused;
} */

/* marquee wrapper */
.marquee {
    width: 100%;
    overflow: hidden;       /* viewport */
    position: relative;
  }
  
  /* track that moves — width = content's full width (2x group) */
  .marquee-track {
    display: flex;
    gap: 2rem;
    align-items: center;
    width: max-content;     /* ensure full natural width */
    will-change: transform;
    animation: marquee 18s linear infinite;
  }
  
  /* group represents one set of cards (must be duplicated) */
  .marquee-group {
    display: flex;
    gap: 2rem;
    align-items: center;
    min-width: max-content;
  }
  
  /* single company card */
  .company-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    /* max-height: 100px; */
    background: rgba(255,255,255,0.03);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
    text-align: center;
    color: var(--color-text);
    text-decoration: none;
    transition: transform .25s ease, background-color .25s ease;
  }
  .masgames-card {
    background-color: #000000;

  }
  .filestechnology-card {
    background-color: #3d61af;

  }
  .white-card {
    background-color: #ffffff;

  }
  
  .company-card:hover   {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.05);
    background-color:  #C244A5;
    transition: all 0.3s ease;

  }
/* Pause ALL tracks when hovering over any card */
/* Slow down on hover instead of pause */
/* .companies-view:hover .animate-scroll-right {
    --scroll-speed: 60s;
  } */
  /* logo block styling */
  .company-card .logo {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: #ffffff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 0.75rem;
  }
  
  /* headings inside card */
  .company-card h4 {
    margin: 0;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
  }
  
  /* small description */
  .company-card p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
  }
  
  /* marquee animation: move left by exactly 50% of track (the duplicate) */
  @keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  
  /* pause on hover for usability */
  .marquee:hover .marquee-track,
  .marquee:focus-within .marquee-track {
    animation-play-state: paused;
  }
  
  /* accessibility: prefers reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .marquee-track {
      animation: none;
    }
  }
  
  /* responsive tweaks */
  @media (max-width: 640px) {
    .company-card { min-width: 160px; padding: 0.75rem; }
    .company-card .logo { width: 64px; height: 64px; }
  }
  .scroll-track {
    display: flex;
    width: max-content;
    animation: scroll-left 6s linear infinite;
  }
  

  .logo-slider {
    position: relative;
    width: 0%;
    overflow: hidden;
  }
  
  .logo-track {
    display: flex;
    width: fit-content;
    animation: scroll-left 2s linear infinite;
  }
  
  .logo-group {
    display: flex;
    gap: 3rem;
  }
  
  @keyframes scroll-left {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }
  .carousel {
    margin: 50px auto;
    width: 90%;
    border: 5% solid red;
    display: flex;
    align-items: center;
    overflow-x: auto;
    margin:50px auto;

  }
  .carousel::-webkit-scrollbar{
      display: none;
  }

  .companies-view {
    margin: 50px auto;
    width: 100%;
    border: 5% solid red;
    display: flex;
    align-items: center;
    overflow-x: auto;
    margin:50px auto;
  }
  .companies-view::-webkit-scrollbar{
    display: none;
}
/* .group{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5em;
    animation: spin 5s linear infinite;
    padding-right: 5em;
} */
  .card
  {
    flex: 0 0 5em;
   height: 5em;
padding: 1em;
font-size: 3rem;
border-radius: 2em;
text-align: center;
align-content: center;
background: #182279;
text-decoration-color: white;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
@keyframes spin {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}


.custom-card {
    flex: 0 0 5em;  
    background-color: #2d2d2d; /* equivalent to Tailwind bg-gray-800 */
    padding: 1em; /* Tailwind p-10 = 2.5rem (40px) */
    border-radius: 2em;/* Tailwind rounded-xl = 12px */
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3); /* Tailwind shadow-lg */
    min-width: 500px;
    max-width: 600px;
    /* height: 15em; */
  }

  .trusted-section {
    /* padding: 5rem 1.5rem;       py-20 px-6 */
    text-align: center;
    /* background-color: #1f2937;  bg-gray-800 */
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); shadow-lg */
  }
  
  /* For medium screens and up (md) */
  @media (min-width: 768px) {
    .trusted-section {
      padding: 2rem 2rem;   /* md:px-20 */
      margin: 0 5rem;       /* md:mx-20 */
    }
  }



  
  