/* GLOBAL STYLES */
:root {
  --primary: #0b5cff;
  --primary-dark: #0444cc;
  --primary-light: #3d7fee;
  --dark: #0f172a;
  --text: #334155;
  --text-light: #64748b;
  --bg: #f8fafc;
  --bg-secondary: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 60px rgba(0, 0, 0, 0.12);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "DM Serif Display", serif;
  color: var(--dark);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

p {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* SECTIONS */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.logo:hover {
  opacity: 0.9;
}

.logo-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  transition: var(--transition);
}

.logo:hover .logo-img {
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: scale(1.05);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
  transition: var(--transition);
}

.logo:hover .logo-text {
  color: var(--primary);
}

.logo-icon {
  font-size: 1.6rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-btn {
  padding: 10px 24px;
  background: var(--primary);
  color: white !important;
  border-radius: var(--radius-xl);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--primary-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav-btn::after {
  display: none;
}

/* MOBILE MENU */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  width: 24px;
  height: 3px;
  background: var(--dark);
  display: block;
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before {
  content: "";
  position: absolute;
  top: -8px;
}

.menu-toggle span::after {
  content: "";
  position: absolute;
  top: 8px;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 70px 0 0 0;
  background: var(--white);
  flex-direction: column;
  padding: 30px 20px;
  gap: 12px;
  z-index: 999;
}

.mobile-link {
  padding: 12px 16px;
  color: var(--dark);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.mobile-link:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

.mobile-btn {
  background: var(--primary);
  color: white !important;
  box-shadow: var(--shadow-md);
}

.mobile-btn:hover {
  background: var(--primary-dark);
}

/* HERO */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(11, 92, 255, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(11, 92, 255, 0.1);
  border: 1px solid rgba(11, 92, 255, 0.2);
  border-radius: var(--radius-xl);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(11, 92, 255, 0.05);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: "DM Serif Display", serif;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 4px;
}

.hero-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.image-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 92, 255, 0.1) 0%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.image-wrapper:hover img {
  transform: scale(1.02);
}

/* ABOUT SECTION */
.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.skills {
  margin-top: 40px;
}

.skills h3 {
  margin-bottom: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.skill-tag {
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
}

.skill-tag:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-box {
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.feature-box:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-box h3 {
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* SERVICES SECTION */
.services-section {
  background: var(--bg);
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-block;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-light);
  font-size: 0.9rem;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* PORTFOLIO SECTION */
.portfolio-section {
  background: var(--white);
}

.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(11, 92, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-md);
}

.project-icon {
  font-size: 1.5rem;
  color: var(--text-light);
  transition: var(--transition);
}

.project-card:hover .project-icon {
  color: var(--primary);
  transform: translateX(4px);
}

.project-card h3 {
  margin-bottom: 8px;
}

.project-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.8rem;
  padding: 4px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-weight: 500;
}

.project-link {
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
  display: inline-block;
}

.project-link:hover {
  color: var(--primary-dark);
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, #1a1f3a 0%, #0f172a 100%);
  padding: 80px 0;
}

.cta-section.cta-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1a2a4a 100%);
}

.cta-content {
  text-align: center;
  color: white;
}

.cta-content h2 {
  color: white;
  margin-bottom: 12px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* CONTACT SECTION */
.contact-section {
  background: var(--white);
}

.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header h2 {
  margin-bottom: 12px;
}

.contact-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-card {
  text-align: center;
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.contact-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-block;
}

.contact-card h3 {
  margin-bottom: 12px;
}

.contact-card p {
  margin-bottom: 8px;
}

.contact-card a {
  font-weight: 600;
}

.contact-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0 !important;
}

/* FOOTER */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 16px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.footer-bottom p {
  color: #ffffff;
  margin-bottom: 0;
}

/* SCROLL TO TOP BUTTON */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.scroll-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.scroll-to-top.show {
  display: flex;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu.active {
    display: flex;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-gradient {
    width: 400px;
    height: 400px;
    top: 0;
    right: -100px;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section {
    padding: 60px 0;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 30px;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  p {
    font-size: 0.95rem;
  }

  .hero-badge {
    font-size: 0.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .portfolio {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav-link {
    gap: 12px;
  }

  .logo {
    gap: 8px;
  }

  .logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }

  .logo-text {
    font-size: 1.5rem;
  }
}
