:root {
  /* Tetrad color scheme */
  --primary: #ff6b6b;
  --primary-dark: #e85555;
  --secondary: #6bccff;
  --secondary-dark: #55b8e8;
  --accent1: #6bff8c;
  --accent1-dark: #55e874;
  --accent2: #d26bff;
  --accent2-dark: #ba55e8;
  
  /* Neutral colors */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --background-dark: #222222;
  --gray-light: #e5e5e5;
  --gray-medium: #999999;
  --gray-dark: #666666;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  
  /* 3D Elements */
  --card-depth: 15px;
  --button-depth: 4px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}
.logo h1{
  margin-bottom: 0px !important;
}
h1 {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
  color: var(--text-dark);
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: var(--space-sm) auto 0;
  border-radius: var(--radius-full);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
  color: var(--gray-dark);
}

/* Buttons */
.btn, 
button, 
input[type="submit"] {
  display: inline-block;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 var(--button-depth) 0 0 rgba(0, 0, 0, 0.2);
}

.btn:hover, 
button:hover, 
input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 calc(var(--button-depth) + 2px) 0 0 rgba(0, 0, 0, 0.2);
}

.btn:active, 
button:active, 
input[type="submit"]:active {
  transform: translateY(2px);
  box-shadow: 0 calc(var(--button-depth) - 2px) 0 0 rgba(0, 0, 0, 0.2);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--text-light);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: background-color var(--transition-medium);
  padding: var(--space-sm) 0;
}

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

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--primary);
  text-decoration: none;
  z-index: 1001;
}

.logo a {
  color: inherit;
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.main-nav a {
  color: var(--text-dark);
  font-weight: 500;
  padding: var(--space-xs) 0;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width var(--transition-medium);
}

.main-nav a:hover::after {
  width: 100%;
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
}

.burger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-dark);
  transition: var(--transition-medium);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
  max-width: 800px;
  color: var(--text-light);
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Portfolio Section */
.portfolio-section {
  padding: var(--space-xl) 0;
  background-color: var(--background-light);
}

.portfolio-slider {
  position: relative;
  margin: var(--space-lg) 0;
}

.portfolio-item {
  display: none;
  animation: fadeIn var(--transition-medium);
}

