/* Main Stylesheet */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-main);
    background-color: var(--color-bg-body);
    color: var(--color-text-body);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Typography Utility Classes */
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--color-text-main);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: 1rem;
}

.h1 {
    font-size: var(--font-size-4xl);
    letter-spacing: -0.02em;
}

.h2 {
    font-size: var(--font-size-3xl);
    letter-spacing: -0.01em;
}

.h3 {
    font-size: var(--font-size-2xl);
}

.text-lg {
    font-size: var(--font-size-lg);
}

.text-sm {
    font-size: var(--font-size-sm);
}

.text-muted {
    color: var(--color-text-muted);
}

/* Layout Utility Classes */
.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.flex {
    display: flex;
    gap: 1rem;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* Specific Section Styles (Placeholder for now) */
/* Header */
header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

header .container {
    height: 100%;
}

.logo {
    color: var(--color-primary);
    margin-bottom: 0;
    font-weight: 900;
}

.nav-link {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.nav-link.btn {
    padding: 0.75rem 1.5rem;
    color: var(--color-white);
}

.nav-link.btn:hover {
    color: var(--color-white);
    background-color: var(--color-primary-hover);
}

/* Mobile Menu Button */
#mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    color: var(--color-text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.btn-outline:hover {
    border-color: var(--color-text-main);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .h1 { font-size: var(--font-size-3xl); }
  .h2 { font-size: var(--font-size-2xl); }
  .section { padding: 3rem 0; }
  
  /* Header Mobile */
  .hidden-mobile {
      display: none;
      position: absolute;
      top: var(--header-height);
      left: 0;
      width: 100%;
      background: var(--color-white);
      padding: 1rem;
      border-bottom: 1px solid var(--color-border);
      box-shadow: var(--shadow-lg);
  }
  
  .hidden-mobile.open {
      display: block;
      animation: slideDown 0.3s ease;
  }
  
  .hidden-mobile ul {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.5rem;
  }
  
  .hidden-mobile .nav-link {
      display: block;
      width: 100%;
  }
  
  .hidden-mobile .btn {
      margin-left: 0 !important;
      margin-top: 1rem;
      width: 100%;
  }

  #mobile-menu-btn {
      display: flex;
  }
  
  /* Hero Mobile */
  #hero .grid {
      grid-template-columns: 1fr !important;
      text-align: center;
      gap: 3rem;
  }
  
  #hero .hero-content {
      order: 2;
  }
  
  #hero .hero-visual {
      order: 1;
      height: 300px !important;
  }
  
  #hero .flex {
      justify-content: center;
  }
  
  /* About Mobile */
  #about .grid {
      grid-template-columns: 1fr !important;
  }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   Section Specific Styles
   ========================================= */

/* Hero Section */
.hero-visual .code-snippet {
    transition: transform var(--transition-normal);
}

.hero-visual:hover .code-snippet {
    transform: translate(-30px, 20px) scale(1.05) !important;
}

/* Skills Cards */
#skills .grid > div {
    background: var(--color-white);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

#skills .grid > div:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 1rem;
}

.timeline-item:last-child {
    border-left-color: transparent !important;
    padding-bottom: 0 !important;
}

/* Featured Projects */
.project-card {
    background: var(--color-white);
    transition: transform var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
#contact a:hover {
    opacity: 1 !important;
    transform: translateY(-2px);
}

/* Base Keyframes */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.1; }
    100% { transform: scale(1); opacity: 0.3; }
}