/* Import Fonts */
@import url('../fonts/fonts.css');

/* CSS Variables - Brand Colors Only */
:root {
  --navy: #0b1b3b;
  --navy-600: #132a5e;
  --black: #0b0d10;
  --white: #ffffff;
  --light-bg: #f7f9fc;
  --border-light: #eef2f7;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
}

/* Links */
a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--navy-600);
}

a:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 2rem 0;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #eef2f7;
  padding: 1rem 0;
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 0;
  }
  
  .header.scrolled {
    padding: 0.75rem 0;
  }
}

/* Transparent header on home page with top spacing */
.header:not(.scrolled):not(.solid) {
  background: transparent;
  border-bottom: none;
  top: 2rem;
}

@media (max-width: 768px) {
  .header:not(.scrolled):not(.solid) {
    top: 0.5rem;
  }
}

/* Solid header when scrolled or on other pages */
.header.scrolled,
.header.solid {
  background: var(--white);
  border-bottom: 1px solid #eef2f7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  top: 0;
}

.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 2rem;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  width: 100%;
}

/* Logo styling for hero section */
.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo img {
  height: 120px !important;
  width: 120px !important;
  transition: all 0.3s ease;
}

.header.scrolled .logo img {
  height: 90px !important;
  width: 90px !important;
}

@media (max-width: 768px) {
  .logo img {
    height: 55px !important;
    width: 55px !important;
  }
  
  .header.scrolled .logo img {
    height: 50px !important;
    width: 50px !important;
  }
}

/* Remove conflicting logo sizing rules */

/* Modern Hamburger positioned absolutely on the right */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  z-index: 101;
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(11, 27, 59, 0.1);
}

.hamburger:hover {
  background: rgba(11, 27, 59, 0.15);
  transform: translateY(-50%) scale(1.05);
}

.hamburger:active {
  transform: translateY(-50%) scale(0.95);
}

/* Modern hamburger lines */
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
  margin: 3px 0;
}

.hamburger span:nth-child(1) {
  transform: translateY(0);
}

.hamburger span:nth-child(2) {
  opacity: 1;
  transform: scaleX(0.8);
}

.hamburger span:nth-child(3) {
  transform: translateY(0);
}

/* Active hamburger animation */
.hamburger.active {
  background: rgba(11, 27, 59, 0.2);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Optimized Off-canvas Navigation */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 27, 59, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 99;
  will-change: opacity;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(400px, 90vw);
  height: 100vh;
  background: var(--white);
  padding: 4rem 2rem 2rem;
  transition: right 0.3s ease;
  z-index: 100;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(11, 27, 59, 0.2);
  will-change: right;
}

.nav-panel.active {
  right: 0;
}

.nav-menu {
  list-style: none;
  margin-top: 2rem;
}

.nav-menu li {
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-panel.active .nav-menu li {
  opacity: 1;
  transform: translateX(0);
}

.nav-panel.active .nav-menu li:nth-child(1) { transition-delay: 0.05s; }
.nav-panel.active .nav-menu li:nth-child(2) { transition-delay: 0.1s; }
.nav-panel.active .nav-menu li:nth-child(3) { transition-delay: 0.15s; }
.nav-panel.active .nav-menu li:nth-child(4) { transition-delay: 0.2s; }
.nav-panel.active .nav-menu li:nth-child(5) { transition-delay: 0.25s; }
.nav-panel.active .nav-menu li:nth-child(6) { transition-delay: 0.3s; }
.nav-panel.active .nav-menu li:nth-child(7) { transition-delay: 0.35s; }

.nav-menu a {
  display: block;
  padding: 1.2rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--black);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-menu a:hover {
  color: var(--navy);
  background: rgba(11, 27, 59, 0.05);
  transform: translateX(4px);
}

.nav-menu a:active {
  transform: translateX(2px) scale(0.98);
}

/* Site-wide Particles Canvas */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Main Content */
.main {
  margin-top: 80px;
}

/* Remove CSS scroll offset - using JS instead */
.section {
  scroll-margin-top: 0;
}

#skills {
  scroll-margin-top: 0;
}

/* General section styles */
.section {
  padding: 8rem 0;
}

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

/* Hero Section */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  position: relative;
}

/* Scroll Down Arrow */
.scroll-down-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 10;
  background: none;
  border: none;
  padding: 0;
  animation: bounce 2s infinite;
}

