/* Common styles for Engineers Insight website */

/* Base styles */
body {
  font-family: Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: rgba(0, 0, 0, 0.87);
  width: 100%;
}

/* Navigation */
.navbar {
  padding: 1rem 0;
  background: white;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  width: 100%;
  height: 120px;
}

.navbar .container {
  padding: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.navbar img {
  height: 125px;
  width: auto;
  object-fit: contain;
  margin-left: 2rem;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-right: 2rem;
}

.nav-links a {
  color: rgba(0, 0, 0, 0.87);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #08ff85;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #08ff85;
  border-radius: 1px;
}

/* Mobile menu */
.hamburger {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1031;
  margin-right: 1rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: rgba(0, 0, 0, 0.87);
  margin: 5px 0;
  transition: all 0.3s ease;
}

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

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  background: white;
  padding: 0;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  z-index: 1029;
  width: 100%;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.mobile-menu a {
  display: block;
  padding: 1rem 2rem;
  color: rgba(0, 0, 0, 0.87);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin: 0;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: #08ff85;
}

.mobile-menu.active {
  display: block;
}

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

/* Content section */
.content-section {
  padding-top: 140px;
  padding-bottom: 2rem;
  margin-top: 0;
  min-height: calc(100vh - 120px);
}

.hero-section {
  padding-top: 120px;
  min-height: 100vh;
  background: white;
}

/* Responsive styles */
@media (max-width: 992px) {
  .navbar {
    height: 80px;
  }

  .navbar img {
    height: 70px;
    margin-left: 1rem;
  }

  .mobile-menu {
    top: 80px;
    max-height: calc(100vh - 80px);
  }

  .content-section {
    padding-top: 100px;
    min-height: calc(100vh - 80px);
  }

  .hero-section {
    padding-top: 80px;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 56px;
  }

  .navbar img {
    height: 48px;
    margin-left: 1rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: block;
    margin-left: auto;
    margin-right: 1rem;
  }

  .mobile-menu {
    top: 56px;
    max-height: calc(100vh - 56px);
  }

  .mobile-menu.active {
    display: block;
  }

  .content-section {
    padding-top: 76px;
    min-height: calc(100vh - 56px);
  }

  .hero-section {
    padding-top: 56px;
  }

  .container {
    padding: 0 1rem;
  }
}

/* Signup Form Styles */
#signupForm {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#signupForm input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

#signupForm input[type="email"]:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

#signupForm input[type="email"].valid {
    border-color: #4caf50;
}

#signupForm button {
    width: 100%;
    padding: 12px 24px;
    background-color: #08ff85;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    height: 48px;
}

#signupForm button:hover {
    background-color: #00e676;
    transform: translateY(-1px);
}

#signupForm button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

#signupForm .loading {
    animation: spin 1s linear infinite;
}

#signupForm .message {
    margin-top: 12px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

#signupForm .message.success {
    background: #e8f5e9;
    color: #2e7d32;
}

#signupForm .message.error {
    background: #ffebee;
    color: #c62828;
}

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

/* Spam note style */
.spam-note {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Social links style */
.social-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-links a {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    transition: color 0.3s ease;
}

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