/* ==========================================================================
   MAIN STYLESHEET - WHITE • PURPLE • YELLOW
   ========================================================================== */

@import url('./variables.css');
@import url('./base.css');
@import url('./components.css');

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
  z-index: var(--z-sticky);
  box-shadow: 0 0 30px -10px rgba(6, 182, 212, 0.2);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
}

.brand-icon {
  width: 34px;
  height: 34px;
  color: #f0f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(132, 204, 22, 0.25));
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 6px;
  box-shadow: 0 0 15px -3px rgba(6, 182, 212, 0.4);
  transition: all var(--transition-fast);
}

.brand-icon:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(132, 204, 22, 0.35));
  box-shadow: 0 0 20px -2px rgba(6, 182, 212, 0.6), 0 0 10px -2px rgba(132, 204, 22, 0.4);
  border-color: rgba(6, 182, 212, 0.6);
}

.brand-text-accent {
  background: linear-gradient(135deg, #06b6d4, #84cc16);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f0f9ff, #06b6d4, #84cc16);
  transition: width var(--transition-normal);
  border-radius: 1px;
}

.nav-link:hover {
  color: #f0f9ff;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-toggle-input {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}

.nav-toggle-label svg {
  width: 24px;
  height: 24px;
}

/* Hero Section */
.hero-section {
  padding-top: calc(var(--nav-height) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pre-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.hero-title {
  font-size: var(--text-4xl);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-6);
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-cloud-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.cloud-chips-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: var(--space-2);
}

/* Grids */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
}

.pillar-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pillar-icon-box {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--cyan-subtle);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--color-cyan-light);
  margin-bottom: var(--space-4);
  box-shadow: 0 0 20px -5px rgba(6, 182, 212, 0.35);
  transition: all var(--transition-normal);
}

.pillar-card:nth-child(2) .pillar-icon-box {
  background: var(--lime-subtle);
  border-color: rgba(132, 204, 22, 0.35);
  color: var(--color-lime-light);
  box-shadow: 0 0 20px -5px rgba(132, 204, 22, 0.35);
}

.pillar-card:nth-child(3) .pillar-icon-box {
  background: var(--rose-subtle);
  border-color: rgba(244, 63, 94, 0.35);
  color: var(--color-rose-light);
  box-shadow: 0 0 20px -5px rgba(244, 63, 94, 0.35);
}

.pillar-icon-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px -3px currentColor;
}

.pillar-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.pillar-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.pillar-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}

.pillar-bullets li {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pillar-bullets li::before {
  content: "▹";
  color: var(--color-lime);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--space-6);
}

.skill-category-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
}

.skill-cat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.12);
  color: var(--color-cyan-light);
  border: 1px solid rgba(6, 182, 212, 0.25);
  transition: all var(--transition-fast);
}

.skill-cat-title {
  font-size: var(--text-base);
  font-weight: 600;
}

.skill-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.project-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-8);
  align-items: stretch;
  padding: var(--space-8);
}

.project-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.project-badge {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-yellow-light);
  font-weight: 700;
}

.project-title {
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.project-overview {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

.project-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  background: rgba(0, 0, 0, 0.35);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.breakdown-block h5 {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--color-purple-light);
  margin-bottom: var(--space-1);
}

.breakdown-block p {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}

.project-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #080710;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  font-family: var(--font-mono);
}

.architecture-diagram {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.arch-node {
  background: rgba(19, 16, 36, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
  font-size: var(--text-xs);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arch-node.secure {
  border-color: rgba(250, 204, 21, 0.45);
  background: rgba(250, 204, 21, 0.08);
}

.arch-node.active-policy {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.08);
}

.arch-connector {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-purple-light);
  font-weight: 600;
}

/* Certifications */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.cert-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cert-badge-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan-light);
  border: 1px solid rgba(6, 182, 212, 0.3);
  margin-bottom: var(--space-4);
  box-shadow: 0 0 20px -5px rgba(6, 182, 212, 0.3);
  transition: all var(--transition-fast);
}

.cert-card:nth-child(even) .cert-badge-box {
  color: var(--color-lime-light);
  background: rgba(132, 204, 22, 0.12);
  border-color: rgba(132, 204, 22, 0.3);
  box-shadow: 0 0 20px -5px rgba(132, 204, 22, 0.3);
}

.cert-title {
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.cert-issuer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: var(--space-3);
}

.cert-id {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-dim);
}

/* Experience */
.experience-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-10);
}

.experience-summary {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  background: rgba(26, 40, 68, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all var(--transition-normal);
  font-family: var(--font-sans);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4), 0 0 10px rgba(132, 204, 22, 0.2);
  background: rgba(26, 40, 68, 0.98);
}

.form-textarea {
  resize: vertical;
  min-height: 125px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-8);
  background: var(--bg-darkest);
  margin-top: var(--space-16);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

/* ========================================================================
   MODERN CSS ANIMATIONS & TRANSITIONS
   ======================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 10px rgba(132, 204, 22, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5), 0 0 20px rgba(132, 204, 22, 0.3);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Apply animations to key sections */
.hero-section {
  animation: fadeInUp 0.8s ease-out;
}

.hero-content {
  animation: slideInRight 0.8s ease-out 0.1s both;
}

.hero-visual {
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.section {
  animation: fadeInUp 0.8s ease-out;
}

.glass-card {
  animation: fadeInUp 0.6s ease-out;
}

.glass-card:nth-child(1) {
  animation-delay: 0.1s;
}

.glass-card:nth-child(2) {
  animation-delay: 0.2s;
}

.glass-card:nth-child(3) {
  animation-delay: 0.3s;
}

.metric-item {
  animation: fadeInUp 0.6s ease-out;
}

.metric-item:nth-child(1) {
  animation-delay: 0.1s;
}

.metric-item:nth-child(2) {
  animation-delay: 0.2s;
}

.metric-item:nth-child(3) {
  animation-delay: 0.3s;
}

.metric-item:nth-child(4) {
  animation-delay: 0.4s;
}

.timeline-item {
  animation: slideInRight 0.6s ease-out;
}

/* Enhanced button hover effects */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Subtle glow effect on interactive elements */
.glass-card,
.metric-item,
.tech-tag {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced shadow on hover for depth */
.glass-card:hover {
  background: rgba(26, 40, 68, 0.8);
}

/* Text gradient animation on hero */
.gradient-tri {
  animation: fadeInUp 1s ease-out 0.3s both;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .experience-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-card);
  }

  .nav-toggle-input:checked ~ .nav-links {
    transform: translateY(0);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .project-breakdown {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
