﻿:root {
  /* Light Theme */
  --light-bg: #f8fafc;
  --light-text: #333;
  --light-h2: #1c4062;
  --light-card: #ffffff;
  --light-border: rgba(28, 64, 98, 0.1);
  --light-header: rgba(28, 64, 98, 0.95);
  --light-hero: linear-gradient(135deg, #1c4062 0%, #2a5a8a 100%);
  --light-contact: linear-gradient(135deg, #1c4062, #2a5a8a);
  --light-cta: linear-gradient(45deg, #64b5f6, #42a5f5);
  --light-cta-shadow: rgba(100, 181, 246, 0.3);
  --light-stat: linear-gradient(135deg, #1c4062, #2a5a8a);
  --light-form-bg: rgba(255, 255, 255, 0.1);
  --light-footer-bg: #1a1a1a;
  --light-footer-text: #ffffff;
  --light-service-icon: #1c4062;
  --light-section-bg: #f8fafc;
  --light-dropdown-bg: rgba(28, 64, 98, 0.98);
  --light-mobile-menu: linear-gradient(135deg, #1c4062, #2a5a8a);

  /* Dark Theme */
  --dark-bg: #121212;
  --dark-text: #e2e8f0;
  --dark-h2: #64b5f6;
  --dark-card: #1e1e1e;
  --dark-border: rgba(100, 181, 246, 0.1);
  --dark-header: rgba(15, 30, 46, 0.95);
  --dark-hero: linear-gradient(135deg, #0d1f2f 0%, #1a3a5a 100%);
  --dark-contact: linear-gradient(135deg, #0d1f2f, #1a3a5a);
  --dark-cta: linear-gradient(45deg, #42a5f5, #1e88e5);
  --dark-cta-shadow: rgba(30, 136, 229, 0.3);
  --dark-stat: linear-gradient(135deg, #0d1f2f, #1a3a5a);
  --dark-form-bg: rgba(30, 30, 30, 0.3);
  --dark-footer-bg: #0a0a0a;
  --dark-footer-text: #e2e8f0;
  --dark-service-icon: #64b5f6;
  --dark-section-bg: #121212;
  --dark-dropdown-bg: rgba(15, 30, 46, 0.98);
  --dark-mobile-menu: linear-gradient(135deg, #0d1f2f, #1a3a5a);

  /* Tech Stack Light Theme Variables */
  --light-tech-bg: #f8fafc;
  --light-tech-card: #ffffff;
  --light-tech-text: #1c4062;
  --light-tech-border: rgba(28, 64, 98, 0.1);
  --light-tech-icon: #1c4062;
  --light-tech-hover: #f0f4f8;

  /* Tech Stack Dark Theme Variables */
  --dark-tech-bg: #121212;
  --dark-tech-card: #1e1e1e;
  --dark-tech-text: #e2e8f0;
  --dark-tech-border: rgba(100, 181, 246, 0.1);
  --dark-tech-icon: #64b5f6;
  --dark-tech-hover: #2d3748;

  /* Active Theme Variables (default to light) */
  --bg: var(--light-bg);
  --text: var(--light-text);
  --h2: var(--light-h2);
  --card: var(--light-card);
  --border: var(--light-border);
  --header: var(--light-header);
  --hero: var(--light-hero);
  --contact: var(--light-contact);
  --cta: var(--light-cta);
  --cta-shadow: var(--light-cta-shadow);
  --stat: var(--light-stat);
  --form-bg: var(--light-form-bg);
  --footer-bg: var(--light-footer-bg);
  --footer-text: var(--light-footer-text);
  --service-icon: var(--light-service-icon);
  --section-bg: var(--light-section-bg);
  --dropdown-bg: var(--light-dropdown-bg);
  --mobile-menu: var(--light-mobile-menu);
  --tech-bg: var(--light-tech-bg);
  --tech-card: var(--light-tech-card);
  --tech-text: var(--light-tech-text);
  --tech-border: var(--light-tech-border);
  --tech-icon: var(--light-tech-icon);
  --tech-hover: var(--light-tech-hover);

  /* Animation */
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

  /* Navigation height for PC */
  --nav-height-pc: 120px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.img-responsive,
img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#services,
#tech-stack,
#about {
  scroll-margin-top: 80px;
}

#products {
  scroll-margin-top: 130px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  color: var(--h2);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Header & Navigation */
header {
  background: var(--header);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: var(--nav-height-pc);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  padding: 0.5rem 0;
}

.logo-icon {
  width: auto;
  height: 80px;
  transition: transform 0.3s ease;
}

.logo-text {
  display: flex;
  flex-direction: column;
  color: white;
}

.logo-text .primary {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text .secondary {
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.2;
}

.logo:hover .logo-icon {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  display: block;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: #64b5f6;
  background: rgba(100, 181, 246, 0.1);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 5px;
  cursor: pointer;
  position: relative;
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 181, 246, 0.3);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 2;
  position: relative;
}

.theme-options {
  display: flex;
  position: absolute;
  right: 0;
  top: 0;
  background: rgba(28, 64, 98, 0.9);
  border-radius: 30px;
  padding: 5px;
  transform: translateX(120%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.theme-toggle.active .theme-options {
  transform: translate(-50px, 3px);
  opacity: 1;
  visibility: visible;
}

.theme-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
}

.theme-option.light {
  background: #42739b;
}

.theme-option.dark {
  background: #121212;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dropdown-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(100, 181, 246, 0.2);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-content a {
  padding: 1rem 1.5rem;
  display: block;
  color: white;
  border-bottom: 1px solid rgba(100, 181, 246, 0.1);
  transition: all 0.3s ease;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: rgba(100, 181, 246, 0.2);
  padding-left: 2rem;
}

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
  border-radius: 50%;
  background: rgba(100, 181, 246, 0.1);
}

.hamburger:hover {
  background: rgba(100, 181, 246, 0.2);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  height: auto;
  background: var(--hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height-pc);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'><polygon fill='rgba(255,255,255,0.05)' points='0,0 1000,200 1000,1000 0,800'/></svg>");
  animation: float 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: white;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 800;
  background: linear-gradient(45deg, #ffffff, #64b5f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  background: var(--cta);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px var(--cta-shadow);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.cta-button::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 3s infinite;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--cta-shadow);
}

/* Tech Stack Section */
.tech-stack {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background: var(--tech-bg);
}

.tech-stack::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(120, 219, 255, 0.05) 0%,
      transparent 50%
    );
  animation: float 20s ease-in-out infinite;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  color: var(--h2);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--cta);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.section-title:hover::after {
  width: 120px;
}

.section-subtitle {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 700px;
  margin: 1rem auto 0;
  color: var(--text);
}

.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-category {
  background: var(--tech-card);
  border: 1px solid var(--tech-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tech-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(100, 181, 246, 0.2);
  border-color: rgba(100, 181, 246, 0.4);
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 1rem;
  color: white;
}

.category-icon.frontend {
  background: linear-gradient(135deg, #61dafb 0%, #21d4fd 100%);
}

.category-icon.backend {
  background: linear-gradient(135deg, #68d391 0%, #38a169 100%);
}

.category-icon.database {
  background: linear-gradient(135deg, #ffd93d 0%, #ff8c00 100%);
}

.category-icon.cloud {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-icon.mobile {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.category-icon.tools {
  background: linear-gradient(135deg, #a8e6cf 0%, #88d8c0 100%);
}

.category-icon.lowlevel {
  background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
  /* techy blue/navy */
}

.category-icon.design {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
  /* warm yellow/orange */
}

.category-icon.modeling {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
  /* fresh green */
}

.category-icon.robotics {
  background: linear-gradient(135deg, #1f4037 0%, #99f2c8 100%);
  /* dark green to mint */
}

.category-icon.ai {
  background: linear-gradient(135deg, #654ea3 0%, #eaafc8 100%);
  /* purple to pink */
}

.category-icon.mlops {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  /* deep blueish */
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tech-text);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
}

.tech-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--tech-border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tech-item:hover {
  background: var(--tech-hover);
  transform: translateY(-5px);
}

.tech-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--tech-icon);
  transition: all 0.3s ease;
}

.tech-item:hover .tech-icon {
  transform: scale(1.2);
}

.tech-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tech-text);
}

/* Floating particles */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  animation: floatParticle 15s infinite ease-in-out;
  opacity: 0.6;
}

[data-theme="light"] .particle {
  background: rgba(28, 64, 98, 0.15);
}

[data-theme="dark"] .particle {
  background: rgba(100, 181, 246, 0.2);
}

.particle:nth-child(1) {
  width: 6px;
  height: 6px;
  left: 10%;
  animation-duration: 18s;
}

.particle:nth-child(2) {
  width: 4px;
  height: 4px;
  left: 30%;
  animation-duration: 22s;
}

.particle:nth-child(3) {
  width: 5px;
  height: 5px;
  left: 50%;
  animation-duration: 16s;
}

.particle:nth-child(4) {
  width: 7px;
  height: 7px;
  left: 70%;
  animation-duration: 20s;
}

.particle:nth-child(5) {
  width: 5px;
  height: 5px;
  left: 90%;
  animation-duration: 19s;
}

/* Services Section */
.services {
  padding: 5rem 0;
  background: var(--section-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--service-icon);
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.service-card p {
  color: var(--text);
  opacity: 0.8;
}

/* About Section */
.about {
  padding: 5rem 0;
  background: var(--section-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--h2);
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text);
  opacity: 0.8;
  font-size: 1.1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--stat);
  color: white;
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.stat:hover {
  transform: scale(1.05);
}

.stat h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.stat p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

/* Card container */
.improved-card {
  position: relative;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(28, 64, 98, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.improved-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(28, 64, 98, 0.15);
}

/* Top badge/tag */
.product-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(to right, #4f46e5, #3b82f6);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 500;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Image */
.product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Icon fallback (software cards) */
.product-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  background-color: var(--bg);
  color: var(--h2);
  font-size: 2rem;
}

/* Card content */
.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--h2);
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--text);
  flex-grow: 1;
}

.product-link {
  margin-top: 1rem;
  color: var(--h2);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-link:hover {
  color: #007bff;
}

/*Services*/
.service-detail {
  background: var(--section-bg);
  color: var(--text);
  padding: 4rem 1rem;
  transition: var(--transition);
}

.service-title {
  font-size: 2.5rem;
  color: var(--h2);
  margin-bottom: 1rem;
  text-align: center;
}

.service-description {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.75;
}

.service-highlights {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 3rem;
}

.highlight {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.highlight h2 {
  color: var(--h2);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.highlight ul {
  list-style: disc;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.cta-box {
  background: var(--cta);
  color: #fff;
  text-align: center;
  padding: 2.5rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 10px 30px var(--cta-shadow);
}

.cta-box h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.btn-cta {
  background: #fff;
  color: var(--h2);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: var(--transition);
  display: inline-block;
}

.btn-cta:hover {
  background: var(--light-hover);
  transform: translateY(-2px);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--contact);
  color: white;
}

.contact.no-form .contact-content {
  grid-template-columns: 1.1fr 0.9fr;
  justify-items: stretch;
}

.contact.no-form .contact-info {
  max-width: none;
}

.contact-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-info h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.contact-info p {
  margin-bottom: 1rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form {
  background: var(--form-bg);
  padding: 2rem;
  border-radius: 20px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.contact-meta {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
  width: 100%;
}

.clock-card {
  background: #1c4062;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  align-items: flex-start;
  overflow: hidden;
}

.clock-display {
  font-family: "Seven Segment", "Courier New", monospace;
  font-size: clamp(1.8rem, 5vw, 2rem);
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  word-break: break-word;
}

.clock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse 1.2s infinite;
}

.clock-date {
  font-size: 0.95rem;
  opacity: 0.85;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 820px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact.no-form .contact-content {
    grid-template-columns: 1fr;
    justify-items: flex-start;
  }
  .contact-meta {
    justify-content: flex-start;
    width: 100%;
  }
  .clock-card {
    max-width: 420px;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 520px) {
  .clock-card {
    max-width: 100%;
  }
  .clock-display {
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    flex-wrap: wrap;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--cta);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px var(--cta-shadow);
}

/* Footer */
footer {
  background: var(--bg);
  color: var(--text);
  padding: 2.5rem 0;
  text-align: center;
}

.contact-info h2 {
  color: var(--footer-text) !important;
}

.footer-center {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.footer-brand {
  margin: 0;
  font-weight: 700;
}

.footer-tagline,
.footer-copy {
  margin: 0;
  opacity: 0.85;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shine {
  0% {
    transform: translateX(-100%) rotate(30deg);
  }

  100% {
    transform: translateX(100%) rotate(30deg);
  }
}

@keyframes floatParticle {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.8;
  }

  90% {
    opacity: 0.8;
  }

  100% {
    transform: translate(100px, -100vh) rotate(360deg);
    opacity: 0;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #64b5f6, #42a5f5);
  z-index: 1001;
  transition: width 0.25s ease;
}

/* Responsive Design */
@media (max-width: 830px) {
  :root {
    --nav-height-pc: 70px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--mobile-menu);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
    margin: 0.5rem 0;
  }

  .nav-links > li > a {
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .dropdown-content {
    position: static;
    opacity: 0;
    visibility: hidden;
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
  }

  .dropdown > a::after {
    content: "v";
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
  }

  .dropdown.active > a::after {
    transform: rotate(180deg);
  }

  .hamburger {
    display: flex;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .tech-categories {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .section {
    padding: 4rem 0;
  }

  .nav-links {
    width: 100%;
  }

  .logo-icon {
    height: 50px;
  }

  .logo-text .secondary {
    display: none;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Detail pages */
.detail-hero {
  padding: 160px 0 80px;
  background: var(--hero);
  color: white;
  text-align: left;
}

.detail-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.detail-hero-text {
  margin-top: 1rem;
  max-width: 720px;
  opacity: 0.9;
  line-height: 1.7;
}

.detail-body {
  padding: 4rem 0 5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.feature-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.feature-list li::before {
  content: "â€¢";
  color: var(--cta);
  font-weight: 700;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.pill-list li {
  background: var(--tech-hover);
  color: var(--tech-text);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--tech-border);
  font-weight: 600;
}

.detail-cta {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.inline-replaced-04 {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
