/* --- GLOBAL THEMED LINK STYLES --- */
.themed-link, a {
  color: var(--primary-color, #39ff14);
  text-decoration: underline;
  transition: color 0.2s;
}
html.light-mode .themed-link, html.light-mode a {
  color: #003366;
}
.themed-link:hover, a:hover {
  color: #fff;
}
/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* --- THEME COLOR VARIABLES --- */
:root {
  --bg-primary: #121212;
  --bg-secondary: #1E1E1E;
  --bg-tertiary: #1E1E1E;
  --bg-footer: #0A0A0A;
  --bg-nav: rgba(30, 30, 30, 0.8);
  --border-color: #2E2E2E;
  --bg-button: #22c55e;
  --text-heading: #e5e7eb;
  --text-body: #9ca3af;
  --text-button: #111827;
  --text-nav-active: #22c55e;
  --accent-primary: #22c55e;
  --accent-secondary: #38bdf8;
  --shadow-color: rgba(34, 197, 94, 0.2);
}

html.light-mode {
  --bg-primary: #f8f7f4;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ffffff;
  --bg-footer: #e9e7e2;
  --bg-nav: rgba(248, 247, 244, 0.8);
  --border-color: #dcdad3;
  --text-heading: #111827;
  --text-body: #4b5563;
  --text-button: #ffffff;
  --text-nav-active: #16a34a;
  --accent-primary: #16a34a; 
  --accent-secondary: #0ea5e9;
  --shadow-color: rgba(22, 163, 74, 0.15);
}

/* --- General & Body Styles --- */
html {
    scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-body);
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Scroll Progress Bar --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  width: 0%;
  z-index: 99999;
  transition: width 0.1s ease-out;
}

/* --- Preloader Styles (for index.html) --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease, background-color 0.3s ease;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.animated-text {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 2.5s linear infinite;
}

@keyframes shine {
  0% { background-position: -200%; }
  100% { background-position: 200%; }
}

.subtitle {
  font-size: 1.2rem;
  margin-top: 1rem;
  letter-spacing: 1px;
  color: var(--text-body);
}

/* --- Navbar & Theme Toggle --- */
.navbar {
  background: var(--bg-nav);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
  box-shadow: 0 4px 10px var(--shadow-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Corrected Navbar Logo Styles */
.logo-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  height: 60px;
}
.logo-img-small {
  height: 40px;
  padding-bottom: 5px;
}
.navbar-logo img:hover {
  transform: scale(1.05);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  padding: 10px 15px;
  color: var(--text-heading);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: all 0.3s ease-in-out;
  transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-nav-active);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 26px;
  color: var(--accent-primary);
  cursor: pointer;
}

