/*========================================
  CONTACT PAGE - PREMIUM 3D DESIGN
  Nurly Energiya Çeşmesi
  Professional Contact Page
=========================================*/

/*========================================
  1. HERO SECTION - 3D ANIMATED BACKGROUND
=========================================*/

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

.contact-hero-3d {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0A2463 0%, #1E3A8A 50%, #0EA5E9 100%);
  padding: 140px 0 100px;
  overflow: hidden;
  min-height: 100vh;
}

/* Animated gradient background */
.contact-hero-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(14, 165, 233, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
  animation: pulseBackground 10s ease-in-out infinite;
}

/* Grid overlay */
.contact-hero-3d::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}

/* Molecules container */
.contact-hero-3d .molecules-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Individual molecule */
.molecule {
  position: absolute;
  width: 120px;
  height: 120px;
  animation: moleculeFloat 15s ease-in-out infinite;
  opacity: 0.4;
}

.molecule::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.8) 0%, rgba(59, 130, 246, 0.4) 100%);
  border-radius: 50%;
  box-shadow: 
    0 0 20px rgba(14, 165, 233, 0.5),
    0 0 40px rgba(14, 165, 233, 0.3);
  animation: moleculePulse 3s ease-in-out infinite;
}

/* Atom connections */
.molecule::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border: 2px solid rgba(14, 165, 233, 0.3);
  border-radius: 50%;
  animation: moleculeRotate 8s linear infinite;
}

/* Atom nodes */
.atom-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.9) 0%, rgba(14, 165, 233, 0.5) 100%);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  animation: atomNodePulse 2s ease-in-out infinite;
}

.atom-node:nth-child(1) {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.atom-node:nth-child(2) {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.atom-node:nth-child(3) {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.atom-node:nth-child(4) {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* Connection lines */
.atom-connection {
  position: absolute;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.3) 50%, transparent 100%);
  height: 2px;
  animation: connectionPulse 2s ease-in-out infinite;
}

.atom-connection:nth-child(5) {
  width: 80px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.atom-connection:nth-child(6) {
  width: 80px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Different molecule positions */
.molecule:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  animation-duration: 18s;
}

.molecule:nth-child(2) {
  top: 20%;
  right: 10%;
  animation-delay: 2s;
  animation-duration: 20s;
  width: 150px;
  height: 150px;
}

.molecule:nth-child(3) {
  bottom: 30%;
  left: 8%;
  animation-delay: 4s;
  animation-duration: 16s;
}

.molecule:nth-child(4) {
  top: 40%;
  right: 5%;
  animation-delay: 1s;
  animation-duration: 22s;
  width: 100px;
  height: 100px;
}

.molecule:nth-child(5) {
  bottom: 15%;
  right: 15%;
  animation-delay: 3s;
  animation-duration: 17s;
}

.molecule:nth-child(6) {
  top: 60%;
  left: 15%;
  animation-delay: 5s;
  animation-duration: 19s;
  width: 80px;
  height: 80px;
}

/* Floating particles */
.floating-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
  border-radius: 50%;
  animation: particleFloat 12s ease-in-out infinite;
  opacity: 0.6;
}

.floating-particle:nth-child(7) { top: 15%; left: 20%; animation-delay: 0s; }
.floating-particle:nth-child(8) { top: 25%; right: 25%; animation-delay: 2s; }
.floating-particle:nth-child(9) { bottom: 35%; left: 30%; animation-delay: 4s; }
.floating-particle:nth-child(10) { top: 45%; right: 35%; animation-delay: 1s; }
.floating-particle:nth-child(11) { bottom: 20%; right: 20%; animation-delay: 3s; }
.floating-particle:nth-child(12) { top: 70%; left: 25%; animation-delay: 5s; }
.floating-particle:nth-child(13) { top: 30%; left: 40%; animation-delay: 2.5s; }
.floating-particle:nth-child(14) { bottom: 40%; right: 40%; animation-delay: 1.5s; }
.floating-particle:nth-child(15) { top: 55%; left: 50%; animation-delay: 3.5s; }
.floating-particle:nth-child(16) { bottom: 25%; left: 60%; animation-delay: 4.5s; }

/* Chemical bonds - diagonal lines */
.chemical-bond {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.4) 50%, transparent 100%);
  transform-origin: left center;
  animation: bondMove 10s ease-in-out infinite;
  opacity: 0.3;
}

