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

:root {
  --primary: #2563eb;
  --secondary: #10b981;
  --accent: #f59e0b;
  --dark: #1e293b;
  --light: #ffffff;
  --gray: #64748b;
  --bg-light: #f8fafc;
  --border: #e2e8f0;
}

body {
  /* font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; */
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

.floating-shapes {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.05;
  animation: floatShapes 20s infinite ease-in-out;
}

.shape:nth-child(1) {
  width: 300px;
  height: 300px;
  background: var(--primary);
  border-radius: 50%;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape:nth-child(2) {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 60%;
  right: 10%;
  animation-delay: 5s;
}

.shape:nth-child(3) {
  width: 250px;
  height: 250px;
  background: var(--accent);
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
  bottom: 10%;
  left: 30%;
  animation-delay: 10s;
}

@keyframes floatShapes {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(50px, -50px) rotate(120deg);
  }

  66% {
    transform: translate(-50px, 50px) rotate(240deg);
  }
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

/* Mobile nav toggle button */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  position: relative;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

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

.nav-links a:hover::before {
  width: 100%;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5% 4rem;
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  animation: slideInLeft 1s ease;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--dark);
}

.hero-content .highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 0.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-image-container {
  position: relative;
  animation: slideInRight 1s ease;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.image-bg {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 30px;
  z-index: -1;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.2;
  }
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.floating-card {
  position: absolute;
  background: var(--bg-light);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  animation: float 3s ease-in-out infinite;
  z-index: 10;
}

.floating-card.card-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.floating-card.card-2 {
  bottom: 15%;
  left: -10%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card-label {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.card-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

section {
  padding: 6rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--secondary);
  border-radius: 50px;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.2rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  /* allow smaller cards on small screens */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--bg-light);
  padding: 3rem;
  border-radius: 25px;
  border: 2px solid var(--border);
  transition: all 0.4s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
  transition: left 0.5s;
}

.skill-card:hover::before {
  left: 100%;
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.skill-card > * {
  position: relative;
  z-index: 1;
}

.skill-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.skill-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
}

.skill-description {
  color: var(--gray);
  line-height: 1.8;
  font-size: 1.05rem;
}

.verdiq-section {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(16, 185, 129, 0.03));
  border-radius: 30px;
  padding: 6rem 5%;
  max-width: 1400px;
  margin: 4rem auto;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.verdiq-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

.verdiq-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.verdiq-logo {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.verdiq-tagline {
  font-size: 1.5rem;
  color: var(--gray);
  margin-bottom: 2rem;
  font-style: italic;
}

.verdiq-description {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  border: 2px solid var(--border);
  text-align: center;
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray);
  font-size: 1.1rem;
}

.products-heading {
  text-align: center;
  font-size: 2rem;
  margin: 3rem 0 2rem;
  color: var(--primary);
  font-weight: 800;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.product-card {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.product-card:hover {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.product-name {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.product-desc {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

.experience-timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(0, 255, 136, 0.02));
  border-radius: 20px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s;
}

.timeline-item:hover {
  transform: translateX(10px);
  border-left-color: var(--secondary);
}

.timeline-date {
  font-weight: 600;
  color: var(--primary);
}

.timeline-role {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-company {
  color: var(--gray);
  margin-bottom: 1rem;
}

.timeline-desc {
  color: var(--gray);
  line-height: 1.7;
}

.contact-section {
  text-align: center;
  padding: 6rem 5%;
  background: var(--bg-light);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: white;
  border: 2px solid var(--border);
  border-radius: 50px;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s;
}

.contact-icon,
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}

.contact-icon svg,
.social-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.contact-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.social-links-wrap {
  margin-top: 3rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem;
}

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--gray);
  background: white;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-image-container {
    order: -1;
  }

  .floating-card {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  /* Show hamburger, hide inline nav by default */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    gap: 0;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    max-height: 420px;
    padding: 0.75rem 0 1.25rem;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 0.25rem 0;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    width: 100%;
    color: var(--dark);
    font-weight: 700;
  }

  .nav-toggle.open .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .verdiq-section {
    padding: 3rem 5%;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .skills-grid,
  .products-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    flex-direction: column;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .product-card {
    padding: 1.5rem;
  }

  .product-name {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3rem 4%;
  }

  .hero {
    padding: 6rem 4% 3rem;
  }

  .hero-container {
    gap: 2rem;
  }

  .logo {
    font-size: 1.4rem;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .nav-toggle .bar {
    width: 20px;
  }

  .floating-shapes {
    display: none;
  }

  .hero-image-wrapper {
    max-width: 100%;
  }

  .verdiq-section {
    padding: 2rem 4%;
    margin: 2rem 4%;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .verdiq-logo {
    font-size: 2rem;
  }

  .verdiq-tagline {
    font-size: 1.2rem;
  }

  .verdiq-description {
    font-size: 1rem;
  }

  .skill-card {
    padding: 2rem;
  }

  .skill-title {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .contact-link {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }

  .product-name {
    font-size: 0.95rem;
  }

  .product-desc {
    font-size: 0.9rem;
  }
}

/* Give sections a top offset to account for fixed nav when linking */
section {
  scroll-margin-top: 90px;
}
