/* CSS Variables */
:root {
  --font-size: 16px;
  --background: #242734;
  --background-secondary: #323647;
  --card-bg: #424657;
  --primary: #030213;
  --accent: #1886bd;
  --highlight: #fac942;
  --text-white: #ffffff;
  --border-color: rgba(255, 255, 255, 0.1);
  --radius: 8px;
  --font-family: 'Alexandria', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size);
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--text-white);
  line-height: 1.5;
  min-height: 100vh;
}

/* Typography */
h1 {
  font-size: 50px;
  font-weight: 700;
  line-height: 75px;
}

h2 {
  font-size: 32px;
  font-weight: 400;
  line-height: 45px;
}

h3 {
  font-size: 22px;
  font-weight: 400;
  line-height: 35px;
}

h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}

p {
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
}

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

/* App Container */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  isolation: isolate;
}

/* Header */
.header {
  background-color: var(--background);
  height: 60px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid var(--text-white);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 120px;
}

.header-logo {
  padding: 15px;
  font-size: 18px;
  color: var(--text-white);
}

.header-nav {
  display: flex;
  gap: 50px;
  align-items: center;
}

.nav-item {
  padding: 15px;
  font-size: 16px;
  font-weight: 300;
  line-height: 30px;
  color: var(--text-white);
  position: relative;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: var(--highlight);
}

.header-menu {
  padding: 15px;
  font-size: 18px;
  color: var(--text-white);
  position: relative;
}

.header-menu::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: var(--highlight);
}

/* Hero Section */
.hero-section {
  background-color: var(--background-secondary);
  padding-bottom: 0;
  position: relative;
  z-index: 5;
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 120px;
}

.hero-content {
  display: flex;
  gap: 108px;
  align-items: flex-start;
}

.profile-image-container {
  display: inline-grid;
  position: relative;
  flex-shrink: 0;
}

.profile-image-bg {
  width: 318px;
  height: 318px;
  background-color: var(--accent);
  border-radius: 7px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
  grid-column: 1;
  grid-row: 1;
}

.profile-image {
  width: 318px;
  height: 318px;
  border-radius: 8px;
  overflow: hidden;
  grid-column: 1;
  grid-row: 1;
  margin-left: 15px;
  margin-top: 15px;
  position: relative;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero-title {
  color: var(--text-white);
}

.hero-social {
  display: flex;
  gap: 30px;
}

.social-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  color: var(--text-white);
}

.social-item i {
  font-size: 18px;
  line-height: 30px;
  color: var(--text-white);
  stroke: var(--text-white);
}

.social-item span {
  font-size: 16px;
  font-weight: 300;
  line-height: 25px;
}

/* Decorative Shapes */
.decorative-shapes {
  position: relative;
  width: 100%;
  height: 178px;
  transform: rotate(180deg);
}

.shape {
  position: absolute;
}

.shape-1 {
  width: 25px;
  height: 25px;
  background-color: var(--accent);
  border-radius: 5px;
  bottom: 153px;
  left: 9px;
  transform: scaleY(-1);
}

.shape-2 {
  width: 50px;
  height: 50px;
  background-color: var(--accent);
  border-radius: 6px;
  top: 40px;
  left: 159px;
  transform: scaleY(-1);
}

.shape-3 {
  width: 24px;
  height: 43px;
  bottom: 124px;
  left: 23px;
  transform: scaleY(-1);
}

.shape-3 svg {
  width: 100%;
  height: 100%;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background-color: var(--accent);
  border-radius: 8px;
  top: 78px;
  left: 0;
  transform: rotate(-90deg) scaleY(-1);
}

/* Hero Cards */
.hero-cards {
  position: relative;
  margin-top: 0;
  background-color: #242734;
  width: 100%;
  padding-top: 60px;
}

.hero-cards-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 120px 30px;
  display: flex;
  gap: 20px;
}

.info-card {
  flex: 1;
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 25px;
}

.info-card p {
  font-weight: 300;
}

/* How Work Section */
.how-work-section {
  background-color: var(--background-secondary);
  position: relative;
  z-index: 4;
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 90px 120px 90px;
}

.section-title {
  margin-bottom: 60px;
  text-align: center;
}

.work-cards {
  display: flex;
  gap: 20px;
}

