/* ============================================
   NOBLE ANTWI - CUSTOM PROFESSIONAL PORTFOLIO
   Cloud Security Professional Theme
   ============================================ */

:root {
  /* Primary Colors - Professional Blue */
  --primary: #0f172a;
  --primary-light: #1e293b;
  --primary-lighter: #334155;
  
  /* Accent Colors - Cyan/Security Blue */
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --accent-light: #22d3ee;
  
  /* Secondary Colors - Deep Blue */
  --secondary: #1e40af;
  --secondary-light: #3b82f6;
  
  /* Backgrounds */
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-card: #1e293b;
  --bg-hover: #334155;
  
  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* Accents */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Shadows & Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(6, 182, 212, 0.1);
  --shadow-xl: 0 20px 25px rgba(6, 182, 212, 0.15);
  --glow: 0 0 20px rgba(6, 182, 212, 0.3);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e40af 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --gradient-card: linear-gradient(145deg, #1e293b 0%, #334155 100%);
  --gradient-text: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
}

/* ============================================
   BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 400;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* ============================================
   NAVIGATION & HEADER
   ============================================ */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
  padding: 1rem 0;
  box-shadow: var(--shadow-lg);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-decoration: none;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--accent-light);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  background: var(--gradient-primary);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30, 64, 175, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

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

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--accent);
  border-radius: 50px;
  color: var(--accent-light);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.badge:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 1.05rem;
}

.btn:hover {
  background: var(--accent-light);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.btn-primary {
  /* Uses .btn base styles */
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(6, 182, 212, 0.1);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* ============================================
   PROFILE SECTION
   ============================================ */

.profile-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(6, 182, 212, 0.02) 100%);
  border-radius: 16px;
  border: 1px solid rgba(6, 182, 212, 0.15);
  padding: 3rem 2rem;
}

.profile-img {
  width: 100%;
  max-width: 280px;
  border-radius: 16px;
  border: 3px solid var(--accent);
  box-shadow: var(--shadow-xl);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  object-fit: cover;
  aspect-ratio: 1;
}

.profile-img:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow);
}

.profile-section h1 {
  font-size: 2.8rem;
  margin: 0 0 1rem 0;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.profile-section h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0 0 2rem 0;
  line-height: 1.8;
  max-width: 800px;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.social-link {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */

.card {
  background: var(--gradient-card);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 1200px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.card h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h2 i {
  color: var(--accent);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-category {
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.2);
  padding: 1.5rem;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.1);
}

.skill-category h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.skill-item {
  margin-bottom: 1.2rem;
}

.skill-name {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.skill-level {
  display: flex;
  gap: 0.3rem;
}

.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.2);
  transition: all 0.3s ease;
}

.skill-dot.filled {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.5);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.project-case-study {
  background: var(--gradient-card);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.project-case-study:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(6, 182, 212, 0.2);
  padding-bottom: 1.5rem;
}

.project-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-title i {
  color: var(--accent);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  padding: 0.5rem 1rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.project-section h5 {
  color: var(--accent-light);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-section p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.tech-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--accent);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

.challenge-solution {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.challenge,
.solution {
  padding: 1.5rem;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.05);
}

.challenge {
  border-left: 4px solid var(--danger);
}

.solution {
  border-left: 4px solid var(--success);
}

.challenge h5,
.solution h5 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.challenge p,
.solution p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CERTIFICATIONS SECTION
   ============================================ */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.cert-card {
  background: var(--gradient-card);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.cert-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-xl);
  transform: translateY(-5px);
}

.cert-card i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.cert-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.cert-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.cert-count {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

footer p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(6, 182, 212, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .profile-section {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }
  
  .profile-section h1 {
    font-size: 2.2rem;
  }
  
  .profile-section h3 {
    font-size: 1rem;
  }
  
  .profile-img {
    max-width: 220px;
    margin-bottom: 1.5rem;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .challenge-solution {
    grid-template-columns: 1fr;
  }
  
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
    letter-spacing: 0;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  nav ul {
    display: none;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.card,
.skill-category,
.project-case-study,
.cert-card {
  animation: slideInUp 0.6s ease-out backwards;
}

/* Stagger animation for multiple items */
.card:nth-child(1) {
  animation-delay: 0.1s;
}

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

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

.text-light {
  color: var(--text-secondary);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
