/* 
  Clock In & Out Website Styles
  Modern, responsive design with app-matching color scheme
*/

:root {
  --primary-color: #e6b800; /* Updated to gold/yellow from logo */
  --primary-dark: #cc9900;
  --primary-light: #fff8e0;
  --secondary-color: #ff7a4a;
  --text-color: #333333;
  --text-light: #666666;
  --background-color: #ffffff;
  --background-alt: #f9f7f2;
  --border-color: #e1e4e8;
  --success-color: #4caf50;
  --error-color: #f44336;
  --radius: 8px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--background-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

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

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

.btn-secondary {
  background-color: white;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

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

/* Header */
header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 45px;
  width: 45px;
  border-radius: 12px; /* iOS app icon style rounded corners */
  margin-right: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* iOS app icon style */
.app-icon-wrapper {
  position: relative;
  height: 45px;
  width: 45px;
  margin-right: 12px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.app-icon-wrapper:hover {
  transform: scale(1.05);
}

.app-icon-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 0; /* Reset border radius as it's applied to the wrapper */
  margin: 0; /* Reset margin as it's applied to the wrapper */
  box-shadow: none; /* Reset box-shadow as it's applied to the wrapper */
}

.app-icon-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.1) 100%);
  border-radius: 12px;
  z-index: 1;
}

.logo h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--primary-color);
  font-weight: 700;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  align-items: center;
}

nav ul li {
  margin-left: 30px;
  position: relative;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding: 5px 0;
}

/* Animated underline effect */
nav ul li a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li a:not(.btn-primary):hover::after {
  width: 100%;
}

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

nav ul li a.btn-primary {
  padding: 10px 20px;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-block;
}

nav ul li a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Active state for navigation */
nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 2px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* Menu toggle animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, #fffdf5 100%);
}

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

.hero-content {
  flex: 1;
  padding-right: 60px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 8px solid white;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: linear-gradient(120deg, #fffbee, #fff9e0);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255,240,180,0.3) 0%, rgba(255,240,180,0) 70%);
}

.features h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  position: relative;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
}

/* Morpheus Glass Style Feature Cards */
.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease-out forwards;
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Enhanced reflection effect */
.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 20%, 
    rgba(255, 255, 255, 0.4) 36%, 
    rgba(255, 255, 255, 0.7) 43%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 60%
  );
  transform: rotate(35deg);
  transition: transform 0.7s;
  z-index: -1;
}

.feature-card:hover::before {
  transform: rotate(35deg) translate(10%, 10%);
}

/* Add subtle rainbow edge effect */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 215, 0, 0.3) 40%,
    rgba(233, 196, 106, 0.3) 50%,
    rgba(255, 184, 0, 0.3) 60%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card.active {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.3);
}

.feature-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 215, 0, 0.5);
}

/* Inner content styles */
.feature-card-content {
  position: relative;
  z-index: 2;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 0 0 5px rgba(230, 184, 0, 0.3);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.feature-card p {
  color: var(--text-color);
}

/* Screenshot Section */
.screenshots {
  padding: 80px 0;
  background-color: var(--background-alt);
}

.screenshots h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
}

.screenshot-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}

.screenshot-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.screenshot {
  flex: 0 0 300px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 0.1s);
}

.screenshot.revealed {
  opacity: 1;
  transform: translateY(0);
}

.screenshot img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 4px solid white;
  margin-bottom: 10px;
  transition: var(--transition);
}

.screenshot img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.screenshot p {
  font-weight: 500;
}

.slider-controls {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 20px;
}

.prev-btn, .next-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.05);
}

/* Testimonial Section */
.testimonial {
  padding: 80px 0;
  background-color: var(--primary-light);
}

.testimonial-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.testimonial-content.revealed {
  opacity: 1;
  transform: translateY(0);
}

.testimonial h2 {
  margin-bottom: 30px;
  font-size: 2rem;
}

blockquote {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  padding: 0 30px;
}

blockquote::before, blockquote::after {
  content: '"';
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.3;
  position: absolute;
}

blockquote::before {
  top: -20px;
  left: 0;
}

blockquote::after {
  bottom: -40px;
  right: 0;
}

.testimonial-author {
  font-weight: 600;
}

/* Download Section */
.download {
  padding: 80px 0;
  text-align: center;
  background-color: white;
}

.download h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.download p {
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.app-store-button img {
  height: 50px;
  transition: var(--transition);
}

.app-store-button img:hover {
  transform: scale(1.05);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: var(--background-alt);
}

.contact h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
}

#contact-form {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

button[type="submit"] {
  width: 100%;
  cursor: pointer;
}

/* Form message styles */
.form-message {
  margin-top: 20px;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  animation: fadeIn 0.3s ease-out;
}

.form-message.success {
  background-color: #e6f7e6;
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.form-message.error {
  background-color: #ffebee;
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

/* Footer */
footer {
  background-color: #332b00;
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .app-icon-wrapper {
  height: 35px;
  width: 35px;
  margin-right: 10px;
}

.footer-logo img {
  height: 35px;
  width: 35px;
  border-radius: 10px;
}

.footer-logo h3 {
  margin: 0;
  font-size: 1.3rem;
}

.footer-links {
  flex: 1;
  min-width: 150px;
}

.footer-links h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ffe680;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #d9cb9e;
}

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

/* Assign animation delays to feature cards */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

/* Assign animation delays to screenshots */
.screenshot:nth-child(1) { --i: 1; }
.screenshot:nth-child(2) { --i: 2; }
.screenshot:nth-child(3) { --i: 3; }
.screenshot:nth-child(4) { --i: 4; }
.screenshot:nth-child(5) { --i: 5; }
.screenshot:nth-child(6) { --i: 6; }

/* Media Queries */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    padding-right: 0;
    text-align: center;
    margin-bottom: 40px;
  }

  .cta-buttons {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex-direction: column;
    z-index: 1000;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 10px 0;
    text-align: center;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 60px 0;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }

  h2 {
    font-size: 1.8rem !important;
  }

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

  .screenshot {
    flex: 0 0 250px;
  }

  blockquote {
    font-size: 1.1rem;
    padding: 0 20px;
  }
} 