:root {
  --bg-color: #12222e;
  --text-main: #ffffff;
  --text-muted: #a6b5c3;
  --accent-cyan: #26abeb;
  --accent-blue: #1b73a3;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.1);
  --nav-bg: rgba(18, 34, 46, 0.85);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  overflow-x: hidden;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

p {
  line-height: 1.6;
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Global Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
}

.btn-secondary {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 500;
}

.btn-outline {
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline:hover {
  background: var(--accent-cyan);
  color: #000;
}

.btn-block {
  width: 100%;
}

/* Background Effects */
.bg-abstract {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at 15% 50%, rgba(0, 210, 255, 0.08), transparent 50%),
              radial-gradient(circle at 85% 30%, rgba(58, 123, 213, 0.1), transparent 50%);
  z-index: -2;
  pointer-events: none;
}

/* Navigation (Glassmorphism) */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  padding: 1.2rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  z-index: 100;
  transition: padding 0.3s ease;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 65px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  flex: 1;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-logo-large {
  width: 100%;
  max-width: 450px;
  height: auto;
  filter: drop-shadow(0 0 50px rgba(38, 171, 235, 0.4));
  animation: float-logo 6s ease-in-out infinite;
}

@keyframes float-logo {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-cyan), #a18cd1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Decorative Cubes (3D abstraction) */
.cube {
  position: absolute;
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,210,255,0.05), rgba(0,0,0,0));
  backdrop-filter: blur(5px);
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.cube-1 { top: 20%; right: 10%; width: 120px; height: 120px; transform: rotate(15deg); }
.cube-2 { bottom: 15%; right: 25%; width: 80px; height: 80px; transform: rotate(45deg); animation-delay: -2s; }
.cube-3 { top: 30%; left: 5%; width: 60px; height: 60px; transform: rotate(-20deg); animation-delay: -4s; }

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 210, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.icon-wrapper {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(0,210,255,0.1), transparent);
  width: 70px; height: 70px;
  display: flex;
  align-items: center; justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(0,210,255,0.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* About / Stats */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
  border: 1px solid var(--card-border);
  padding: 4rem;
  border-radius: 30px;
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img {
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  object-fit: cover;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
}

.stat-box {
  background: rgba(0,0,0,0.3);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  text-align: center;
  flex: 1;
}

.stat-num {
  font-size: 3.5rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: var(--accent-cyan);
}

.stat-plus {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-weight: 500;
  color: var(--text-main);
}

/* Contact Section */
.contact-container {
  max-width: 600px;
  text-align: center;
}

.contact-desc {
  margin-bottom: 2.5rem;
}

.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 3rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: white;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

/* Footer */
.footer {
  border-top: 1px solid var(--card-border);
  padding: 3rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Page Up Button */
.page-up-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
}

.page-up-btn svg {
  width: 24px;
  height: 24px;
}

.page-up-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-up-btn.show:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
  color: white;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-wrapper {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-logo-large {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.5rem; }
  .section-title { font-size: 1.8rem; word-break: break-word; }
  .about-grid { grid-template-columns: 1fr; padding: 2rem; }
  .about-stats { flex-direction: column; }
  .page-up-btn {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  .page-up-btn svg {
    width: 20px;
    height: 20px;
  }
}
