/* ===================================
   AWARD-WINNING PORTFOLIO DESIGN
   Modern Black & White Theme
   Inspired by Awwwards
   =================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&display=swap");

/* ===== Reset & Variables ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
  scroll-behavior: auto; /* We'll use custom smooth scroll */
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Custom Smooth Scroll Animation */
@keyframes smoothScroll {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--black);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  font-size: 64px;
  color: var(--white);
  margin-bottom: 30px;
  display: flex;
  gap: 10px;
  justify-content: center;
  animation: pulse 1.5s ease-in-out infinite;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--gray-800);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: var(--white);
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(200%);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* ===== Navigation ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s var(--transition-smooth);
}

.main-nav.scrolled {
  padding: 20px 60px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  gap: 5px;
  color: var(--black);
}

.nav-menu {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--black);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-social {
  display: flex;
  gap: 20px;
}

.nav-social a {
  color: var(--black);
  font-size: 18px;
  transition: transform 0.3s ease;
}

.nav-social a:hover {
  transform: translateY(-3px);
}

/* ===== Page Indicator ===== */
.page-indicator {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.indicator-dots {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--black);
  transform: scale(1.3);
}

.dot:hover {
  background: var(--gray-600);
  transform: scale(1.2);
}

/* ===== Main Container ===== */
.main-container {
  width: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}

.section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 60px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.section.section-enter {
  opacity: 0;
  transform: translateY(30px);
}

.section-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* ===== Hero Section ===== */
.hero-section {
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 40px 40px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
}

.float-shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.05);
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  top: 10%;
  right: 10%;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 5%;
  transform: rotate(45deg);
}

.shape-3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  top: 60%;
  right: 30%;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-30px, 30px) rotate(240deg);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
  max-width: 650px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ff00;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 25px;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-style: italic;
  color: var(--gray-400);
  margin-bottom: 35px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.btn-primary,
.btn-secondary {
  padding: 15px 35px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s var(--transition-smooth);
  border: 2px solid var(--white);
}

.btn-primary {
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  gap: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 1px;
}

.hero-visual {
  flex: 0 0 380px;
}

.visual-frame {
  position: relative;
  width: 380px;
  height: 420px;
}

.frame-decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--white);
  z-index: 0;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.frame-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  background: var(--white);
  z-index: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: var(--gray-400);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0;
  }
  50% {
    transform: translateY(20px);
    opacity: 1;
  }
}

/* ===== About Section ===== */
.about-section {
  background: var(--gray-50);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 80px;
}

.section-number {
  font-family: "Space Grotesk", sans-serif;
  font-size: 80px;
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
}

.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
}

.section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--black), transparent);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.text-block {
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray-700);
}

.text-block .lead {
  font-size: 22px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--black);
}

.text-block strong {
  font-weight: 600;
  color: var(--black);
}

.achievement-card {
  background: var(--black);
  color: var(--white);
  padding: 40px;
  display: flex;
  gap: 25px;
  align-items: center;
}

.achievement-icon {
  font-size: 64px;
}

.achievement-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.achievement-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.achievement-location {
  font-size: 14px;
  color: var(--gray-400);
  letter-spacing: 1px;
}

.quote-box {
  background: var(--white);
  padding: 40px;
  border-left: 4px solid var(--black);
  position: relative;
}

.quote-icon {
  font-size: 32px;
  color: var(--gray-300);
  margin-bottom: 20px;
}

.quote-text {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  color: var(--gray-800);
}

.about-visual {
  position: relative;
}

.worldskills-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 3px solid var(--black);
}

.worldskills-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.frame-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 1px;
}