/* Animated Theme Toggle Styles */
.theme-toggle-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    width: 40px;
    height: 40px;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle-btn:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.theme-icon-container {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.theme-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-icon svg {
    stroke: var(--text-body);
    transition: stroke 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon svg {
    stroke: var(--text-heading);
}

html.light-mode .theme-icon-container {
    transform: translateY(-40px);
}

/* --- General Section & Content Styles --- */
section {
  padding: 60px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out, background-color 0.3s ease;
}

section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

#app-content.fade-in-content {
    animation: fadeIn 0.5s ease-in-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h2 {
    color: var(--text-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

p {
    max-width: 600px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

/* --- HOMEPAGE: Hero Section --- */
.hero-section {
  padding: 100px 20px;
  text-align: center;
}

.hero-text {
  margin: 0 auto 30px auto;
}

.hero-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 25px;
  opacity: 0;
}

.hero-subtext {
  font-size: 1.2rem;
  color: var(--text-body);
  max-width: 700px;
}

.btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 28px;
  background-color: var(--bg-button);
  color: var(--text-button);
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s ease;
  box-shadow: 0 0 10px var(--shadow-color);
}

.btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Blinking cursor effect for the typing animation */
.typing-container::after {
  content: '|';
  display: inline-block;
  animation: blink 1s infinite;
  color: var(--accent-primary);
  font-weight: 700;
  transform: translateY(-2px);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hides the cursor when the animation is finished */
.typing-container.typing-done::after {
  display: none;
}

/* --- General Section & Content Styles --- */
section {
  padding: 60px 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-in-out, transform 1s ease-in-out, background-color 0.3s ease;
}

section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

#app-content.fade-in-content {
    animation: fadeIn 1s ease-in-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h2 {
    color: var(--text-heading);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

p {
    max-width: 600px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

/* --- Services Section --- */
#services-section {
  background-color: var(--bg-tertiary);
  padding: 80px 20px;
}

.service-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 50px;
}

.service {
  background: var(--bg-secondary);
  padding: 30px;
  padding-bottom: 50px; 
  border-radius: 12px;
  width: 280px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  position: relative; 
}

.service:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px -10px var(--shadow-color);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.service h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 15px;
}

.service p {
    font-size: 0.95rem;
    color: var(--text-body);
}

.service-arrow {
  position: absolute;
  bottom: 25px;
  right: 25px;
  font-size: 1.2rem;
  color: var(--accent-primary);
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.service:hover .service-arrow {
  opacity: 1;
  transform: translateX(5px);
}

/* --- Logo Ticker Section --- */
#partners-section {
  padding: 80px 0; 
}

#partners-section h2 {
  color: var(--accent-primary);
  text-align: center;
}

.logo-ticker-container {
  overflow: hidden;
  padding: 40px 0;
  background-color: var(--bg-secondary);
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
  mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.logo-track {
  display: flex;
  width: fit-content;
  animation: scroll 30s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-track img {
  height: 60px;
  margin: 0 40px;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-ticker-container:hover .logo-track img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- ABOUT US PAGE SPECIFICS --- */
.section-heading {
    color: var(--accent-primary);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.about-hero {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--bg-secondary);
}

.about-hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-body);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.founder-section {
  max-width: 1200px;
  margin: 0 auto;
}

.founder-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.founder-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 4px solid var(--border-color);
  margin-bottom: 20px;
}

.founder-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.founder-name {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-heading);
}

.founder-role {
  font-size: 1rem;
  color: var(--accent-primary);
  margin: 5px 0 15px 0;
  font-weight: 600;
}

.founder-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 100%;
  margin-bottom: 20px;
  flex-grow: 1;
}

.founder-socials a {
    color: var(--text-body);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.founder-socials a:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

/* --- WEB DEVELOPMENT PAGE --- */
.web-dev-hero {
    padding: 60px 20px;
}

.web-dev-hero h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: 0;
}

#projects {
    background-color: var(--bg-primary);
}

.project-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 40px auto 0 auto;
}
.project {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  text-align: left;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.project:hover {
    transform: scale(1.03);
    box-shadow: 0 0 30px var(--shadow-color);
}
.project h3 {
  margin-top: 0;
}

.why-choose-section {
  background-color: var(--bg-secondary);
  border-radius: 1rem;
  max-width: 1200px;
  margin: 0 auto 60px auto; /* Added margin-bottom */
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}
.feature-card {
  background-color: var(--bg-primary);
  padding: 25px;
  border-radius: 15px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--shadow-color);
}
.feature-icon {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 15px;
}
.feature-card h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.closing-message {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--accent-primary);
}


/* --- Footer --- */
footer {
    background-color: var(--bg-footer);
    color: var(--text-body);
    padding: 60px 20px 20px 20px;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
}

.footer-column-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo img:first-child { height: 50px; }
.footer-logo .footer-logo-text { height: 35px; }
.footer-tagline { font-size: 0.95rem; line-height: 1.6; max-width: 250px; }
.footer-column h4 { font-size: 1.2rem; margin-bottom: 20px; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column ul li { margin-bottom: 10px; }
.footer-column a { text-decoration: none; transition: color 0.3s ease; }
.footer-column a:hover { color: var(--accent-primary); }
.footer-contact-item { display: flex; align-items: center; margin-bottom: 15px; }
.footer-contact-item i { margin-right: 15px; font-size: 1.1rem; }
.footer-socials { display: flex; gap: 20px; margin-top: 20px; }
.footer-socials a { font-size: 1.5rem; }
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.footer-bottom p { font-size: 0.9rem; margin: 0; max-width: none; }

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
  h2, .hero-section h2, .about-hero-title, .web-dev-hero h1, .section-heading { font-size: 2rem; }
  .hero-subtext { font-size: 1.1rem; }
  
  .navbar-container { align-items: center; }
  .menu-toggle { display: block; }
  .navbar-links {
    flex-direction: column; max-height: 0; overflow: hidden;
    width: 100%; padding: 0; background-color: var(--bg-primary);
    position: absolute; top: 100%; left: 0;
    transition: max-height 0.5s ease-in-out, background-color 0.3s ease;
  }
  .navbar-links.show { max-height: 500px; padding: 15px 0; }
  .navbar-links li { width: 100%; text-align: center; }

  .logo-track img { height: 50px; margin: 0 30px; }

  .footer-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-column {
    align-items: center;
  }
  .footer-column ul {
    display: inline-block;
    text-align: left;
  }
  .footer-contact-item {
    justify-content: center;
  }
  .footer-socials {
    justify-content: center;
  }
  
  /* About Us Page Responsive */
  .about-hero-title, .section-heading {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .logo-img { height: 50px; }
  .logo-img-small { height: 35px; }
  
  .service {
    width: 90%;
    max-width: 340px;
  }
  
  /* About Us Page Responsive */
  .founder-card {
    width: 90%;
  }
  .founder-image {
    width: 120px;
    height: 120px;
  }
}

@media (min-width: 992px) {
  .hero-section h2 {
    white-space: nowrap;
  }
}

/* --- ABOUT US PAGE STYLES --- */

/* Re-styling founder-section and founder-card from about_us.css
  to match the new theme variables from styles.css
*/

.founder-section {
  max-width: 1200px;
  margin: 0 auto;
}

.founder-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  flex: 1;
  min-width: 300px;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.founder-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top; /* Ensures the top of the image is shown */
  border: 4px solid var(--border-color);
  margin-bottom: 20px;
}

