@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --bg-color: #F4F4F4;
  /* 60% dominant */
  --primary-color: #2E2E2E;
  /* 30% secondary/primary content */
  --accent-color: #4A90E2;
  /* 10% accent */

  --white: #FFFFFF;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --spacing-lg: 100px;
  --spacing-md: 60px;

  --border-radius-lg: 24px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;

  --shadow-sm: 0 4px 12px rgba(46, 46, 46, 0.05);
  --shadow-md: 0 12px 30px rgba(46, 46, 46, 0.08);
  --shadow-lg: 0 24px 50px rgba(74, 144, 226, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--primary-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Utilities */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
  animation: separator-pulse 3s infinite ease-in-out;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background-color: var(--bg-color);
  border: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: dot-travel 3s infinite ease-in-out;
  z-index: 2;
}

@keyframes separator-pulse {
  0%, 100% { width: 50px; opacity: 0.5; }
  50% { width: 120px; opacity: 1; }
}

@keyframes dot-travel {
  0%, 100% { transform: translateX(calc(-50% - 25px)); }
  50% { transform: translateX(calc(-50% + 25px)); }
}

.section-subtitle {
  text-align: center;
  margin-bottom: var(--spacing-md);
  color: #555;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  font-size: 1rem;
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

.btn-accent:hover {
  background-color: #3b7bc6;
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(74, 144, 226, 0.4);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(46, 46, 46, 0.2);
}

.btn-primary:hover {
  background-color: #1a1a1a;
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(46, 46, 46, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}

/* Grid System */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 30px;
  /* 4 column base for phone */
  grid-template-columns: repeat(4, 1fr);
}

/* Tablet: 8 columns */
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* Desktop: 12 columns */
@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

/* Column Spanning Classes */
.col-12,
[class*="md-col-"],
[class*="lg-col-"] {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .md-col-4 {
    grid-column: span 4;
  }

  .md-col-8 {
    grid-column: span 8;
  }
}

@media (min-width: 1024px) {
  .lg-col-3 {
    grid-column: span 3;
  }

  .lg-col-4 {
    grid-column: span 4;
  }

  .lg-col-5 {
    grid-column: span 5;
  }

  .lg-col-6 {
    grid-column: span 6;
  }

  .lg-col-7 {
    grid-column: span 7;
  }

  .lg-col-8 {
    grid-column: span 8;
  }
}

/* Header & Floating Navbar */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-top: 30px;
}

.navbar {
  background: var(--white);
  border-radius: 50px;
  padding: 10px 20px 10px 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 30px;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  top: 15px;
  box-shadow: var(--shadow-lg);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
}

.logo-img-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-color);
  padding: 2px;
}

.logo-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: #555;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

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

.nav-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: var(--spacing-lg);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(74, 144, 226, 0.1);
  color: var(--accent-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
  width: max-content;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-title span {
  color: var(--accent-color);
}

letter.hover-fly {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
  cursor: default;
}

.hero-text {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image-inner {
  position: relative;
  z-index: 2;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-shape {
  position: absolute;
  top: -5%;
  right: -5%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  border-radius: var(--border-radius-lg);
  z-index: 1;
  opacity: 0.1;
  transform: rotate(5deg);
}

/* About Section */
.about {
  padding: var(--spacing-lg) 0;
  background-color: var(--white);
}

.about-img-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
}

.about-img-wrapper img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
  object-fit: cover;
}

.about-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--primary-color);
  color: var(--white);
  padding: 24px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 15px;
}

.about-card h3 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0;
}

.about-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.3;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  margin-top:24px;
}

.about-content p {
  color: #555;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: rgba(74, 144, 226, 0.1);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.feature-item h4 {
  font-size: 1rem;
}

/* Services Section */
.services {
  padding: var(--spacing-lg) 0;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(74, 144, 226, 0.1);
  color: var(--accent-color);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--accent-color);
  color: var(--white);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.service-link {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.service-link:hover {
  color: var(--primary-color);
}

/* Skills Section */
.skills {
  padding: var(--spacing-lg) 0;
  background-color: var(--white);
}

.skills-wrapper {
  background-color: var(--primary-color);
  border-radius: var(--border-radius-lg);
  padding: 60px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.skills-wrapper h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.skills-wrapper p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.skill-item {
  margin-bottom: 24px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-weight: 500;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 4px;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.experience-item {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.experience-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: 4px solid var(--primary-color);
}

.experience-duration {
  color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.experience-item h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.experience-item p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* CTA Section */
.cta {
  padding: var(--spacing-lg) 0;
  text-align: center;
  position: relative;
}

.cta-box {
  background: var(--accent-color);
  border-radius: var(--border-radius-lg);
  padding: 80px 40px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
}

.cta-box h2 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 24px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box .btn {
  background-color: var(--white);
  color: var(--accent-color);
}

.cta-box .btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0 30px;
}

.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 60px;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.footer-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--white);
  object-fit: cover;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.footer-heading {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Custom Envato Style Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  /* Hides default cursor lag with a smooth follow */
}

.custom-cursor.active {
  width: 60px;
  height: 60px;
  background-color: rgba(74, 144, 226, 0.15);
  border-color: transparent;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    gap: 15px;
    margin-top: 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .btn-contact {
    display: none;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .about-img-container {
    height: auto !important;
  }

  .about-img-wrapper {
    height: 350px !important;
  }

  .about-card {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: -30px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .skills-col {
    padding-right: 0 !important;
  }

  .experience-col {
    margin-top: 40px;
    margin-left: 0 !important;
  }

  .skills-wrapper {
    padding: 30px 20px;
  }

  .cta-box {
    padding: 40px 20px;
  }

  .cta-box h2 {
    font-size: 2rem;
  }

  .footer-col {
    grid-column: 1 / -1;
    margin-bottom: 30px;
  }
}