di:root {
  --main-bg: #f6f8fe;
  --card-bg: #e9edfb;
  --accent: #4699f9;
  --primary: #222436;
  --light: #fff;
  --shadow: 0 4px 24px 0 rgba(70, 153, 249, 0.07);
}
* { box-sizing: border-box; margin: 0; padding: 0;}
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--main-bg);
  color: var(--primary);
  min-height: 100vh;
  transition: background 0.3s;
}
header {
  background: var(--light);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  padding: 20px 40px;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
}
header img { height: 48px; }
nav {
  display: flex;
  gap: 28px;
}
nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
  padding: 8px 0;
}
nav a::after {
  content: "";
  display: block;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
  margin-top: 2px;
}
nav a:hover {
  color: var(--accent);
}
nav a:hover::after {
  width: 100%;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 60px 10vw 40px 10vw;
  background: linear-gradient(120deg, #eaf2fe 60%, #dae2f7 100%);
  border-radius: 0 0 45px 45px;
  position: relative;
  min-height: 390px;
  margin-bottom: 60px;
}
.hero-content {
  max-width: 520px;
}
.hero-title {
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.16;
}
.hero-desc {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 26px;
}
.hero-btn {
  background: var(--accent);
  color: var(--light);
  padding: 14px 38px;
  border: none;
  border-radius: 27px;
  font-size: 1.18rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s;
}
.hero-btn:hover {
  background: #367bd1;
}
.hero-img {
  max-width: 350px;
  min-height: 240px;
  border-radius: 150%;
}
.section {
  padding: 0 7vw;
  margin: 45px 0 0 0;
}
.section-title {
  text-align: center;
  font-size: 2.1rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 25px;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 24px;
  margin-bottom: 3vw;
}
.tech-card {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 36px 0 18px 0;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.tech-card:hover {
  transform: translateY(-7px) scale(1.04);
  box-shadow: 0 10px 30px #b7d4f8b9;
  background: #eaf6ff;
}
.tech-card img { height: 48px; margin-bottom: 12px;}
.tech-card span {
  display: block;
  font-weight: 600;
  color: #444;
  font-size: 1.11rem;
}
.buttons-section {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-bottom: 30px;
}
.main-btn {
  min-width: 190px;
  padding: 20px 18px;
  background: linear-gradient(110deg, #4699f9 60%, #aafafe 100%);
  color: #fff;
  font-size: 1.12rem;
  font-weight: 600;
  border: none;
  border-radius: 16px;
  margin-bottom: 11px;
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.16s, box-shadow 0.19s;
  overflow: hidden;
  z-index: 1;
}
.main-btn:after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(70, 153, 249, 0.28);
  border-radius: 80%;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s;
  z-index: -1;
}
.main-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px #a0cfff93;
}
.main-btn:hover:after {
  width: 260px;
  height: 260px;
}
.team-section {
  background: linear-gradient(120deg, #dbeefc 60%, #f6f7fb 100%);
  border-radius: 25px;
  margin-top: 58px;
  padding: 40px 7vw;
}
.team-grid {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
.team-card {
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 16px;
  flex: 1 1 205px;
  max-width: 260px;
  min-width: 205px;
  padding: 18px 10px 22px 10px;
  text-align: center;
  margin-bottom: 12px;
}
.team-card img { border-radius: 50%; height: 78px; margin-bottom: 11px; }
.team-card h4 { font-size: 1.13rem; margin: 0 0 4px 0;}
.team-card span { color: #4699f9; font-size: 0.99rem;}
.testimonial-section {
  margin: 48px 0;
  padding: 38px 7vw;
}
.testimonial {
  background: var(--light);
  padding: 32px 33px 22px 33px;
  margin-bottom: 20px;
  border-radius: 25px;
  box-shadow: var(--shadow);
  text-align: center;
  font-style: italic;
  font-size: 1.09rem;
}
footer {
  background: var(--light);
  color: #697390;
  text-align: center;
  padding: 34px 0 16px 0;
  font-size: 0.93rem;
  border-radius: 30px 30px 0 0;
  margin-top: 70px;
  box-shadow: 0 -3px 25px #a0abbd25;
}
/* Minimal dark/light toggle styling */
.toggle-btn {
  background: #f2f2f7;
  padding: 7px 18px;
  color: #222;
  border-radius: 13px;
  border: none;
  position: absolute;
  top: 25px;
  right: 30px;
  font-weight: bold;
  cursor: pointer;
}
body.dark {
  --main-bg: #161a2c;
  --card-bg: #252b47;
  --primary: #e9eaf7;
  --light: #1f2336;
}
body.dark header, body.dark .team-section, body.dark footer {
  background: var(--card-bg);
  color: var(--primary);
}
body.dark nav a { color: #e9eaf7; }
body.dark nav a:hover { color: var(--accent);}
body.dark .section-title { color: var(--accent);}
body.dark .testimonial { background: #242b43; color: #b5c5ef;}
body.dark .hero-btn { background: #232e48; color: var(--accent);}
@media (max-width:900px) {
  .hero {flex-direction:column-reverse;align-items:center;gap:30px;}
  .hero-content,.hero-img{max-width: 100%;}
  .section { padding: 0 2vw;}
  .testimonial-section { padding: 32px 2vw;}
  .team-section { padding: 40px 2vw;}
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  background: var(--header-bg, #ffffff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
}

.logo-section {
  display: flex;
  align-items: center;
  border-radius: 80%;
  gap: 05px;
}

.logo-link img {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo-link img:hover {
  transform: scale(1.1);
}

.company-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0078ff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
}

nav a {
  text-decoration: none;
  color: #333;
  margin: 0 15px;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0078ff;
}

body.dark header {
  --header-bg: #1a1a1a;
}

body.dark nav a {
  color: #f0f0f0;
}

body.dark .company-name {
  color: #4dabff;
}

.toggle-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  padding: 8px 16px;
  background: #0078ff;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-btn:hover {
  background: #005fcc;
}

/* Custom styles for Tech Stack section */
.tech-stack-section {
    font-family: 'Inter', sans-serif;
    background-color: #f8faff;
    background-image: radial-gradient(circle at 50% 0%, #f3e8ff 0%, #f8faff 0%, #ffffff 70%);
}

/* --- OPENING ANIMATION --- */
.tech-stack-section .animated-header,
.tech-stack-section .animated-panel-container,
.tech-stack-section .animated-nav {
    opacity: 0;
    animation: techStackFadeUp 0.7s ease-out forwards;
}

.tech-stack-section .animated-header {
    animation-delay: 0.1s;
}
.tech-stack-section .animated-panel-container {
    animation-delay: 0.3s;
}
.tech-stack-section .animated-nav {
    animation-delay: 0.5s;
}

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

/* --- TAB PANEL ANIMATION --- */
@keyframes techStackTabFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.tech-stack-section .tab-panel {
    display: none;
}

.tech-stack-section .tab-panel.active {
    display: grid;
    animation: techStackTabFadeIn 0.5s ease-out forwards;
}

.tech-stack-section .tab-btn.active {
    color: #8b5cf6;
    font-weight: 700;
    border-top-color: #8b5cf6;
}

/* 🌟 UPDATED TECH CARD STYLING */
.tech-stack-section .tech-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    border-radius: 14px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);

    width: 120px;      /* Less width */
    height: 150px;     /* Bigger height */
    margin: 0 auto;    /* Center block */
}

/* Bigger centered icons */
.tech-stack-section .tech-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

/* Text below icons */
.tech-stack-section .tech-card span {
    margin-top: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

/* --- Scoped Styles for Mastermind Section --- */
.mastermind-section-component {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333;
    margin: 0;
    padding: 60px 20px;
}

/* --- Mastermind Section Wrapper --- */
.mastermind-section-component .mastermind-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mastermind-section-component .mastermind-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    flex-wrap: wrap;
}

/* --- Left Column: Text Content --- */
.mastermind-section-component .mastermind-text {
    flex: 1;
    min-width: 350px;
}

.mastermind-section-component .mastermind-text h2 {
  font-size: 2.0vw;
  font-weight: 600;
  background: linear-gradient(90deg, #5B6FD8 0%, #4699f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 18px;
  line-height: 1.15;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mastermind-section-component .mastermind-text .description {
    font-size: 18px;
    color: #444;
    line-height: 1.8;  
    white-space: normal;
}

.mastermind-section-component .mastermind-text .cta {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 40px;
}

/* --- Contact Links --- */
.mastermind-section-component .contact-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 100px;
}

.mastermind-section-component .contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.mastermind-section-component .contact-link:hover {
    color: #4699f9;
}

.mastermind-section-component .contact-link .icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.mastermind-section-component .contact-link span {
    white-space: nowrap;
}

/* --- Right Column: Image Content --- */
.mastermind-section-component .mastermind-image {
  flex: 0 0 650px; /* fixed column width for the image column */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* This wrapper holds the image */
.mastermind-section-component .image-wrapper {
  position: relative;
  width: 650px;
  height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0 0 30%;
}

/* The main image */
.mastermind-section-component .image-wrapper img {
  width: 600px;
  height: 588px;
  border-radius: 20%;
  object-fit: cover;
}

/* caption below the image */
.mastermind-section-component .mastermind-caption {
  margin-top: 18px;
  text-align: center;
  position: absolute;
    top: 10;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.mastermind-section-component .mastermind-caption h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin: 6px 0 4px 0;
}

.mastermind-section-component .mastermind-caption p {
  font-size: 0.95rem;
  color: #666;
  margin: 0;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .mastermind-section-component {
        padding: 40px 20px;
    }

    .mastermind-section-component .mastermind-grid {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .mastermind-section-component .mastermind-text {
        min-width: 100%;
        text-align: center;
    }

    .mastermind-section-component .mastermind-text h2 {
        font-size: 2.2rem;
        white-space: nowrap;
    }

    .mastermind-section-component .mastermind-image {
        width: 100%;
    }

    .mastermind-section-component .image-wrapper {
        width: 320px;
        height: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .mastermind-section-component .image-wrapper img {
        width: 300px;
        height: 300px;
    }

    .mastermind-section-component .image-wrapper::after {
        width: 360px;
        height: 360px;
    }

    .mastermind-section-component .contact-links {
        align-items: center;
    }
}