.chemical-bond:nth-child(17) {
  width: 200px;
  top: 20%;
  left: 10%;
  transform: rotate(15deg);
  animation-delay: 0s;
}

.chemical-bond:nth-child(18) {
  width: 250px;
  bottom: 30%;
  right: 15%;
  transform: rotate(-20deg);
  animation-delay: 2s;
}

.chemical-bond:nth-child(19) {
  width: 180px;
  top: 50%;
  left: 25%;
  transform: rotate(30deg);
  animation-delay: 4s;
}

/* DNA-like helix effect */
.dna-helix {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
  opacity: 0.15;
}

.dna-strand {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-top-color: rgba(56, 189, 248, 0.5);
  border-radius: 50%;
  animation: dnaRotate 15s linear infinite;
}

.dna-strand:nth-child(20) {
  transform: scale(1);
  animation-delay: 0s;
}

.dna-strand:nth-child(21) {
  transform: scale(0.8);
  animation-delay: 2s;
  animation-direction: reverse;
}

.dna-strand:nth-child(22) {
  transform: scale(0.6);
  animation-delay: 4s;
}

/* Light rays */
.light-ray {
  position: absolute;
  width: 2px;
  height: 150px;
  background: linear-gradient(180deg, transparent 0%, rgba(56, 189, 248, 0.3) 50%, transparent 100%);
  animation: rayPulse 8s ease-in-out infinite;
  opacity: 0.2;
}

.light-ray:nth-child(23) {
  top: 10%;
  left: 30%;
  transform: rotate(45deg);
  animation-delay: 0s;
}

.light-ray:nth-child(24) {
  bottom: 20%;
  right: 25%;
  transform: rotate(-30deg);
  animation-delay: 3s;
}

.light-ray:nth-child(25) {
  top: 30%;
  right: 40%;
  transform: rotate(60deg);
  animation-delay: 5s;
}

.hero-contact-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.hero-contact-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-contact-title .gradient-accent {
  background: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 50%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.hero-contact-subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/*========================================
  2. CONTACT INFO SECTION
=========================================*/
.contact-info-section {
  padding: 7rem 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  position: relative;
  overflow: hidden;
}

/* Background particles */
.contact-info-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.contact-info-card {
  background: #FFFFFF;
  padding: 2.5rem 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--clr-border);
  text-align: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Animated gradient border */
.contact-info-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #0EA5E9, #3B82F6, #8B5CF6, #0EA5E9);
  background-size: 400% 400%;
  border-radius: 1.5rem;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: gradientBorder 6s ease infinite;
}

.contact-info-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  border-radius: 1.5rem;
  z-index: -1;
}

.contact-info-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(10, 36, 99, 0.2),
    0 0 40px rgba(14, 165, 233, 0.15);
  border-color: transparent;
}

.contact-info-card:hover::before {
  opacity: 1;
}

.contact-info-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 50%;
  color: var(--clr-accent);
  margin: 0 auto 1.5rem;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

/* Pulsing ring effect */
.contact-info-icon::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid rgba(14, 165, 233, 0.3);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease;
}

.contact-info-icon::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.5s ease;
}

