/* CSS Variables */
:root {
  --primary-color: #0a6777;
  --secondary-color: #0a9eb1;
  --accent-color: #FFC107;
  --gradient-purple: #9C27B0;
  --gradient-blue: #00BCD4;
  --gradient-pink: #E91E63;
  --gradient-coral: #FF5722;
  --text-gray: #3a3a3a;
  --body-bg: #000;
  --font-color: #eee;
  --light-gray: #9e9e9e;
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--font-color);
  line-height: 1.6;
  background-color: var(--body-bg);
  cursor: default;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a202c;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Header */
header {
  padding: 25px 50px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  backdrop-filter: blur(10px);
  padding: 20px 50px;
}

.nav-container {
  max-width: 1300px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  transition: transform 0.4s ease;
}

.logo img:hover {
  transform: scale(1.03) rotate(0deg);
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: var(--light-gray);
  font-weight: 600;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.3s ease-in-out;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--primary-color);
}

.client-portal {
  background: var(--accent-color);
  color: #000;
  padding: 8px 16px;
  border-radius: 4px;
  margin-left: 20px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.client-portal:hover {
  background: #ffa000;
}

/* Animated Text Section */
.animated-text-section {
  height: 100vh;
  background-color: var(--body-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.animated-text-section .container {
  width: 100%;
  height: 100%;
}

svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.text {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  font-size: 270px;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw 3s ease-in-out forwards;
  transition: stroke 0.3s ease;
  pointer-events: none;
  text-rendering: optimizeLegibility;
  shape-rendering: geometricPrecision;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, rgba(0,172,193,0.7), rgba(0,0,0,0.7)),
              url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  margin: 0px auto;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 30px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0,0,0,0.3), transparent 70%);
  animation: pulse 12s infinite ease-in-out;
  z-index: 1;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(1); opacity: 0.4; }
}

.hero-content {
  max-width: 900px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.65);
  padding: 30px 40px;
  border-radius: 15px;
  animation: slideIn 1.5s ease-out;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-size: 65px;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
  letter-spacing: 1px;
}

.hero p {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 40px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  color: #ffffff;
}

/* Contact Form */
.contact-form {
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #1c1c1c;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input, .contact-form textarea {
  padding: 15px;
  border: 2px solid #e2e8f0;
  background: none;
  color: #979797;
  border-radius: 10px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
  background: none;
}

.contact-form button {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,172,193,0.4);
}

.social-icons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-icons a {
  color: var(--primary-color);
  font-size: 28px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: var(--secondary-color);
  transform: scale(1.2);
}

.cta-button {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 6px 15px rgba(0,172,193,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,172,193,0.6);
}

/* Main Content */
main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 100px 50px;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  margin-top: 20px;
  margin-bottom: 20px;
  background: #111;
  color: #eee;
}

section {
  scroll-margin-top: 120px;
  margin-bottom: 100px;
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 2s ease-out;
  letter-spacing: 1px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

p {
  font-size: 20px;
  color: var(--light-gray);
  margin-bottom: 50px;
  font-weight: 300;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 80px;
}

.feature-card {
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border: 1px solid #e2e8f0;
  background: #1c1c1c;
}

.feature-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 12px 30px rgba(0,172,193,0.2);
  border-color: var(--primary-color);
}

.feature-card h3 {
  font-size: 26px;
  font-weight: 600;
  color: var(--font-color);
  margin-bottom: 20px;
}

.feature-card p {
  font-size: 16px;
  color: #aaa;
}

/* About Section */
#about p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  color: #ccc;
}

/* Blog Section */
#blog {
  padding: 60px 20px;
  background: #222;
}

#blog h2 {
  margin-bottom: 40px;
}

#blog .blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

#blog .blog-post {
  background: #333;
  padding: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

#blog .blog-post:hover {
  transform: translateY(-5px);
}

/* Testimonials Section */
#testimonials {
  padding: 60px 20px;
  background: #111;
}

#testimonials h2 {
  margin-bottom: 40px;
}

#testimonials .testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

#testimonials .testimonial {
  background: #222;
  padding: 20px;
  border-radius: 10px;
  font-style: italic;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

footer p {
  color: #e2e8f0;
  font-size: 16px;
  margin-bottom: 25px;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 20px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

footer a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease-in-out;
}

footer a:hover::after {
  width: 100%;
}

footer a:hover {
  color: var(--accent-color);
}

.footer-social {
  margin-top: 20px;
}

.white-text {
  font-weight: bold;
  fill: none;
  stroke-width: 2;
}

.gradient-text {
  stroke: url(#gradient);
}