/* ========================================
   Study-IT — Static Page Styles
   ======================================== */

/* --- Variables --- */
:root {
  --primary: #e23c8e;
  --secondary: #a33188;
  --tertiary: #4046b3;
  --quaternary: #171940;
  --dark: #212529;
  --grey: #777;
  --grey-light: #e4e4e4;
  --grey-bg: #b9b9b9;
  --bg-light-1: #eff1f3;
  --bg-light-2: #f7f8f9;
  --bg-white: #ffffff;
  --gradient-btn: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* --- Reset + Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--grey);
  line-height: 1.7;
  overflow-x: hidden;
  font-size: 15px;
}

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

a {
  color: var(--tertiary);
  text-decoration: none;
}

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

h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.3;
}

ul {
  list-style: none;
}

hr {
  border: none;
  border-top: 1px solid var(--grey-light);
}

/* --- Container --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
}

/* --- Button --- */
.btn-gradient {
  display: inline-block;
  background: var(--gradient-btn);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 14px 40px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.3s;
  font-family: inherit;
}

.btn-gradient:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #fff;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e1e3e5;
}

/* Top bar */
.top-bar {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 13px;
  padding: 6px 0;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-left a {
  color: var(--dark);
}

.top-bar-left a:hover {
  color: var(--primary);
}

.top-bar-left i {
  margin-right: 5px;
}

.top-bar-right .btn-phone {
  display: flex;
  align-items: center;
  background: var(--tertiary);
  color: #fff;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 14px;
  gap: 8px;
}

.top-bar-right .btn-phone:hover {
  background: var(--secondary);
  color: #fff;
}

/* Main header row */
.header-main {
  padding: 12px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 52px;
  width: auto;
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-transform: capitalize;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--tertiary);
}

/* Mobile menu - checkbox hack */
#nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  background: var(--tertiary);
  color: #fff;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 20px;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  background-color: var(--bg-light-1);
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 40px;
  z-index: 1;
}

.hero-content {
  flex: 1;
  padding: 30px 0;
}

.hero-content h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 28px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 500px;
  position: relative;
  z-index: 1;
}

/* Decorative circles */
.circle {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.circle-big {
  width: 52px;
  height: 52px;
}

.circle-medium {
  width: 23px;
  height: 23px;
}

.circle-small {
  width: 15px;
  height: 15px;
}

.circle-xs {
  width: 10px;
  height: 10px;
}

.circle-tertiary {
  background-color: var(--tertiary);
}

.circle-secondary {
  background-color: var(--secondary);
}

.circle-grey {
  background-color: var(--grey-light);
}

.circle-grey-dark {
  background-color: var(--grey-bg);
}

/* Float animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

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

.float-1 { animation: float 4s ease-in-out infinite; }
.float-2 { animation: float 5s ease-in-out infinite 0.5s; }
.float-3 { animation: float 3.5s ease-in-out infinite 1s; }
.float-4 { animation: float 6s ease-in-out infinite 0.3s; }
.float-5 { animation: float 4.5s ease-in-out infinite 1.5s; }
.float-6 { animation: float 5.5s ease-in-out infinite 0.8s; }
.float-h-1 { animation: float-h 4s ease-in-out infinite; }
.float-h-2 { animation: float-h 5s ease-in-out infinite 0.5s; }

/* Hero circles positioning */
.hero .c1 { top: 25%; left: -2%; }
.hero .c2 { top: 43%; left: 5%; }
.hero .c3 { top: 9%; left: 17%; }
.hero .c4 { top: 53%; left: 20%; }
.hero .c5 { top: 61%; left: 39%; }
.hero .c6 { top: 41%; left: 46%; }
.hero .c7 { top: 30%; right: 5%; }
.hero .c8 { top: 7%; right: 0; }

/* ========================================
   SVG CURVES
   ======================================== */
.svg-curve {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  position: relative;
  background: #fff;
  padding: 40px 0 80px;
  overflow: hidden;
}

.services .svg-curve {
  top: -580px;
  height: 600px;
}

.services .container {
  position: relative;
  z-index: 3;
}

.services-grid {
  display: flex;
  gap: 30px;
  align-items: center;
}

.services-cards {
  flex: 7;
}

.cards-row {
  display: flex;
  gap: 20px;
}

.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 32px -7px rgba(0,0,0,0.1);
  padding: 40px 24px 30px;
  text-align: center;
  flex: 1;
  position: relative;
}