.contact-info-card:hover .contact-info-icon {
  background: linear-gradient(135deg, #0EA5E9 0%, #3B82F6 100%);
  color: #ffffff;
  transform: rotateY(360deg) scale(1.15);
  box-shadow: 
    0 15px 35px rgba(14, 165, 233, 0.4),
    0 0 60px rgba(14, 165, 233, 0.3);
}

.contact-info-card:hover .contact-info-icon::before {
  opacity: 1;
  transform: scale(1);
  animation: iconPulse 1.5s ease-in-out infinite;
}

.contact-info-card:hover .contact-info-icon::after {
  opacity: 1;
  transform: scale(1);
  animation: iconPulse 1.5s ease-in-out infinite 0.3s;
}

.contact-info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.contact-info-card:hover .contact-info-title {
  color: var(--clr-accent);
  transform: scale(1.05);
}

.contact-info-text {
  font-size: 1rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
}

.contact-info-text a {
  color: var(--clr-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.contact-info-text a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0EA5E9, #3B82F6);
  transition: width 0.3s ease;
}

.contact-info-text a:hover {
  color: var(--clr-accent);
}

.contact-info-text a:hover::after {
  width: 100%;
}

/*========================================
  3. CONTACT FORM & MAP SECTION
=========================================*/
.contact-main-section {
  padding: 0 0 7rem;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  position: relative;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Contact Form */
.contact-form-wrapper {
  background: #FFFFFF;
  padding: 3rem;
  border-radius: 1.5rem;
  border: 1px solid var(--clr-border);
  box-shadow: 0 10px 40px rgba(10, 36, 99, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.contact-form-wrapper:hover {
  box-shadow: 0 15px 50px rgba(10, 36, 99, 0.15);
  transform: translateY(-5px);
}

/* Animated top border */
.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0EA5E9, #3B82F6, #8B5CF6, #0EA5E9);
  background-size: 300% 100%;
  animation: formBorderMove 4s ease infinite;
}

.form-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 1rem;
  color: var(--clr-text-secondary);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--clr-text-primary);
}

.form-input,
.form-textarea,
.form-select {
  padding: 1rem 1.25rem;
  border: 2px solid var(--clr-border);
  border-radius: 0.75rem;
  font-size: 1rem;
  color: var(--clr-text-primary);
  background: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: var(--font-primary);
}

.form-input:hover,
.form-textarea:hover,
.form-select:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.1);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 
    0 0 0 4px rgba(14, 165, 233, 0.1),
    0 4px 12px rgba(14, 165, 233, 0.15);
  transform: translateY(-2px);
}

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

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.75rem;
  background: linear-gradient(135deg, #0EA5E9 0%, #3B82F6 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.form-submit:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 
    0 12px 30px rgba(14, 165, 233, 0.45),
    0 0 40px rgba(14, 165, 233, 0.2);
}

.form-submit:hover::before {
  left: 100%;
}

.form-submit:active {
  transform: translateY(-2px) scale(1.01);
}

/* Map Container */
.contact-map-wrapper {
  background: #FFFFFF;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: 0 4px 20px rgba(10, 36, 99, 0.08);
  height: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.map-header {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #0A2463 0%, #1E3A8A 100%);
  color: #ffffff;
}

.map-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.map-address {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.95);
}

.contact-map {
  flex: 1;
  min-height: 450px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/*========================================
  4. WORKING HOURS SECTION
=========================================*/
.working-hours-section {
  padding: 7rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.working-hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

.working-hours-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.working-hours-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
}

.working-hours-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--clr-text-secondary);
  margin-bottom: 2rem;
}

.working-hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  background: #FFFFFF;
  border-radius: 0.75rem;
  border: 1px solid var(--clr-border);
  transition: all 0.3s ease;
}

.hours-item:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 4px 12px rgba(10, 36, 99, 0.08);
  transform: translateX(5px);
}

.hours-day {
  font-weight: 600;
  color: var(--clr-primary);
  font-size: 0.9375rem;
}

.hours-time {
  font-weight: 500;
  color: var(--clr-text-secondary);
  font-size: 0.9375rem;
}

.hours-item.closed .hours-time {
  color: #EF4444;
}

/* Working Hours 3D Visual */
.working-hours-visual {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0A2463 0%, #1E3A8A 100%);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(10, 36, 99, 0.2);
}

/* 3D Clock Container */
.clock-3d-container {
  position: relative;
  width: 350px;
  height: 350px;
}

/* Main Clock Circle */
.clock-3d {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 0 60px rgba(14, 165, 233, 0.3),
    inset 0 0 40px rgba(255, 255, 255, 0.1);
  animation: clockPulse 4s ease-in-out infinite;
}

/* Clock Face */
.clock-face {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
}

/* Clock Numbers */
.clock-number {
  position: absolute;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.clock-number.number-12 { top: 10%; left: 50%; transform: translateX(-50%); }
.clock-number.number-3 { top: 50%; right: 10%; transform: translateY(-50%); }
.clock-number.number-6 { bottom: 10%; left: 50%; transform: translateX(-50%); }
.clock-number.number-9 { top: 50%; left: 10%; transform: translateY(-50%); }

/* Clock Tick Marks */
.clock-tick {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  transform-origin: center 140px;
}

.clock-tick:nth-child(odd) {
  height: 15px;
  width: 3px;
  background: rgba(255, 255, 255, 0.8);
}

/* Clock Center */
.clock-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  z-index: 10;
}