.overlay-text {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.visual-decoration {
  position: absolute;
  bottom: -30px;
  right: -30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.deco-box {
  width: 80px;
  height: 80px;
  border: 2px solid var(--black);
  background: var(--white);
}

.deco-line {
  width: 100px;
  height: 2px;
  background: var(--black);
}

/* ===== Skills Section ===== */
.skills-section {
  background: var(--white);
}

.skills-content {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.linkedin-link {
  color: #0077b5;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.linkedin-link:hover {
  color: var(--black);
  text-decoration: underline;
}

.modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  max-width: 1200px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  z-index: 10001;
  transition: transform 0.3s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-pdf {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: auto;
}

/* Disable right-click on PDF modal */
.modal-pdf {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-visual {
  position: relative;
}

.worldskills-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 3px solid var(--black);
}

.worldskills-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.frame-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  color: var(--white);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.visual-decoration {
  position: absolute;
  bottom: -30px;
  right: -30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.deco-box {
  width: 80px;
  height: 80px;
  border: 2px solid var(--black);
  background: var(--white);
}

.deco-line {
  width: 100px;
  height: 2px;
  background: var(--black);
}

/* ===== Skills Section ===== */
.skills-section {
  background: var(--white);
}

.skills-content {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.skill-category {
  background: var(--gray-50);
  padding: 50px 40px;
  border: 2px solid var(--black);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 10px 10px 0 var(--black);
}

.category-icon {
  font-size: 48px;
  margin-bottom: 25px;
  color: var(--black);
}

.category-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--black);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.expertise-section {
  background: var(--gray-50);
  padding: 60px;
  border: 2px solid var(--black);
}

.expertise-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--black);
}

.expertise-bars {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.expertise-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}

.expertise-bar {
  height: 12px;
  background: var(--gray-300);
  border: 2px solid var(--black);
  overflow: hidden;
}

.expertise-fill {
  height: 100%;
  background: var(--black);
  width: 0;
  transition: width 1.5s var(--transition-smooth);
}

/* ===== Projects Section ===== */
.projects-section {
  background: var(--black);
  color: var(--white);
}

.projects-section .section-number {
  color: var(--gray-800);
}

.projects-section .section-title {
  color: var(--white);
}

.projects-section .section-line {
  background: linear-gradient(to right, var(--white), transparent);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--white);
  color: var(--black);
  padding: 50px;
  position: relative;
  border: 2px solid var(--white);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 80px;
  font-weight: 800;
  color: var(--gray-100);
  line-height: 1;
}

.project-icon {
  font-size: 56px;
  margin-bottom: 25px;
  color: var(--black);
}

.project-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.project-type {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 15px;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-radius: 4px;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.project-status i {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.project-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 25px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--black);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.project-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-700);
}

.feature i {
  color: var(--black);
}

