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

:root {
  --theme-animation: color .3s, background-color .3s;
  --font-size: 18px;
  --font-size-lg: 1.2em;
  --font-size-xl: 1.4em;
  --gap-xs: 5px;
  --gap-sm: 10px;
  --gap: 20px;
  --text: #3c4858;
  --text-secondary: #6c757d;
  --text-hover: #45c8f1;
  --primary-color: #45c8f1;
  --secondary-color: #239bf5;
  --accent-color: #1e90ff;
  --app-color: #f7fcff;
  --app-color-secondary: #fff;
  --border-color: #e0f0f7;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--font-size);
  background: var(--app-color);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
  transition: var(--theme-animation);
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}

strong, .btn {
  font-family: 'Poppins', sans-serif;
}

.container {
  padding: 0 20px;
  margin: 0 auto;
  max-width: 900px;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

.btn {
  background: transparent;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Intro Section - Centered Vertical Layout */
.intro {
  padding: 80px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.intro-greeting {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
}

.intro-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.intro-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.intro-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.btn-contact {
  background: #2d2d2d;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-contact:hover {
  background: #000;
}

.btn-view-work {
  background: transparent;
  color: var(--text);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  border: 1.5px solid var(--text);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-view-work:hover {
  background: var(--text);
  color: white;
}

.intro-photo-wrapper {
  margin: 0 auto 2.5rem;
  max-width: 500px;
}

.intro-photo-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.intro-photo-img:hover {
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
}

.intro-bottom-text {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.social {
  font-size: var(--font-size-lg);
}

.main {
  margin-bottom: 0;
}

.line::after,
.post a::after {
  content: "";
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  display: block;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.post a {
  font-weight: 600;
  line-height: 1.6;
  display: inline-block;
  transition: all 0.3s ease;
}

.post a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.post a:hover::after {
  width: 110%;
  box-shadow: 0 2px 10px rgba(69, 200, 241, 0.4);
}

.social .social_link {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: var(--gap-sm);
  font-size: var(--font-size-lg);
}

.social .social_link::after {
  content: ".";
  margin-left: var(--gap-xs);
}

.social .social_link:first-child {
  margin-bottom: 10px;
}

.social .social_link a {
  margin-left: var(--gap-xs);
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.social .social_link a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.footer {
  position: relative;
  width: 100%;
  border-top: 1px solid var(--border-color);
  padding: var(--gap) 0;
  background: var(--app-color-secondary);
  transition: var(--theme-animation);
  margin-top: calc(var(--gap) * 3);
}

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

.footer .footer-text {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  opacity: 0.8;
  flex-wrap: wrap;
  justify-content: center;
}

.footer .footer-text .separator {
  color: var(--text-secondary);
  font-weight: 300;
}

.footer .footer-content .left .icon-heart {
  color: var(--text-hover);
}

.footer .footer-content .btn {
  font-size: var(--font-size-lg);
  line-height: 0;
  color: inherit;
}

@media only screen and (max-width: 768px) {
  .intro {
    padding: 60px 0 60px;
    min-height: auto;
  }

  .intro-content {
    max-width: 100%;
  }

  .intro-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

  .intro-buttons {
    gap: 0.8rem;
  }

  .intro-photo-wrapper {
    max-width: 400px;
  }
}

@media only screen and (max-width: 480px) {
  :root { --font-size: 15px; }
  .social .social_link { display: block; }

  .intro {
    padding: 40px 0 50px;
  }

  .intro-greeting {
    font-size: 0.9rem;
  }

  .intro-title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
    margin-bottom: 1rem;
  }

  .intro-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .intro-buttons {
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 3rem;
  }

  .btn-contact,
  .btn-view-work {
    width: 100%;
    max-width: 320px;
    padding: 12px 28px;
    font-size: 0.95rem;
  }

  .intro-photo-wrapper {
    max-width: 100%;
  }

  .intro-bottom-text {
    font-size: 0.85rem;
  }

  .footer .footer-text {
    font-size: 12px;
    gap: 6px;
    text-align: center;
  }

  .footer .footer-text .separator {
    display: none;
  }

  .footer .footer-text span {
    display: block;
    margin: 2px 0;
  }
}

.certificates {
  justify-content: space-around;
  padding: var(--gap) 0;
}

.blog-posts,
.events,
.expertise {
  margin-bottom: calc(var(--gap) * 2);
  padding: calc(var(--gap) * 1.5) 0;
}

.blog-posts h2,
.events h2,
.expertise h2,
.certificates h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.blog-posts h2::after,
.events h2::after,
.expertise h2::after,
.certificates h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

article.post {
  padding: 0;
  margin: 1.5rem 0;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
}

article.post:hover {
  transform: translateX(5px);
}

article.post h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text);
  font-weight: 600;
}

article.post p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.event-card,
.portfolio-item {
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 12px;
  background: var(--app-color-secondary);
  border: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 2px 8px rgba(69, 200, 241, 0.08);
}

.event-card:hover,
.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(69, 200, 241, 0.2);
  border-color: var(--primary-color);
}

.certificates img {
  max-height: 100px;
  width: auto;
  transition: all 0.3s ease;
  filter: grayscale(20%);
}

.certificates img:hover {
  transform: scale(1.1);
  filter: grayscale(0%) drop-shadow(0 4px 12px rgba(69, 200, 241, 0.3));
}

html {
  scroll-behavior: smooth;
}

/* Modern Animations */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

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

.bounce-in {
  animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* Smooth transitions */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.tag {
  display: inline-block;
  padding: 4px 8px;
  margin: 2px;
  border-radius: 4px;
  background-color: #f0f0f0;
  font-size: 0.9em;
}

.portfolio-item {
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  background-color: #f8f8f8;
}

.events-section {
  margin: 40px 0;
}

.event-card {
  padding: 20px;
  margin: 10px 0;
  border-radius: 8px;
  background-color: #f8f8f8;
}

.event-card p {
  margin: 10px 0;
}

.event-card .event-description {
  font-style: italic;
  color: #666;
}

.event-card .event-date {
  font-weight: bold;
  color: #333;
}

.whoami .gradient-text {
  background: linear-gradient(90deg, #4776E6, #8E54E9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  display: inline-block;
}



/* Floating CTA Button */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  animation: bounce-in 0.8s ease-out 0.5s both;
}

.floating-cta-button {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 16px 28px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(69, 200, 241, 0.35);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.floating-cta-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(69, 200, 241, 0.45);
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.floating-cta-button:active {
  transform: translateY(-1px) scale(1.02);
}

@media only screen and (max-width: 768px) {
  .floating-cta {
    bottom: 20px;
    right: 20px;
  }

  .floating-cta-button {
    padding: 14px 24px;
    font-size: 14px;
  }
}

@media only screen and (max-width: 480px) {
  .floating-cta {
    bottom: 80px;
    right: 15px;
    left: 15px;
    text-align: center;
  }

  .floating-cta-button {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
  .scrolling-text-section {
    padding: 25px 0;
  }

  .scrolling-text-track {
    gap: 50px;
    animation-duration: 25s;
  }

  .scrolling-text-item {
    font-size: clamp(0.8rem, 2.5vw, 1.1rem);
  }
}

@media only screen and (max-width: 480px) {
  .scrolling-text-section {
    padding: 20px 0;
  }

  .scrolling-text-track {
    gap: 40px;
    animation-duration: 20s;
  }

  .scrolling-text-item {
    font-size: clamp(0.7rem, 3vw, 1rem);
  }
}