.founder-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Makes the info section fill the card */
}

.founder-name {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-heading);
}

.founder-role {
  font-size: 1rem;
  color: var(--accent-primary);
  margin: 5px 0 15px 0;
  font-weight: 600;
}

.founder-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.6;
  max-width: 100%;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows the description to push socials down */
}

.founder-socials a {
    color: var(--text-body);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.founder-socials a:hover {
    color: var(--accent-primary);
    transform: scale(1.1);
}

/* --- INTERNSHIPS PAGE STYLES --- */

#heading {
  text-align: center;
  margin-bottom: 20px;
}
#heading h2{
  color: var(--accent-primary);
}
#heading p {
  font-size: 1rem;
  text-align: center;
}

#carousel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 20px;
  margin: 0 auto;
  min-height: 450px; /* Give it space */
  perspective: 1200px;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel {
  width: 300px;
  height: 400px;
  transform-style: preserve-3d;
  transform: rotateX(-10deg) rotateY(0deg);
  transition: transform 0.7s ease-in-out;
  position: relative;
}

.card {
  position: absolute;
  width: 170px;
  height: 100px;
  padding: 20px;
  top: 50%;
  left: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-body);
  border-radius: 20px;
  transform-style: preserve-3d;
  transition: transform 0.7s ease, box-shadow 0.3s, color 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
}

.card img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.card:hover {
    transform: scale(1.1); /* This might fight the 3D transform, let's use the 3D transform from rotateCarousel */
    color: var(--text-heading);
    box-shadow: 0 0 15px var(--shadow-color);
    border-color: var(--accent-primary);
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.controls button {
  padding: 10px 20px;
  font-size: 1.2rem;
  background-color: var(--accent-primary);
  color: var(--text-button);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s;
}
html.light-mode .controls button {
  color: var(--text-button); /* Ensure button text is light in light mode */
}

.controls button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--shadow-color);
}

.details-wrapper {
  display: none; /* Hide until a card is clicked */
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  padding: 20px 10px;
  width: 100%;
}

.details-section {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 15px var(--shadow-color);
  max-width: 600px;
  width: 90%;
  color: var(--text-body);
  display: none; /* Hidden by default, shown by JS */
  position: relative;
}

.details-section img {
  width: 60px;
  height: 60px;
  margin-bottom: 15px;
}
.details-section h2 {
  color: var(--text-heading);
}

#close-btn {
  margin-top: 20px;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: var(--accent-primary);
  color: var(--text-button);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}
html.light-mode #close-btn {
  color: var(--text-button);
}

#close-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px var(--shadow-color);
}

/* --- OUR TEAM STYLES --- */
#container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    margin-top: 60px;
    padding: 60px 20px; /* Use section padding */
}

.main-card {
    width: 200px;
    height: 80px;
    background: var(--bg-tertiary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--accent-primary);
    text-transform: uppercase;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s, box-shadow 0.3s;
}

.main-card:hover {
    background: var(--accent-primary);
    box-shadow: 0 0 25px var(--shadow-color);
    color: var(--text-button);
    transform: scale(1.05);
}
html.light-mode .main-card:hover {
  color: var(--text-button);
}

.image-container {
    display: none; /* Hidden by default */
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    width: 100%;
    gap: 20px;
}

.image-box {
    width: 150px;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    opacity: 0;
    transform: scale(0);
    transition: transform 1s ease-out, opacity 1s ease-out, box-shadow 0.3s;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.image-box:hover {
    transform: scale(1.2);
    box-shadow: 0px 0px 15px var(--shadow-color);
}

.image-box.show {
  opacity: 1 !important;
  transform: scale(1) !important;
  transition: transform 0.8s ease, opacity 0.8s ease;
}

.details-box {
    display: none; /* Hidden by default */
    margin-top: 20px;
    width: 90%;
    max-width: 600px;
    background: var(--bg-secondary);
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-color);
    color: var(--text-body);
    border: 1px solid var(--accent-primary);
    transition: opacity 0.3s ease-in-out;
    margin-left: auto;
    margin-right: auto;
}