/* Clock Hands */
.clock-hand {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform-origin: bottom center;
  border-radius: 10px;
  transition: transform 0.3s cubic-bezier(0.4, 2.08, 0.55, 0.44);
}

.clock-hand.hour-hand {
  width: 6px;
  height: 70px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  margin-left: -3px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  transform: rotate(0deg);
}

.clock-hand.minute-hand {
  width: 4px;
  height: 100px;
  background: linear-gradient(180deg, #38BDF8 0%, #0EA5E9 100%);
  margin-left: -2px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.6);
  transform: rotate(0deg);
}

.clock-hand.second-hand {
  width: 2px;
  height: 110px;
  background: linear-gradient(180deg, #EF4444 0%, #F87171 100%);
  margin-left: -1px;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
  transform: rotate(0deg);
  transition: transform 0.1s cubic-bezier(0.4, 2.08, 0.55, 0.44);
}

/* Floating Time Elements */
.floating-time {
  position: absolute;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.75rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  animation: floatTime 6s ease-in-out infinite;
}

.floating-time:nth-child(1) {
  top: 5%;
  left: 10%;
  animation-delay: 0s;
}

.floating-time:nth-child(2) {
  top: 15%;
  right: 5%;
  animation-delay: 1s;
}

.floating-time:nth-child(3) {
  bottom: 10%;
  left: 5%;
  animation-delay: 2s;
}

.floating-time:nth-child(4) {
  bottom: 20%;
  right: 10%;
  animation-delay: 1.5s;
}

/* Clock Glow Ring */
.clock-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  border: 2px solid rgba(14, 165, 233, 0.3);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
}

.clock-glow-ring:nth-child(2) {
  width: 340px;
  height: 340px;
  border-color: rgba(56, 189, 248, 0.2);
  animation-delay: 0.5s;
}

.clock-glow-ring:nth-child(3) {
  width: 360px;
  height: 360px;
  border-color: rgba(14, 165, 233, 0.1);
  animation-delay: 1s;
}

/*========================================
  5. CTA SECTION
=========================================*/
.contact-cta-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, #0A2463 0%, #1E3A8A 100%);
  position: relative;
  overflow: hidden;
}

.contact-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.25) 0%, transparent 50%);
  pointer-events: none;
  animation: ctaPulse 10s ease-in-out infinite;
}

/* Animated grid */
.contact-cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  animation: gridMove 25s linear infinite;
}

/* Floating molecules in CTA */
.cta-molecule {
  position: absolute;
  width: 100px;
  height: 100px;
  opacity: 0.2;
  animation: ctaMoleculeFloat 20s ease-in-out infinite;
}

.cta-molecule::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: rgba(56, 189, 248, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.5);
}

.cta-molecule::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 2px solid rgba(56, 189, 248, 0.3);
  border-radius: 50%;
  animation: ctaMoleculeRotate 8s linear infinite;
}

.cta-molecule:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.cta-molecule:nth-child(2) { top: 20%; right: 10%; animation-delay: 3s; }
.cta-molecule:nth-child(3) { bottom: 15%; left: 10%; animation-delay: 6s; }
.cta-molecule:nth-child(4) { bottom: 25%; right: 15%; animation-delay: 2s; }

.cta-container {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.cta-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.75rem;
  background: #ffffff;
  color: var(--clr-primary);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-phone-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-phone-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(255, 255, 255, 0.2);
}

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

.cta-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.75rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.cta-email-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transition: all 0.5s ease;
}

.cta-email-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2),
    inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.cta-email-btn:hover::before {
  width: 300px;
  height: 300px;
}

/*========================================
  RESPONSIVE DESIGN
=========================================*/
@media (max-width: 1280px) {
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .contact-hero-3d {
    padding: 120px 0 80px;
  }

  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .working-hours-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .working-hours-visual {
    min-height: 400px;
  }

  .clock-3d-container {
    width: 300px;
    height: 300px;
  }

  .clock-3d {
    width: 250px;
    height: 250px;
  }

  .clock-hand.hour-hand {
    height: 55px;
  }

  .clock-hand.minute-hand {
    height: 80px;
  }

  .clock-hand.second-hand {
    height: 90px;
  }
}