/* ===== Contact Section ===== */
.contact-section {
  background: var(--gray-50);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.contact-text {
  max-width: 700px;
}

.contact-intro {
  font-size: 24px;
  line-height: 1.6;
  color: var(--gray-700);
  margin-bottom: 30px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  background: var(--white);
  border: 2px solid var(--black);
  font-weight: 600;
}

.status-indicator {
  width: 12px;
  height: 12px;
  background: #00ff00;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 40px;
  background: var(--white);
  border: 2px solid var(--black);
  text-decoration: none;
  color: var(--black);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: var(--black);
  color: var(--white);
  transform: translateX(10px);
}

.contact-item:hover .contact-item-icon {
  background: var(--white);
  color: var(--black);
}

.contact-item:hover .contact-arrow {
  transform: translateX(10px);
}

.contact-item-icon {
  width: 70px;
  height: 70px;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-item-info h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact-item-info p {
  font-size: 15px;
  color: var(--gray-600);
}

.contact-item:hover .contact-item-info p {
  color: var(--gray-300);
}

.contact-arrow {
  margin-left: auto;
  font-size: 24px;
  transition: transform 0.3s ease;
}

/* ===== Footer ===== */
.footer {
  margin-top: 100px;
  padding-top: 60px;
  border-top: 2px solid var(--gray-300);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 15px;
  font-size: 14px;
  color: var(--gray-600);
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--black);
}

.footer-social {
  display: flex;
  gap: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 2px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 18px;
  transition: all 0.3s ease;
}

.footer-social a span {
  display: none; /* Hide platform names on desktop */
}

.footer-social a:hover {
  background: var(--black);
  color: var(--white);
}

.footer-tagline {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--gray-300);
  font-size: 14px;
  color: var(--gray-600);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 70px;
  }

  .section-title {
    font-size: 48px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 968px) {
  .main-nav {
    padding: 20px 30px;
  }

  .nav-menu {
    display: none;
  }

  .section {
    padding: 80px 30px;
  }

  .hero-content {
    flex-direction: column;
    gap: 60px;
  }

  .hero-title {
    font-size: 56px;
  }

  .hero-visual {
    flex: 0 0 auto;
  }

  .visual-frame {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .page-indicator {
    right: 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }
}

/* ===== PROFESSIONAL MOBILE OPTIMIZATION (640px and below) ===== */
@media (max-width: 640px) {
  /* Global Mobile Adjustments */
  html {
    font-size: 16px;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
  }

  body {
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
  }

  .section {
    padding: 50px 16px;
    min-height: auto;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .section-container {
    padding: 0 16px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .main-container {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
  }

  /* ===== PRELOADER - MOBILE ===== */
  .preloader {
    align-items: center;
    justify-content: center;
  }

  .loader-content h2 {
    font-size: 28px;
  }

  .loader-bar {
    width: 200px;
  }

  /* ===== HERO SECTION - MOBILE ===== */
  .hero-section {
    padding: 80px 16px 40px;
    min-height: 100vh;
    height: auto;
    max-height: none;
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .hero-content {
    flex-direction: column-reverse !important;
    justify-content: center !important;
    gap: 24px;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .hero-text {
    flex: none;
    max-width: 100%;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .hero-title {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 8px;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.9;
    padding: 0 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Hero Stats - Mobile Grid */
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
    padding: 16px 0;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0 auto;
    overflow-x: hidden !important;
  }

  .stat-item {
    padding: 14px 8px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .stat-number {
    font-size: 22px;
    margin-bottom: 4px;
    word-wrap: break-word;
  }

  .stat-label {
    font-size: 10px;
    letter-spacing: 0.3px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* Hero CTA Buttons */
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
    margin-top: 16px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px;
    box-sizing: border-box;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* Disable data-aos animations on hero buttons */
  .hero-cta [data-aos],
  .hero-section .btn-primary[data-aos],
  .hero-section .btn-secondary[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* Hero Visual/Image */
  .hero-visual {
    flex: none;
    width: 100%;
    max-width: 260px;
    box-sizing: border-box;
  }

  .visual-frame {
    width: 100%;
    height: 260px;
    border-radius: 12px;
    box-sizing: border-box;
  }

  .visual-frame img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .frame-decoration,
  .frame-accent {
    display: none;
  }

  /* Hide decorative elements */
  .visual-decoration,
  .float-shape,
  .grid-overlay {
    display: none;
  }

  /* ===== SECTION HEADERS - MOBILE ===== */
  .section-header {
    margin-bottom: 30px;
    text-align: center !important;
    padding: 0 5px;
    width: 100%;
    box-sizing: border-box;
  }

  .section-number {
    font-size: 40px;
    opacity: 0.08;
    text-align: center;
  }

  .section-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 10px;
    word-wrap: break-word;
    text-align: center !important;
  }

  .section-subtitle {
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
    padding: 0 5px;
    text-align: center !important;
  }

  /* Ensure all section titles are centered */
  .skills-section .section-header,
  .projects-section .section-header,
  .contact-section .section-header {
    text-align: center !important;
  }

  /* ===== ABOUT SECTION - MOBILE ===== */
  .about-content {
    flex-direction: column !important;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .about-text {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    overflow-x: hidden !important;
  }

  .text-block {
    font-size: 15px;
    line-height: 1.7;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .text-block .lead {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .about-description {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
  }

  .achievement-card {
    padding: 20px 16px;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .achievement-icon {
    font-size: 40px;
    flex-shrink: 0;
  }

  .achievement-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
  }

  .achievement-info h3 {
    font-size: 16px;
    margin-bottom: 6px;
    word-wrap: break-word;
  }

  .achievement-title {
    font-size: 18px;
    margin-bottom: 6px;
    word-wrap: break-word;
  }

  .achievement-location {
    font-size: 12px;
    word-wrap: break-word;
  }

  .quote-box {
    padding: 20px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .quote-text {
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .mission-quote {
    padding: 16px;
    font-size: 15px;
    line-height: 1.6;
    border-left-width: 3px;
    margin: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .about-visual {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden !important;
  }

  .worldskills-image {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    overflow: hidden !important;
  }

  .worldskills-frame {
    width: 100% !important;
    max-width: 100% !important;
    height: 200px;
    border-radius: 10px;
    box-sizing: border-box;
    overflow: hidden !important;
    position: relative;
  }

  .worldskills-frame img {
    width: 100% !important;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .visual-decoration {
    display: none !important;
  }

  .frame-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
  }

  .overlay-text {
    font-size: 14px;
    word-wrap: break-word;
  }

  /* ===== SKILLS SECTION - MOBILE ===== */
  .skills-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .skill-category {
    padding: 18px 14px;
    border-radius: 10px;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .category-title {
    font-size: 17px;
    margin-bottom: 14px;
    word-wrap: break-word;
  }

  .skill-list {
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .skill-item {
    font-size: 13px;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .skill-item i {
    font-size: 15px;
    flex-shrink: 0;
  }

  /* ===== PROJECTS SECTION - MOBILE ===== */
  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .project-card {
    padding: 20px 14px;
    border-radius: 10px;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .project-header {
    margin-bottom: 14px;
    overflow-x: hidden;
  }

  .project-title {
    font-size: 18px;
    margin-bottom: 6px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .project-type {
    font-size: 11px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .project-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .project-tags {
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .tag,
  .tech-badge {
    padding: 5px 10px;
    font-size: 10px;
    box-sizing: border-box;
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .project-status {
    padding: 6px 10px;
    font-size: 9px;
    box-sizing: border-box;
    word-wrap: break-word;
  }

  .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .project-features {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .feature {
    font-size: 13px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  /* ===== CONTACT SECTION - MOBILE ===== */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .contact-item {
    padding: 16px 14px !important;
    border-radius: 10px;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    text-align: left !important;
  }

  .contact-item-icon {
    width: 45px !important;
    height: 45px !important;
    font-size: 20px !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .contact-item-info {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .contact-item-info h4 {
    font-size: 15px !important;
    margin-bottom: 4px;
    font-weight: 600;
  }

  .contact-item-info p {
    font-size: 12px !important;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    opacity: 0.8;
  }

  .contact-arrow {
    font-size: 16px;
    flex-shrink: 0;
    margin-left: auto;
  }

  /* Legacy contact styles (if any remain) */
  .contact-icon {
    font-size: 26px;
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .contact-label {
    font-size: 11px;
    margin-bottom: 6px;
    word-wrap: break-word;
  }

  .contact-value {
    font-size: 13px;
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
    max-width: 100%;
    width: 100%;
    display: block;
    padding: 0 4px;
  }

  .contact-value a {
    word-break: break-all !important;
    overflow-wrap: break-word !important;
    display: inline-block;
    max-width: 100%;
  }

  /* ===== NAVIGATION - MOBILE ===== */
  .main-nav {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
  }

  .main-nav.scrolled {
    padding: 14px 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  }

  .logo {
    font-size: 18px;
  }

  .nav-menu {
    display: none !important;
  }

  .nav-social {
    gap: 12px;
  }

  .nav-social a {
    font-size: 18px;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Page Indicator - Hide on mobile for cleaner UX */
  .page-indicator {
    display: none;
  }

  /* ===== FOOTER - MOBILE ===== */
  footer {
    padding: 40px 20px 24px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .footer-social {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
  }

  .footer-social a {
    width: 100%;
    height: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
  }

  .footer-social a i {
    font-size: 18px;
    flex-shrink: 0;
  }

  .footer-social a span {
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
  }

  .footer-text {
    font-size: 13px;
    line-height: 1.6;
    padding: 0 10px;
  }

  .linkedin-text {
    font-size: 13px;
  }

  .linkedin-text i {
    font-size: 15px;
  }

  /* ===== MOBILE TOUCH IMPROVEMENTS ===== */
  .btn-primary,
  .btn-secondary,
  .contact-item,
  .project-card {
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  /* Smooth scrolling on mobile */
  html {
    -webkit-overflow-scrolling: touch;
  }

  /* Critical: Prevent horizontal scroll */
  body,
  .main-container,
  .section,
  .section-container,
  .hero-section,
  .hero-content {
    overflow-x: hidden !important;
    max-width: 100% !important;
  }

  * {
    box-sizing: border-box !important;
  }

  /* Ensure all containers respect viewport */
  .hero-text,
  .hero-cta,
  .hero-stats,
  .about-content,
  .about-text,
  .about-visual,
  .skills-grid,
  .skill-category,
  .projects-grid,
  .project-card,
  .contact-grid,
  .contact-item {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Ensure images don't overflow */
  img {
    max-width: 100% !important;
    height: auto;
    display: block;
  }

  /* Typography adjustments */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  /* Ensure text doesn't overflow */
  p,
  span,
  a,
  div {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  img,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  /* Improve readability */
  p,
  li,
  .project-description,
  .about-description {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* Spacing adjustments for better breathing room */
  .section + .section {
    margin-top: 0;
  }

  /* ===== DISABLE ANIMATIONS ON MOBILE (EXCEPT PRELOADER & ABOUT) ===== */
  /* Disable AOS animations on all sections except About */
  [data-aos]:not(.about-section [data-aos]):not(.about-text):not(
      .about-visual
    ):not(.section-header) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    pointer-events: auto !important;
  }

  /* Disable Hero section animations */
  .hero-section [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Disable Skills section animations */
  .skills-section [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Disable Projects section animations */
  .projects-section [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Disable Contact section animations */
  .contact-section [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* Keep About section animations enabled */
  .about-section [data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
  }

  /* Keep preloader animations (no changes needed) */
  .preloader,
  .preloader * {
    animation: inherit;
  }

  /* Disable all hover effects and transitions for better mobile performance */
  .hero-section *,
  .skills-section *,
  .projects-section *,
  .contact-section * {
    transition: none !important;
  }

  /* Re-enable transitions only for About section */
  .about-section * {
    transition: opacity 0.8s ease, transform 0.8s ease !important;
  }

  /* Make hover effects work better on touch */
  @media (hover: none) {
    .project-card:hover,
    .contact-item:hover,
    .skill-category:hover {
      transform: none;
    }

    .project-card:active,
    .contact-item:active,
    .skill-category:active {
      transform: scale(0.98);
    }
  }
}

/* ===== Animations ===== */
[data-aos] {
  transition-duration: 0.8s;
}

/* Magnetic Effect */
.btn-primary,
.btn-secondary,
.project-card,
.contact-item {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* Smooth scale animation */
@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Fade slide in */
@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gradient animation */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Glowing effect */
@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.6);
  }
}

::selection {
  background: var(--black);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
  background: var(--black);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-800);
}