#close-team-btn {
  display: none; /* Hidden by default */
  margin-top: 20px;
  background: var(--accent-primary);
  color: var(--text-button);
  font-weight: bold;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px var(--shadow-color);
  transition: transform 0.3s ease;
}
html.light-mode #close-team-btn {
  color: var(--text-button);
}

#close-team-btn:hover {
  transform: scale(1.05);
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
  .controls button:first-child {
    left: 20px;
  }
  .controls button:last-child {
    right: 20px;
  }
  .carousel {
    transform: scale(0.9) translateY(-100px) rotateX(-10deg) rotateY(0deg);
  }
}

@media (max-width: 480px) {
  .card {
    width: 150px;
    height: 80px;
    font-size: 14px;
  }
  .card img {
    width: 40px;
    height: 40px;
  }
  .carousel {
    transform: scale(0.75) translateY(-100px) rotateX(-10deg) rotateY(0deg);
  }
  .details-section img {
    width: 40px;
    height: 40px;
  }
  .details-section h2 {
    font-size: 1.2rem;
  }
  .details-section p {
    font-size: 0.9rem;
  }
}

/* Responsive for team section */
@media (max-width: 600px) {
  .image-container {
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
  }
  .image-box {
    width: 80%;
    height: 180px;
  }
  .details-box {
    margin-top: 20px;
  }
  .main-card {
    width: 150px;
    font-size: 1rem;
  }
}

/* --- CONTENT CREATION PAGE STYLES --- */

.container {
    text-align: center;
    padding: 0px 20px;
    max-width: 1200px; /* Added for consistency */
    margin: 0 auto; /* Added for consistency */
}

.section-title {
    font-size: 2.5rem; /* Matched to section-heading */
    color: var(--accent-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text {
    font-size: 1.1rem; /* Matched to page <p> styles */
    max-width: 700px;
    margin: auto;
    padding: 0 20px 20px 20px;
    color: var(--text-body);
}

.content-section {
    display: grid;
    /* Use auto-fit for better responsiveness */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: auto;
    align-items: center;
}

.content-box {
    padding: 30px;
    background: var(--bg-secondary);
    border-left: 6px solid var(--accent-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color); /* Added for theme consistency */
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out, box-shadow 0.3s;
    text-align: left; /* Better for readability */
    opacity: 0;
    transform: translateY(30px);
}

.content-box.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-in-out;
}


.content-box:hover {
    background: var(--bg-tertiary);
    transform: translateY(-5px); /* Changed from scale for consistency */
    box-shadow: 0 5px 20px var(--shadow-color);
}

.content-box h3 {
    color: var(--text-heading); /* Changed for better contrast */
    font-size: 1.5rem;
    margin-top: 0; /* Added */
    margin-bottom: 10px;
}

.content-box p {
    font-size: 1rem;
    color: var(--text-body);
    max-width: 100%; /* Override default p max-width */
    margin-bottom: 0; /* Added */
}

.icon {
    font-size: 2.5rem; /* Increased size */
    color: var(--accent-primary);
    margin-bottom: 15px;
}

.closing-message {
  margin-top: 40px;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text-heading); /* Changed for emphasis */
}

/* Responsive fix */
@media (max-width: 768px) {
  .content-section {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
}

/* --- DIGITAL MARKETING PAGE STYLES (TIMELINE) --- */

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto; /* Added margin */
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--accent-primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color); /* Added */
    border-radius: 8px;
    padding: 20px;
    width: 45%;
    box-shadow: 0 4px 10px var(--shadow-color);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-in-out;
}

.timeline-item.show {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px var(--shadow-color);
    border-color: var(--accent-primary); /* Added */
    transition: all 0.3s ease-in-out;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.timeline-item h3 {
    color: var(--accent-primary);
    margin-top: 0; /* Added */
}

.timeline-item h3 i {
  color: var(--accent-primary);
  margin-right: 10px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1; /* Added */
}

@media (max-width: 768px) {
    .timeline::after {
        left: 10px;
    }
    .timeline-item {
        width: 90% !important;
        left: 0 !important;
        margin-left: 25px;
        margin-bottom: 20px; /* Added */
    }
    .right {
        left: 0 !important; /* Fix for mobile */
    }
}