/* ===================== RESET & VARIABLES ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #FF5722;
  --secondary-color: #2196F3;
  --background-gradient: linear-gradient(183deg, #fff7b8, #ffdeff);
  --text-color: #333;
  --light-text: #555;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --container-bg: rgba(255, 255, 255, 0.95);
  --card-bg: #ffffff;
  --button-hover-bg: #f1f1f1;
  --transition-speed: 0.3s;
}

/* ===================== BODY & GLOBAL ===================== */
html,
body {
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--background-gradient) no-repeat center center fixed;
  background-size: cover;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

p {
  margin: 1rem 0;
}

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

a:hover,
a:focus {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* ===================== NAVIGATION BAR ===================== */
.site-header {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 999;
}

.site-nav ul {
  list-style: none;
  padding: 10px 20px;
  border-radius: 10px;
  display: flex;
  gap: 20px;
  box-shadow: 0 4px 8px var(--shadow-color);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
}

.site-nav ul li a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.site-nav ul li a:hover {
  color: var(--secondary-color);
}

/* ===================== ABSTRACT CIRCLE ELEMENTS ===================== */
.circle-element {
  position: fixed;
  border-radius: 50%;
  opacity: 0.2;
  z-index: 5;
  pointer-events: none;
}

.circle-element-1 {
  background: conic-gradient(from 0deg, rgba(255, 87, 34, 0.4), rgba(255, 152, 0, 0.4), rgba(255, 87, 34, 0.4));
}
.circle-element-2 {
  background: conic-gradient(from 45deg, rgba(33, 150, 243, 0.4), rgba(3, 169, 244, 0.4), rgba(33, 150, 243, 0.4));
}
.circle-element-3 {
  background: conic-gradient(from 90deg, rgba(76, 175, 80, 0.4), rgba(139, 195, 74, 0.4), rgba(76, 175, 80, 0.4));
}
.circle-element-4 {
  background: conic-gradient(from 135deg, rgba(156, 39, 176, 0.4), rgba(103, 58, 183, 0.4), rgba(156, 39, 176, 0.4));
}
.circle-element-5 {
  background: conic-gradient(from 180deg, rgba(255, 235, 59, 0.4), rgba(255, 193, 7, 0.4), rgba(255, 235, 59, 0.4));
}
.circle-element-6 {
  background: conic-gradient(from 30deg, rgba(255, 152, 0, 0.4), rgba(255, 87, 34, 0.4), rgba(255, 152, 0, 0.4));
}
.circle-element-7 {
  background: conic-gradient(from 75deg, rgba(3, 169, 244, 0.4), rgba(3, 155, 229, 0.4), rgba(3, 169, 244, 0.4));
}
.circle-element-8 {
  background: conic-gradient(from 120deg, rgba(255, 87, 34, 0.4), rgba(33, 150, 243, 0.4), rgba(255, 87, 34, 0.4));
}
.circle-element-9 {
  background: conic-gradient(from 45deg, rgba(76, 175, 80, 0.4), rgba(3, 169, 244, 0.4), rgba(76, 175, 80, 0.4));
}
.circle-element-10 {
  background: conic-gradient(from 225deg, rgba(255, 235, 59, 0.4), rgba(156, 39, 176, 0.4), rgba(255, 235, 59, 0.4));
}
.circle-element-11 {
  background: conic-gradient(from 150deg, rgba(255, 152, 0, 0.4), rgba(33, 150, 243, 0.4), rgba(255, 152, 0, 0.4));
}
.circle-element-12 {
  background: conic-gradient(from 300deg, rgba(3, 169, 244, 0.4), rgba(255, 87, 34, 0.4), rgba(3, 169, 244, 0.4));
}

/* ===================== MAIN CONTAINER ===================== */
.container {
  display: flex;
  flex-direction: row;
  max-width: 1600px;
  width: 100%;
  background: var(--container-bg);
  border-radius: 20px;
  box-shadow: 0 16px 32px var(--shadow-color);
  overflow: hidden;
  position: relative;
  z-index: 3;
  min-height: 80vh;
  transition: all var(--transition-speed) ease;
}

/* ===================== LEFT SECTION (TEXT BLOCKS) ===================== */
.left-area {
  flex: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  position: relative;
  z-index: 4;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px 0 0 20px;
  backdrop-filter: blur(5px);
}

.top-block {
  margin-bottom: 40px;
  position: relative;
}

.top-block h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #212121;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

.top-block p {
  font-size: 1.2rem;
  line-height: 1.8;
  max-width: 800px;
  color: var(--light-text);
  position: relative;
  z-index: 1;
  border-bottom: 2px solid transparent;
  transition: border-bottom var(--transition-speed) ease;
}

.top-block p:hover {
  border-bottom: 2px solid var(--primary-color);
}

.bottom-block {
  position: relative;
}

.bottom-block h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1;
}

