/* styles.css - Light IT Theme Redesign */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Source+Code+Pro:wght@400;600&display=swap");

/* CSS Variables - Light IT Theme Palette */
:root {
  --color-bg-light: #f9fafb;
  --color-bg-section: #ffffff;
  --color-bg-accent: #e0f2fe;
  --color-text-primary: #1e293b;
  --color-text-secondary: #475569;
  --color-accent: #0284c7;
  --color-accent-dark: #0369a1;
  --color-border: #cbd5e1;
  --color-shadow: rgba(2, 132, 199, 0.2);

  --font-primary: "Roboto", sans-serif;
  --font-mono: "Source Code Pro", monospace;

  --transition-speed: 0.3s;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg-light);
  color: var(--color-text-primary);
  font-family: var(--font-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-family: var(--font-primary);
  letter-spacing: 0.05em;
}

h2 {
  font-size: 2.25rem;
  border-bottom: 3px solid var(--color-accent);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--color-accent-dark);
  margin-bottom: 1rem;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation Bar */
.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  color: var(--color-text-primary);
  transition: transform 0.3s ease;
}

.logo-accent {
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.nav-logo:hover .logo-text {
  transform: translateX(-3px);
}

.nav-logo:hover .logo-accent {
  transform: translateX(3px);
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  color: var(--color-text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all 0.3s ease;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  bottom: -6px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg-section);
    padding: 1rem 0;
    gap: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
  }

  .nav-link::after {
    display: none;
  }
}

/* Scrolled Navbar */
.navbar-scrolled {
  padding: 0.75rem 0;
  background-color: var(--color-bg-section);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--color-accent),
    var(--color-accent-dark)
  );
  color: #ffffff;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
  border-radius: 0 0 3rem 3rem;
  box-shadow: 0 8px 20px var(--color-shadow);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.15),
    transparent 70%
  );
  animation: pulse 10s infinite alternate;
  z-index: 0;
}

@keyframes pulse {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(10px, 10px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-cta {
  background-color: var(--color-bg-section);
  color: var(--color-accent);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.hero-cta:hover,
.hero-cta:focus {
  background-color: transparent;
  color: var(--color-bg-section);
  border-color: var(--color-bg-section);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-cta::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s ease;
}

.hero-cta:hover::after {
  left: 100%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-primary);
  letter-spacing: 0.1em;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 400;
  max-width: 600px;
}

.hero-cta {
  background-color: #ffffff;
  color: var(--color-accent-dark);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--transition-speed),
    color var(--transition-speed);
  box-shadow: 0 4px 12px var(--color-shadow);
}

.hero-cta:hover,
.hero-cta:focus {
  background-color: var(--color-accent-dark);
  color: #ffffff;
  outline: none;
}

/* Sections - Unique Designs */

/* About Section */
.about-section {
  background-color: var(--color-bg-section);
  padding: 4rem 2rem;
  border-radius: 2rem;
  box-shadow: 0 4px 15px var(--color-shadow);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  background: var(--color-accent);
  opacity: 0.15;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
}

.about-content {
  position: relative;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--color-accent);
  font-weight: 700;
}

.stat-item p {
  color: var(--color-text-secondary);
  font-weight: 600;
}

/* Services Section */
.services-section {
  background-color: var(--color-bg-light);
  padding: 4rem 2rem;
  margin-bottom: 3rem;
  border-radius: 2rem;
  box-shadow: 0 4px 15px var(--color-shadow);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--color-bg-section);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 12px var(--color-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover,
.service-card:focus {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px var(--color-shadow);
  outline: none;
}

.icon-wrapper {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  stroke: var(--color-accent);
  fill: none;
}

.icon-cloud,
.icon-shield,
.icon-code,
.icon-consulting,
.icon-designer {
  width: 100%;
  height: 100%;
  stroke: var(--color-accent);
  fill: none;
}

/* Gallery Section */
.gallery-section {
  background-color: var(--color-bg-section);
  padding: 4rem 2rem;
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.project-card {
  background: var(--color-bg-light);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--color-shadow);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px var(--color-shadow);
}

.project-icon {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.project-svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-primary);
}

.project-card p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tech span {
  background-color: var(--color-bg-accent);
  color: var(--color-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Add hover animation for project icons */
.project-card:hover .project-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--color-bg-light);
  padding: 4rem 2rem;
  margin-bottom: 3rem;
  border-radius: 2rem;
  box-shadow: 0 4px 15px var(--color-shadow);
  position: relative;
}

.testimonial-carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
}

.testimonial-card {
  background-color: var(--color-bg-section);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 4px 12px var(--color-shadow);
  min-width: 280px;
  scroll-snap-align: start;
  flex-shrink: 0;
  color: var(--color-text-primary);
  font-style: italic;
  position: relative;
}

.testimonial-card footer {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  text-align: right;
}

/* Contact Section */
.contact-section {
  background-color: var(--color-bg-section);
  padding: 4rem 2rem;
  border-radius: 2rem;
  box-shadow: 0 4px 15px var(--color-shadow);
  margin-bottom: 3rem;
  position: relative;
}

.contact-bg-svg {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  opacity: 0.1;
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--color-border);
  border-radius: 0.75rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-text-primary);
  background-color: var(--color-bg-light);
  transition: border-color var(--transition-speed);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--color-text-secondary);
  font-size: 1rem;
  pointer-events: none;
  transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -0.75rem;
  left: 1rem;
  font-size: 0.75rem;
  color: var(--color-accent);
  background-color: var(--color-bg-light);
  padding: 0 0.25rem;
}

/* Common Button Styles */
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  color: var(--color-bg-section);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
}

.btn-primary::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.7s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

/* Hero Section Button Specific */
.hero-section .hero-cta {
  background: var(--color-bg-section);
  color: var(--color-accent);
}

.hero-section .hero-cta:hover,
.hero-section .hero-cta:focus {
  background: transparent;
  color: var(--color-bg-section);
  border-color: var(--color-bg-section);
}

/* About Section Button Specific */
.about-section .btn-primary {
  margin-top: 3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  background-color: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-primary);
  border-radius: 50px;
  cursor: pointer;
  transition: background-color var(--transition-speed);
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.btn:hover,
.btn:focus {
  background-color: var(--color-accent-dark);
  outline: none;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent) 100%);
  color: white;
  padding: 4rem 0 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-icons {
  display: flex;
  gap: 1rem;
}

.footer-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  color: var(--color-text-secondary);
  transition: color var(--transition-speed);
}

.footer-icon:hover,
.footer-icon:focus {
  color: var(--color-accent);
  outline: none;
}

.footer-extra {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.footer-nav {
  margin-top: 0.5rem;
}

.footer-nav a {
  color: var(--color-text-secondary);
  text-decoration: none;
  margin: 0 0.25rem;
  font-size: 0.875rem;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--color-accent);
  outline: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: white;
  color: var(--color-accent);
  transform: translateY(-3px);
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.footer-social a:hover .social-icon {
  transform: scale(1.1);
}

.footer-social a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: white;
}

.footer h4 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.btn-subscribe {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  background: white;
  color: var(--color-accent);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-subscribe:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.1);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-legal a:hover {
  color: white;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-carousel {
    flex-direction: column;
  }

  .footer-grid {
    gap: 2rem;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}