.card h4 {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.95rem;
}

.card .icon-wrapper {
  margin-bottom: 20px;
}

.card .icon-wrapper svg {
  width: 60px;
  height: 60px;
}

/* Dots decorations */
.dots-1 {
  position: absolute;
  bottom: 50px;
  left: -104px;
  width: 103px;
  height: 138px;
  background-repeat: no-repeat;
}

.dots-2 {
  position: absolute;
  bottom: -43px;
  right: -39px;
  width: 79px;
  height: 75px;
  background-repeat: no-repeat;
}

/* Services text */
.services-text {
  flex: 5;
  padding-top: 60px;
  padding-left: 20px;
}

.services-text h2 {
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.services-text .subtitle {
  display: block;
  margin-bottom: 16px;
  color: var(--grey);
}

.services-text .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Services circles */
.services .sc1 { top: 76%; left: 27%; }
.services .sc2 { top: 10%; right: -5%; }
.services .sc3 { top: 6%; right: -8%; }
.services .sc4 { top: 9%; right: -10%; }
.services .sc5 { top: 6%; right: -11%; }

/* ========================================
   TECH STACK
   ======================================== */
.tech-stack {
  background-color: var(--bg-light-1);
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}

.tech-stack .svg-curve {
  top: -250px;
  height: 298px;
}

.tech-stack .container {
  position: relative;
  z-index: 1;
}

.tech-stack-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.tech-stack-content {
  flex: 1;
}

.tech-stack-content h2 {
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 4px;
  padding-right: 40px;
}

.tech-stack-content .subtitle {
  display: block;
  margin-bottom: 16px;
  color: var(--grey);
}

.tech-stack-content .lead {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  padding-right: 40px;
}

/* Feature box */
.feature-box {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}

.feature-box-icon.bg-secondary {
  background: var(--secondary);
}

.feature-box-icon.bg-tertiary {
  background: var(--tertiary);
}

.feature-box-info h4 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.feature-box-info p {
  margin-bottom: 4px;
}

.tech-stack-image {
  flex: 1;
  text-align: center;
}

/* Tech stack circles */
.tech-stack .tc1 { left: 60%; top: -10%; }
.tech-stack .tc2 { top: -7%; left: 61%; }
.tech-stack .tc3 { top: -9%; left: 62%; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--quaternary);
  color: rgba(255,255,255,0.7);
  position: relative;
  padding-top: 40px;
}

.site-footer .svg-curve {
  top: -260px;
  height: 400px;
}

.footer-content {
  display: flex;
  gap: 60px;
  padding: 40px 0;
}

.footer-about {
  flex: 2;
}

.footer-contacts {
  flex: 1;
}

.site-footer h4 {
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.site-footer p,
.site-footer li {
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
}

.site-footer a:hover {
  color: #fff;
}

.footer-about img {
  margin-top: 16px;
  max-width: 166px;
}

.footer-copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 16px 0;
  text-align: center;
}

.footer-copyright p {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  margin: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    gap: 12px;
    z-index: 99;
  }

  #nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .top-bar-left .schedule,
  .top-bar-right .btn-phone {
    display: none;
  }

  .services-grid {
    flex-direction: column;
  }

  .services-text {
    padding-left: 0;
    padding-top: 20px;
  }

  .tech-stack-grid {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-image img {
    max-width: 100%;
  }

  .cards-row {
    flex-direction: column;
  }

  .services-cards {
    width: 100%;
  }

  .tech-stack-content h2,
  .tech-stack-content .lead {
    padding-right: 0;
  }

  /* Hide circles on mobile for cleaner look */
  .circle {
    display: none;
  }
}