.bottom-block p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 800px;
  color: var(--light-text);
  position: relative;
  z-index: 1;
  border-bottom: 2px solid transparent;
  transition: border-bottom var(--transition-speed) ease;
}

.bottom-block p:hover {
  border-bottom: 2px solid var(--primary-color);
}

/* ===================== RIGHT SECTION (LOGIN AREA) ===================== */
.right-login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px;
  position: relative;
  z-index: 4;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
}

/* ===================== LOGIN CARD ===================== */
.login-card {
  width: 100%;
  max-width: 350px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 12px 24px var(--shadow-color);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  position: relative;
  z-index: 1;
}

.login-card::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 40px;
  height: 40px;
  background: rgba(33, 150, 243, 0.1);
  border-radius: 50%;
  z-index: -1;
  animation: float 25s infinite linear;
}

.login-card h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 20px;
  color: #212121;
  font-weight: 500;
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
}

/* ===================== GOOGLE BUTTON ===================== */
.google-btn {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  color: #444;
  border: 2px solid #ccc;
  padding: 14px 24px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
  box-shadow: 0 4px 8px var(--shadow-color);
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-weight: 500;
}

.google-btn img {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  z-index: 1;
}

.google-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 87, 34, 0.1);
  transition: left var(--transition-speed) ease;
  z-index: 0;
}

.google-btn:hover::before {
  left: 100%;
}

.google-btn:hover {
  background-color: var(--button-hover-bg);
  box-shadow: 0 6px 12px var(--shadow-color);
  transform: translateY(-3px);
}

/* ===================== TEAM GRID & MEMBERS ===================== */
.team-grid-container {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}

.team-grid-container h1 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 1rem;
}

.team-intro {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #333;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 2rem;
}

.team-member {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.team-photo {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.team-member h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.team-member p {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
}

/* ===================== MEDIA QUERIES ===================== */
@media (max-width: 1200px) {
  body.index-page {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
    padding: 20px;
  }
  body.team-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    padding: 20px;
  }
  .container {
    flex-direction: column;
    max-width: 1000px;
    min-height: auto;
    margin-top: 60px;
    margin-bottom: 40px;
  }
  .left-area,
  .right-login {
    padding: 40px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    z-index: 4;
  }
  .left-area h1 {
    font-size: 2.5rem;
  }
  .left-area h2 {
    font-size: 2rem;
  }
  .top-block p,
  .bottom-block p {
    max-width: 100%;
  }
  body::before,
  body::after,
  .container::before,
  .container::after {
    display: none;
  }
  .circle-element-3,
  .circle-element-4,
  .circle-element-5,
  .circle-element-6,
  .circle-element-7,
  .circle-element-8,
  .circle-element-9,
  .circle-element-10,
  .circle-element-11,
  .circle-element-12 {
    display: none;
  }
}

@media (max-width: 768px) {
  .left-area h1 {
    font-size: 2rem;
  }
  .left-area h2 {
    font-size: 1.8rem;
  }
  .login-card {
    padding: 30px;
  }
  .google-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .left-area {
    padding: 20px;
  }
  .right-login {
    padding: 20px;
  }
  .login-card h3 {
    font-size: 1.5rem;
  }
  .google-btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  .google-btn img {
    width: 20px;
    height: 20px;
    margin-right: 8px;
  }
  .bottom-block h2 {
    font-size: 2rem;
  }
}

@media (min-width: 1201px) {
  body.index-page {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
    padding: 20px;
  }
  body.team-page {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
    min-height: 100vh;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
  }
}