@media (max-width: 768px) {
  .contact-hero-3d {
    padding: 100px 0 60px;
  }

  .hero-contact-title {
    font-size: 2rem;
  }

  .hero-contact-subtitle {
    font-size: 1rem;
  }

  .contact-info-section,
  .contact-main-section,
  .working-hours-section,
  .contact-cta-section {
    padding: 5rem 0;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }

  .contact-map-wrapper {
    min-height: 400px;
  }

  .contact-map {
    min-height: 300px;
  }

  .working-hours-visual {
    min-height: 350px;
    padding: 2rem;
  }

  .clock-3d-container {
    width: 250px;
    height: 250px;
  }

  .clock-3d {
    width: 200px;
    height: 200px;
  }

  .clock-glow-ring:nth-child(1) { width: 220px; height: 220px; }
  .clock-glow-ring:nth-child(2) { width: 240px; height: 240px; }
  .clock-glow-ring:nth-child(3) { width: 260px; height: 260px; }

  .floating-time {
    font-size: 0.8rem;
    padding: 0.75rem 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-phone-btn,
  .cta-email-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .contact-hero-3d {
    padding: 80px 0 40px;
  }

  .hero-contact-badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .hero-contact-title {
    font-size: 1.75rem;
  }

  .hero-contact-subtitle {
    font-size: 0.9375rem;
  }

  .contact-info-card {
    padding: 2rem 1.5rem;
  }

  .contact-info-icon {
    width: 56px;
    height: 56px;
  }

  .form-input,
  .form-textarea,
  .form-select {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  .hours-item {
    padding: 0.875rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/*========================================
  FOOTER FIX - Prevent text clipping
=========================================*/
.footer-modern {
  overflow: visible !important;
}

.footer-main {
  overflow: visible !important;
}

.footer-grid {
  overflow: visible !important;
}

.footer-col {
  overflow: visible !important;
  min-width: 0;
}

.footer-contact li {
  overflow: visible !important;
  white-space: normal !important;
  word-wrap: break-word !important;
}

.footer-contact span,
.footer-contact a {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow: visible !important;
}

/*========================================
  ANIMATIONS
=========================================*/
@keyframes pulseBackground {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Grid movement */
@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Molecule floating */
@keyframes moleculeFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) rotate(5deg);
  }
  50% {
    transform: translateY(-15px) rotate(-3deg);
  }
  75% {
    transform: translateY(-25px) rotate(3deg);
  }
}

/* Molecule pulse */
@keyframes moleculePulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
}

/* Molecule rotation */
@keyframes moleculeRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Atom node pulse */
@keyframes atomNodePulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  }
  50% {
    transform: translateX(-50%) scale(1.4);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.9);
  }
}

/* Connection pulse */
@keyframes connectionPulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}

/* Particle floating */
@keyframes particleFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(20px, -30px) scale(1.2);
    opacity: 0.8;
  }
  50% {
    transform: translate(-10px, -20px) scale(0.8);
    opacity: 0.5;
  }
  75% {
    transform: translate(15px, -40px) scale(1.1);
    opacity: 0.7;
  }
}

/* Bond movement */
@keyframes bondMove {
  0%, 100% {
    transform: rotate(15deg) scaleX(1);
    opacity: 0.3;
  }
  50% {
    transform: rotate(15deg) scaleX(1.2);
    opacity: 0.6;
  }
}

/* DNA rotation */
@keyframes dnaRotate {
  0% {
    transform: scale(1) rotate(0deg);
  }
  100% {
    transform: scale(1) rotate(360deg);
  }
}

/* Light ray pulse */
@keyframes rayPulse {
  0%, 100% {
    opacity: 0.2;
    height: 150px;
  }
  50% {
    opacity: 0.4;
    height: 200px;
  }
}

/* Clock animations */
@keyframes clockPulse {
  0%, 100% {
    box-shadow: 
      0 0 60px rgba(14, 165, 233, 0.3),
      inset 0 0 40px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 
      0 0 80px rgba(14, 165, 233, 0.5),
      inset 0 0 60px rgba(255, 255, 255, 0.15);
  }
}

@keyframes rotateHour {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateMinute {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotateSecond {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes floatTime {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Contact Info Card Animations */
@keyframes gradientBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.5;
  }
}

/* CTA Animations */
@keyframes ctaPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

@keyframes ctaMoleculeFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, -40px) rotate(90deg);
  }
  50% {
    transform: translate(-20px, -20px) rotate(180deg);
  }
  75% {
    transform: translate(40px, -60px) rotate(270deg);
  }
}

@keyframes ctaMoleculeRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
