/* Trinity Studio Website Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Variables for consistent theming */
:root {
  --bg-primary: #0e0e0e;
  --bg-secondary: #1a1a1a;
  --bg-card: #1e1e1e;
  --accent-primary: #FFB400;
  --accent-secondary: #20B2AA;
  --text-primary: #F5F0E8;
  --text-secondary: #B8B8B8;
  --text-muted: #808080;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Enhanced typography for better hierarchy */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.tamil-text {
  font-style: italic;
  color: var(--accent-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 180, 0, 0.3);
  text-underline-offset: 4px;
}

/* Header and Navigation */
.header {
  position: sticky;
  top: 0;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 180, 0, 0.1);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Main Content Areas */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 4rem 0;
}

/* Hero Section with Banner Image */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: 
    linear-gradient(
      135deg, 
      rgba(14, 14, 14, 0.85) 0%, 
      rgba(14, 14, 14, 0.75) 30%, 
      rgba(14, 14, 14, 0.8) 70%, 
      rgba(14, 14, 14, 0.9) 100%
    ),
    radial-gradient(circle at 30% 30%, rgba(255, 180, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(32, 178, 170, 0.1) 0%, transparent 50%),
    url('../images/PHOTO-2025-02-22-17-47-33.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 25%, rgba(255, 180, 0, 0.03) 25%, rgba(255, 180, 0, 0.03) 50%, transparent 50%, transparent 75%, rgba(255, 180, 0, 0.03) 75%),
    linear-gradient(-45deg, transparent 25%, rgba(32, 178, 170, 0.03) 25%, rgba(32, 178, 170, 0.03) 50%, transparent 50%, transparent 75%, rgba(32, 178, 170, 0.03) 75%);
  background-size: 60px 60px;
  animation: movePattern 20s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes movePattern {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.hero-logo-img {
  width: 250px;
  max-width: 80vw;
  height: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8)) 
          drop-shadow(0 0 15px rgba(0, 0, 0, 0.6));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.9)) 
          drop-shadow(0 0 20px rgba(255, 180, 0, 0.3));
}

.hero-content h1 {
  margin-bottom: 1rem;
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 
               0 0 20px rgba(0, 0, 0, 0.8),
               1px 1px 0px rgba(0, 0, 0, 1);
}

.hero-tagline {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 
               0 0 15px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  color: var(--accent-primary);
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 
               0 0 15px rgba(0, 0, 0, 0.7);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #FFA500 100%);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 15px rgba(255, 180, 0, 0.3);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FFA500 0%, var(--accent-primary) 100%);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 6px 20px rgba(255, 180, 0, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent-secondary);
  position: relative;
  overflow: hidden;
}

.btn-secondary:hover {
  background-color: var(--accent-secondary);
  color: var(--bg-primary);
  border-color: var(--accent-secondary);
  box-shadow: 0 4px 15px rgba(32, 178, 170, 0.3);
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 180, 0, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 180, 0, 0.3);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

/* Space Cards */
.space-card {
  position: relative;
  overflow: hidden;
}

.space-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.space-title {
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.space-uses {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.space-feature {
  background-color: var(--bg-secondary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

/* Forms */
.form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(255, 180, 0, 0.2);
  border-radius: 8px;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(255, 180, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Enhanced Social Proof */
.social-proof {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(32, 178, 170, 0.05) 100%);
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 180, 0, 0.1);
  border-bottom: 1px solid rgba(255, 180, 0, 0.1);
}

.social-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.proof-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid rgba(255, 180, 0, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.proof-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 180, 0, 0.3);
}

.proof-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.proof-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.social-proof-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  opacity: 0.8;
}

.social-proof-item {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #0a0a0a 100%);
  padding: 3rem 0 1rem;
  text-align: center;
  border-top: 1px solid rgba(255, 180, 0, 0.1);
}

.footer-content {
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent-primary);
  background-color: rgba(255, 180, 0, 0.1);
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.contact-info a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.contact-info a:hover {
  color: var(--accent-primary);
  border-color: rgba(255, 180, 0, 0.3);
  background-color: rgba(255, 180, 0, 0.05);
}

/* Map Container */
.map-container {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
    background: rgba(255, 180, 0, 0.1);
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-toggle:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
  }
  
  .nav-links.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14, 14, 14, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    border-top: 2px solid rgba(255, 180, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  
  .nav-links.active a {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 180, 0, 0.05);
    border: 1px solid rgba(255, 180, 0, 0.2);
    text-align: center;
    font-weight: 600;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .nav {
    padding: 1rem;
  }
  
  .hero {
    min-height: 70vh;
    background-attachment: scroll; /* Better performance on mobile */
  }
  
  .hero-content {
    padding: 1.5rem;
  }
  
  .hero-logo-img {
    width: 200px;
    margin-bottom: 1rem;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .hero-logo-img {
    width: 150px;
  }
}

/* Feature Icons */
.feature-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  display: inline-block;
  padding: 1rem;
  background: rgba(255, 180, 0, 0.1);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 180, 0, 0.2);
}

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

.text-accent {
  color: var(--accent-primary);
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form error animation */
.error-shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Image placeholders */
.image-placeholder {
  background: linear-gradient(45deg, var(--bg-secondary) 25%, transparent 25%), 
              linear-gradient(-45deg, var(--bg-secondary) 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, var(--bg-secondary) 75%), 
              linear-gradient(-45deg, transparent 75%, var(--bg-secondary) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-weight: 500;
  border: 2px dashed rgba(255, 180, 0, 0.3);
  border-radius: 8px;
}