.arrow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.arrow-down {
  width: 24px;
  height: 24px;
  border: 2px solid var(--navy);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.scroll-down-arrow:hover .arrow-down {
  border-color: var(--navy-600);
  transform: rotate(45deg) scale(1.1);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-down-arrow {
    animation: none;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  margin-bottom: 1rem;
}

.hero-text .subtitle {
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 2rem;
  min-height: 2rem;
}

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

.hero-image img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

.cta-button {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background: var(--navy-600);
  color: var(--white);
}

/* About Section */
.about {
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  margin-top: 2rem;
  align-items: start;
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.text-content p {
  margin-bottom: 1.5rem;
}

.quick-facts {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 12px;
  margin-top: 2rem;
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info h3,
.interests h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.contact-info p,
.interests p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-info a {
  color: var(--navy);
  font-weight: 500;
}

/* Interactive Gallery */
.gallery-container {
  position: sticky;
  top: 8rem;
}

.gallery-viewer {
  position: relative;
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.gallery-viewer img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  display: block;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.5rem;
}

.gallery-thumbnails .thumb {
  width: 100%;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.gallery-thumbnails .thumb:hover {
  opacity: 0.8;
  transform: scale(1.05);
}

.gallery-thumbnails .thumb.active {
  opacity: 1;
  border-color: var(--navy);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .gallery-container {
    position: static;
  }
  
  .facts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Modern Skills Section */
.skills {
  background: transparent;
  position: relative;
  overflow: hidden;
}

.skill-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
  position: relative;
  z-index: 2;
}

.skill-tab {
  background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
  border: none;
  border-radius: 20px;
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(11, 27, 59, 0.08);
}

/* Remove expensive shimmer animation */

.skill-tab:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(11, 27, 59, 0.15);
}

.skill-tab.active {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
  color: var(--white);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(11, 27, 59, 0.3);
}

.skill-tab[data-skill="technical"].active {
  background: linear-gradient(135deg, var(--navy-600) 0%, #4a6fa5 100%);
}

.skill-tab[data-skill="practical"].active {
  background: linear-gradient(135deg, #4a6fa5 0%, #6b8cc7 100%);
}

.tab-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tab-subtitle {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  font-weight: 500;
}

.skill-content {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(11, 27, 59, 0.1);
  margin-top: 2rem;
}

.skill-panel {
  display: none;
  animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-panel.active {
  display: block;
}

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

.skill-overview {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  padding: 3rem;
  background: linear-gradient(135deg, #f8fafc 0%, var(--white) 100%);
  border-bottom: 1px solid #e2e8f0;
}

.overview-text h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.overview-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.skill-highlight {
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
  color: var(--white);
  padding: 2rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

/* Remove expensive shimmer animation */

.highlight-number {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.highlight-text {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.9;
}

.skills-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 3rem;
}

.skill-badge {
  background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.skill-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--navy), var(--navy-600));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.skill-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(11, 27, 59, 0.1);
}

.skill-badge:hover::before {
  transform: scaleY(1);
}

.badge-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 12px;
  flex-shrink: 0;
}

.badge-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.badge-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

@media (max-width: 768px) {
  .skill-selector {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .skill-tab {
    padding: 1.5rem 1rem;
  }
  
  .skill-overview {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }
  
  .skills-showcase {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  
  .skill-badge {
    flex-direction: column;
    text-align: center;
  }
}

/* Education Section */
.education {
  padding: 8rem 0;
}

.education-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.education-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.education-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: 12px;
}

.education-item h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.education-item .degree {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.education-item .date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.education-item ul {
  list-style: none;
  padding-left: 1rem;
}

.education-item li {
  position: relative;
  margin-bottom: 0.5rem;
}

.education-item li::before {
  content: "•";
  color: var(--navy);
  position: absolute;
  left: -1rem;
}

/* Projects Section */
.projects {
  background: var(--light-bg);
}

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

.project-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
  height: 200px;
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin-bottom: 1rem;
  color: var(--navy);
}

.project-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(11, 27, 59, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
  color: var(--white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--navy-600) 0%, #4a6fa5 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 27, 59, 0.3);
}

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

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

/* Experience Section */
.timeline {
  position: relative;
  margin-top: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 1.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--navy);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--border-light);
}

.timeline-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.timeline-content .company {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-content .date {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.timeline-content ul {
  list-style: none;
  padding-left: 1rem;
}

.timeline-content li {
  position: relative;
  margin-bottom: 0.5rem;
}

.timeline-content li::before {
  content: "•";
  color: var(--navy);
  position: absolute;
  left: -1rem;
}

/* Contact Section */
.contact {
  background: var(--white);
  padding: 5rem 0;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #0077b5;
  color: white !important;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.linkedin-link:hover {
  background: #005885;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.linkedin-link i {
  font-size: 20px;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-details p {
  margin-bottom: 0.5rem;
}

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--black);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}

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

.honeypot {
  display: none;
}

/* Back to Top Button */
.back-to-top {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  width: 50px !important;
  height: 50px !important;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  box-shadow: 0 4px 20px rgba(11, 27, 59, 0.3) !important;
  transition: all 0.3s ease !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(20px) !important;
  z-index: 999 !important;
}

.back-to-top.visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(11, 27, 59, 0.4);
  background: linear-gradient(135deg, var(--navy-600) 0%, #4a6fa5 100%);
}

.back-to-top:active {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.125rem;
  }
}

/* Footer */
.footer {
  background: #f7f9fc;
  padding: 3rem 0;
  text-align: center;
  color: var(--navy);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--navy);
  font-weight: 500;
}

.footer-credit {
  color: #666;
}

/* Cookie Consent */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-fab {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
  z-index: 100;
}

.cookie-fab:hover {
  transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 6rem 0;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .education-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .experience-timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 3rem;
  }
  
  .timeline-item::before {
    left: -8px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Legal content styling */
.legal-content {
  max-width: 900px;
  margin: 3rem auto 0;
  line-height: 1.6;
  padding: 0;
}

.legal-section {
  margin-bottom: 2rem;
  padding: 0;
}

.legal-section h2 {
  color: var(--navy);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  font-size: 1.4rem;
  margin-left: 0;
}

.legal-section h3 {
  color: var(--navy-600);
  margin-bottom: 0.5rem;
  margin-top: 1rem;
  font-size: 1.1rem;
  margin-left: 0;
}

.legal-section ul {
  margin: 0.75rem 0;
  padding-left: 0;
  margin-left: 0;
}

.legal-section li {
  margin-bottom: 0.25rem;
  margin-left: 0;
  list-style: none;
}

.legal-section p {
  margin-left: 0;
  padding-left: 0;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid #e2e8f0;
  padding: 0.75rem;
  text-align: left;
}

.cookie-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--navy);
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

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