.portfolio-item.active {
  display: block;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.prev-btn, .next-btn {
  background-color: var(--secondary);
  color: var(--text-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.prev-btn:hover, .next-btn:hover {
  background-color: var(--secondary-dark);
}

.prev-btn span, .next-btn span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prev-btn::before, .next-btn::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--text-light);
  border-right: 2px solid var(--text-light);
}

.prev-btn::before {
  transform: rotate(-135deg);
}

.next-btn::before {
  transform: rotate(45deg);
}

/* Media Section */
.media-section {
  padding: var(--space-xl) 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.media-section .section-title,
.media-section .section-description {
  color: var(--text-light);
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.media-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.media-item:hover {
  transform: translateY(-10px);
}

.image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.media-item:hover .image-container img {
  transform: scale(1.05);
}

.media-item h3 {
  margin: var(--space-sm) 0;
  padding: 0 var(--space-sm);
}

.media-item p {
  padding: 0 var(--space-sm) var(--space-sm);
}

/* Research Section */
.research-section {
  padding: var(--space-xl) 0;
  background-color: var(--background-light);
}

.research-content {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.research-image {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.research-image img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-slow);
}

.research-content:hover .research-image img {
  transform: scale(1.03);
}

.research-text {
  flex: 1;
  min-width: 0;
}

.research-text h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.research-text p {
  margin-bottom: var(--space-sm);
}

.research-text .btn {
  margin-top: var(--space-md);
}

/* Resources Section */
.resources-section {
  padding: var(--space-xl) 0;
  background-color: var(--gray-light);
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.resource-card {
  background-color: var(--text-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.resource-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.resource-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--space-md);
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.card-content p {
  margin-bottom: var(--space-md);
}

.card-content a {
  color: var(--secondary);
  font-weight: 600;
  position: relative;
  display: inline-block;
  margin-top: auto;
}

.card-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width var(--transition-medium);
}

.card-content a:hover::after {
  width: 100%;
}

/* Projects Section */
.projects-section {
  padding: var(--space-xl) 0;
  background-color: var(--background-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.project-card {
  display: flex;
  flex-direction: column;
  background-color: var(--text-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card .card-image {
  width: 100%;
  height: 300px;
}

.project-card .card-content {
  padding: var(--space-md);
  text-align: left;
}

.project-card h3 {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

.project-card p {
  margin-bottom: var(--space-sm);
}

.project-card .btn {
  align-self: flex-start;
  margin-top: var(--space-md);
}

/* Contact Section */
.contact-section {
  padding: var(--space-xl) 0;
  background-color: var(--accent1);
  color: var(--text-dark);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.contact-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 0;
}

.contact-container {
  display: flex;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

.contact-form {
  flex: 1;
  background-color: var(--text-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background-color: var(--background-light);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.contact-info {
  flex: 1;
  color: var(--text-dark);
}

.contact-info h3 {
  margin-bottom: var(--space-md);
  color: var(--text-dark);
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.info-item .icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--space-sm);
  flex-shrink: 0;
}

.info-item p {
  font-size: 1.1rem;
  margin: 0;
}

.info-item a {
  color: var(--text-dark);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

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

.location-map {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.location-map img {
  width: 100%;
  height: auto;
}

/* Footer */
.footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-logo h2 {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
  color: var(--primary);
}

.footer-logo p {
  color: var(--gray-medium);
}

.footer-links h3,
.footer-social h3,
.footer-contact h3 {
  color: var(--text-light);
  margin-bottom: var(--space-md);
  position: relative;
}

.footer-links h3::after,
.footer-social h3::after,
.footer-contact h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
  margin-top: var(--space-xs);
}

.footer-links ul,
.footer-social ul {
  list-style: none;
}

.footer-links li,
.footer-social li {
  margin-bottom: var(--space-xs);
}

.footer-links a,
.footer-social a {
  color: var(--gray-medium);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--primary);
}

.footer-contact p {
  margin-bottom: var(--space-xs);
  color: var(--gray-medium);
}

.footer-contact a {
  color: var(--gray-medium);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--gray-medium);
  margin: 0;
}

/* Success Page */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-light);
  text-align: center;
  padding: var(--space-md);
}

.success-container {
  max-width: 600px;
  background-color: var(--text-light);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.success-icon {
  font-size: 4rem;
  color: var(--accent1);
  margin-bottom: var(--space-md);
}

.success-title {
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.success-message {
  margin-bottom: var(--space-md);
  color: var(--gray-dark);
}

.success-container .btn {
  margin-top: var(--space-md);
}

/* Privacy & Terms Pages */
.page-content {
  padding-top: 100px;
  padding-bottom: var(--space-xl);
}

.page-content .container {
  max-width: 800px;
}

.page-title {
  margin-bottom: var(--space-lg);
  color: var(--primary);
}

.page-content h3 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

.page-content p {
  margin-bottom: var(--space-md);
}

.page-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.page-content li {
  margin-bottom: var(--space-xs);
}

/* Card Component */
.card {
  background-color: var(--text-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--space-md);
  flex-grow: 1;
  text-align: center;
}

.card-content h3 {
  margin-bottom: var(--space-sm);
  color: var(--primary);
}

.card-content p {
  margin-bottom: var(--space-sm);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes morphing {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  75% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
  100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
}

.morph-shape {
  animation: morphing 15s infinite;
}

/* Cookie Consent Popup Styles */
.cookie-popup {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-popup p {
  margin-bottom: var(--space-sm);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cookie-popup button {
  background-color: var(--accent1);
  color: var(--text-dark);
  font-weight: 600;
}

.cookie-popup button:hover {
  background-color: var(--accent1-dark);
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1.25rem;
  }
  
  .research-content {
    flex-direction: column;
  }
  
  .research-image {
    margin-bottom: var(--space-md);
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .contact-info {
    margin-top: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--text-light);
    padding: 100px var(--space-md) var(--space-md);
    transition: right var(--transition-medium);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  
  .main-nav.active {
    right: 0;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .burger-menu {
    display: flex;
  }
  
  .burger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  
  .burger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .burger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  
  .footer-logo,
  .footer-links,
  .footer-social,
  .footer-contact {
    text-align: center;
  }
  
  .footer-links h3::after,
  .footer-social h3::after,
  .footer-contact h3::after {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .project-card {
    flex-direction: column;
  }
  
  .project-card .card-image {
    height: 200px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: var(--space-xs);
}

.mt-2 {
  margin-top: var(--space-sm);
}

.mt-3 {
  margin-top: var(--space-md);
}

.mt-4 {
  margin-top: var(--space-lg);
}

.mb-1 {
  margin-bottom: var(--space-xs);
}

.mb-2 {
  margin-bottom: var(--space-sm);
}

.mb-3 {
  margin-bottom: var(--space-md);
}

.mb-4 {
  margin-bottom: var(--space-lg);
}

.pt-1 {
  padding-top: var(--space-xs);
}

.pt-2 {
  padding-top: var(--space-sm);
}

.pt-3 {
  padding-top: var(--space-md);
}

.pt-4 {
  padding-top: var(--space-lg);
}

.pb-1 {
  padding-bottom: var(--space-xs);
}

.pb-2 {
  padding-bottom: var(--space-sm);
}

.pb-3 {
  padding-bottom: var(--space-md);
}

.pb-4 {
  padding-bottom: var(--space-lg);
}