/* Vibrant Corporate Theme - SecureFone with Animations, Dark Mode & Extra Styling */
:root {
  --primary: #6a11cb;           /* Purple */
  --secondary: #2575fc;         /* Blue */
  --accent: #ff416c;            /* Pinkish red */
  --dark: #1e1e2f;              /* Dark navy */
  --muted: #7a7a8c;
  --bg: #f4f6fb;
  --card: #ffffff;
  --radius: 14px;
  --maxw: 1100px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));

  /* Dark mode variables */
  --dark-bg: #121220;
  --dark-card: #1f1f2f;
  --dark-text: #e0e0f0;
  --dark-muted: #9999aa;
  --dark-shadow: 0 4px 20px rgba(0,0,0,0.6);
  --glow-primary: rgba(106, 17, 203, 0.7);
  --glow-accent: rgba(255, 65, 108, 0.7);
}

body {
  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  color: var(--dark);
  background-color: var(--bg);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dark Mode Styling */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark-mode .card {
  background: var(--dark-card);
  box-shadow: var(--dark-shadow);
}

body.dark-mode .footer {
  border-top-color: #333355;
  color: var(--dark-muted);
}

body.dark-mode .nav a {
  color: var(--secondary);
}

body.dark-mode .nav a:hover,
body.dark-mode .nav a:focus {
  background-color: var(--secondary);
  color: white;
  box-shadow: 0 0 12px var(--glow-primary);
}

body.dark-mode .footer a {
  color: var(--secondary);
}

body.dark-mode .footer a:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--glow-accent);
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #3a1c71, #1e3c72);
  color: var(--dark-text);
  box-shadow: var(--dark-shadow);
}

body.dark-mode .btn {
  background: var(--accent);
  color: white;
  box-shadow: 0 0 12px var(--glow-accent);
}

body.dark-mode .btn:hover,
body.dark-mode .btn:focus {
  background: #ff2a53;
  box-shadow: 0 0 20px var(--glow-accent);
  transform: scale(1.08);
}

/* Container */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 16px;
  position: sticky;
  top: 0;
  background: var(--card);
  box-shadow: 0 2px 10px rgba(106, 17, 203, 0.15);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header:hover,
.header:focus-within {
  box-shadow: 0 4px 18px rgba(106, 17, 203, 0.4);
}

/* Dark mode toggle button */
.dark-toggle-btn {
  cursor: pointer;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  box-shadow: 0 0 8px var(--glow-primary);
}

.dark-toggle-btn:hover,
.dark-toggle-btn:focus {
  background: var(--secondary);
  box-shadow: 0 0 14px var(--glow-primary);
  outline: none;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-shadow: 0 0 4px rgba(106, 17, 203, 0.2);
}

.logo img {
  height: 80px !important;
  width: auto !important;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: rotate(8deg) scale(1.1);
}

/* Navigation */
.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
  letter-spacing: 0.04em;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.nav a:hover,
.nav a:focus {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 0 8px var(--glow-primary);
  outline: none;
}

.nav a:hover::after,
.nav a:focus::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: 48px;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  box-shadow: var(--shadow);
  animation: fadeInUp 1s ease forwards;
  position: relative;
  overflow: hidden;
}

/* Subtle animated gradient background */
.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: radial-gradient(circle at center, rgba(255, 65, 108, 0.25), transparent 70%);
  animation: pulseBG 6s ease-in-out infinite alternate;
  pointer-events: none;
  border-radius: var(--radius);
  z-index: 0;
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 36px;
  margin: 0 0 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: fadeInLeft 1s ease forwards;
}

.hero p {
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.5;
  animation: fadeInRight 1s ease forwards;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.hero img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  animation: fadeIn 1.5s ease forwards;
  box-shadow: 0 4px 20px rgba(255, 65, 108, 0.25);
  transition: transform 0.4s ease;
}

.hero img:hover,
.hero img:focus {
  transform: scale(1.05) rotate(1deg);
  outline: none;
}

/* Button */
.btn {
  background: var(--accent);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  margin-top: 16px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.4s ease;
  animation: fadeInUp 1.2s ease forwards;
  box-shadow: 0 0 10px var(--glow-accent);
  letter-spacing: 0.04em;
}

.btn:hover,
.btn:focus {
  background: #e7335e;
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--glow-accent);
  outline: none;
}

/* Section Styling */
.section {
  margin-top: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.section:last-child {
  border-bottom: none;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: fadeIn 1s ease forwards;
  color: var(--primary);
  text-shadow: 0 1px 3px rgba(106, 17, 203, 0.3);
}

/* Cards / Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  cursor: default;
  color: var(--dark);
  user-select: none;
}

.card:hover,
.card:focus-within {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 12px 28px rgba(106, 17, 203, 0.4);
  cursor: pointer;
  outline: none;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.card li {
  margin: 8px 0;
  line-height: 1.4;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid #ddd;
  margin-top: 64px;
  padding: 24px 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  background: var(--card);
  box-shadow: 0 -2px 20px rgba(106, 17, 203, 0.07);
  transition: box-shadow 0.3s ease;
}

.footer:hover,
.footer:focus-within {
  box-shadow: 0 -4px 32px rgba(106, 17, 203, 0.15);
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer a:hover,
.footer a:focus {
  color: var(--accent);
  text-shadow: 0 0 10px var(--glow-accent);
  outline: none;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 600;
}

/* Animations */

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulseBG {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.1) translate(10px, 10px);
    opacity: 0.9;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    flex-direction: column;
    text-align: left;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

