/*
Theme Name: AJ Network Solutions
Theme URI: https://example.com/aj-network-solutions
Author: AJ Network Solutions
Author URI: https://example.com
Description: Custom WordPress theme for AJ Network Solutions, converted from static HTML.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aj-network
*/

:root {
  --primary: #00e676; /* Vibrant Light Green */
  --primary-dark: #00c853;
  --dark: #121212;
  --dark-card: #1e1e1e;
  --light: #f5f7fa;
  --text: #333333;
  --text-light: #e0e0e0;
  --gradient: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--light);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.logo .highlight {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-dark);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: white;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--dark);
}

.highlight-text {
  color: var(--primary-dark);
  background: linear-gradient(
    120deg,
    rgba(0, 230, 118, 0.2) 0%,
    rgba(0, 230, 118, 0) 100%
  );
}

.hero-content p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 30px;
  max-width: 500px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 230, 118, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 230, 118, 0.6);
}

/* 3D Cube Animation */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.cube-container {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate 10s infinite linear;
}

.cube {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
}

.face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(0, 230, 118, 0.1);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-dark);
  backface-visibility: visible;
}

.front {
  transform: rotateY(0deg) translateZ(100px);
}
.back {
  transform: rotateY(180deg) translateZ(100px);
}
.right {
  transform: rotateY(90deg) translateZ(100px);
}
.left {
  transform: rotateY(-90deg) translateZ(100px);
}
.top {
  transform: rotateX(90deg) translateZ(100px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotate {
  0% {
    transform: rotateX(0) rotateY(0);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

/* Services */
.services {
  padding: 100px 0;
  background: #f9f9f9;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.1s; /* Fast transition for tilt */
  transform-style: preserve-3d;
  cursor: pointer;
}

.icon-box {
  width: 60px;
  height: 60px;
  background: rgba(0, 230, 118, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 20px;
  transform: translateZ(20px);
}

.service-card h3 {
  margin-bottom: 15px;
  transform: translateZ(30px);
}

.service-card p {
  color: #666;
  transform: translateZ(20px);
}

/* About */
.about {
  padding: 100px 0;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.features-list {
  list-style: none;
  margin-top: 20px;
}

.features-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.features-list i {
  color: var(--primary-dark);
}

/* Contact */
.contact {
  padding: 100px 0;
  background: var(--dark);
  color: white;
}

.contact .section-header h2,
.contact .section-header p {
  color: white;
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  position: relative;
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.form-group textarea {
  height: 150px;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group label {
  position: absolute;
  left: 15px;
  top: 15px;
  color: #aaa;
  pointer-events: none;
  transition: 0.3s;
}

.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: -10px;
  left: 10px;
  font-size: 0.8rem;
  background: var(--dark);
  padding: 0 5px;
  color: var(--primary);
}

/* Footer */
footer {
  background: #000;
  color: #888;
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links a {
  color: #888;
  margin-left: 20px;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--dark);
  font-size: 0.95rem;
  transition: background 0.3s, color 0.3s;
}

.dropdown-menu a:hover {
  background: rgba(0, 230, 118, 0.05);
  color: var(--primary-dark);
  padding-left: 25px;
}

/* Page Header */
.page-header {
  padding: 150px 0 80px;
  background: var(--dark);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.page-header p {
  font-size: 1.2rem;
  color: #aaa;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #888;
  position: relative;
  z-index: 2;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

/* Content Sections */
.section-content {
  padding: 80px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.sidebar {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  height: fit-content;
}

.sidebar h3 {
  margin-bottom: 20px;
  font-size: 1.2rem;
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 10px;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 10px;
}

.sidebar-links a {
  text-decoration: none;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s;
}

.sidebar-links a:hover,
.sidebar-links a.active {
  background: var(--primary);
  color: white;
}

/* Related Work */
.related-work {
  margin-top: 50px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.work-item {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  height: 200px;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.work-item:hover img {
  transform: scale(1.1);
}

/* Mobile Dropdown */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0 0 0 20px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: #f9f9f9;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1; /* Sidebar on top for mobile or bottom? Let's keep it simple */
    margin-bottom: 30px;
  }
}

/* Client Carousel */
.clients {
  padding: 60px 0;
  background: white;
  overflow: hidden;
}

.clients-track {
  display: flex;
  width: calc(250px * 10); /* 5 logos * 2 (duplicated) */
  animation: scroll 20s linear infinite;
}

.client-logo {
  width: 250px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  max-width: 100%;
  max-height: 80px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 5));
  }
}

/* Stats Section */
.stats {
  padding: 80px 0;
  background: var(--dark);
  color: white;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 1.1rem;
  color: #aaa;
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: var(--gradient);
  text-align: center;
  color: white;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-light {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