.work-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Skills Section */
.skills-section {
  position: relative;
  z-index: 3;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.skill-card i {
  font-size: 18px;
  color: #1886BD !important;
  stroke: #1886BD !important;
  line-height: 30px;
}

.skill-card h4 {
  color: var(--text-white);
}

.skill-card p {
  color: var(--text-white);
}

/* Mobile only skill cards - hidden by default */
.mobile-row-2,
.mobile-row-4 {
  display: none;
}

/* About Section */
.about-section {
  background-color: var(--background-secondary);
  position: relative;
  z-index: 2;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Footer */
.footer {
  background-color: #000;
  width: 100%;
  border-top: 1px solid #fff;
  position: relative;
  z-index: 1;
}

.footer .container {
  padding-top: 15px;
  padding-bottom: 15px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.footer-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.footer-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s;
  color: #fff;
  text-decoration: none;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-link-icon {
  font-size: 24px;
  line-height: 30px;
  color: #fff;
}

.footer-link-text {
  font-weight: 300;
  font-size: 16px;
  line-height: 25px;
  color: #fff;
}

.footer-copyright {
  font-weight: 300;
  font-size: 16px;
  line-height: 25px;
  color: #fff;
  text-align: center;
}

@media (min-width: 800px) {
  .footer-links {
    gap: 60px;
  }
}

/* Utility Classes */
.desktop-only {
  display: block;
}

.desktop-tablet-only {
  display: flex;
}

.mobile-only {
  display: none;
}

/* ==================== TABLET STYLES (800px - 1024px) ==================== */
@media (min-width: 800px) and (max-width: 1024px) {
  .header-content {
    padding: 0 20px;
  }

  .hero-inner {
    padding: 45px 20px 60px;
  }

  .hero-content {
    flex-wrap: wrap;
    gap: 20px;
  }

  .profile-image-bg {
    width: 229px;
    height: 229px;
  }

  .profile-image {
    width: 229px;
    height: 229px;
    margin-left: 10.81px;
    margin-top: 10.81px;
  }

  .profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }

  .hero-text {
    flex-direction: column;
    gap: 30px;
  }

  .hero-social {
    justify-content: flex-start;
  }

  .decorative-shapes {
    display: block;
    position: absolute;
    right: 20px;
    bottom: 505px;
    width: 209px;
    height: 178px;
  }

  .hero-cards-inner {
    padding: 0 20px 30px;
  }

  .section-inner {
    padding: 45px 20px 30px;
  }

  .desktop-only {
    display: none;
  }

  .footer-inner {
    padding: 15px 20px;
  }

  .footer {
    height: 130px;
  }
}

/* ==================== MOBILE STYLES (< 800px) ==================== */
@media (max-width: 799px) {
  .header-content {
    padding: 0 20px;
  }

  .header-nav {
    display: none;
  }

  .mobile-only {
    display: flex;
  }

  .desktop-only,
  .desktop-tablet-only {
    display: none !important;
  }

  /* Mobile skill cards visibility */
  .mobile-row-2,
  .mobile-row-4 {
    display: flex;
  }

  .hero-inner {
    padding: 45px 20px 60px;
  }

  .hero-content {
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }

  .profile-image-bg {
    width: 319.91px;
    height: 319.91px;
  }

  .profile-image {
    width: 319.91px;
    height: 319.91px;
    margin-left: 15.09px;
    margin-top: 15.09px;
  }

  .profile-image img {
    width: 171.82%;
    height: 135.58%;
    left: -28.81%;
    top: -20.42%;
  }

  .hero-text {
    width: 335px;
    gap: 30px;
  }

  .hero-cards-inner {
    padding: 0 20px 30px;
    flex-direction: column;
  }

  .section-inner {
    padding: 45px 20px 30px;
  }

  .work-cards {
    flex-direction: column;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-card {
    padding: 20px 15px;
  }

  .about-section .section-inner {
    padding: 30px 20px;
  }

  .footer-inner {
    padding: 15px 20px;
  }

  .footer {
    height: 130px;
  }
}

/* Smooth transitions for resize */
.header,
.header-content,
.hero-inner,
.hero-content,
.hero-cards-inner,
.section-inner,
.footer-inner {
  transition: padding 0.3s ease;
}

.profile-image-bg,
.profile-image {
  transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease;
}
