/* ================================
   Modern Portfolio CSS
   Dark / Light Mode with Slider
================================ */

/* Colors & Themes */
:root {
  --heading: #1C2D41;
  --paragraph: #3C4858;
  --secondary: #C0CCDA;
  --accent: #248AAA;
  --accent-hover: #2098d1;
  --bg-light: #F9FAFC;
  --bg-dark: #1C2D41;
  --card-light: rgba(255,255,255,0.85);
  --card-dark: rgba(0,0,0,0.3);
  --text-light: #1C2D41;
  --text-dark: #E5E9F2;
}

/* Body & Background */
body {
  background: url('../images/bg-modern.jpg');
  background-size: cover;
  /* Prevents the image from tiling/repeating */
  background-repeat: no-repeat;
    
  /* Keeps the image fixed relative to the viewport, not the content */
  background-attachment: fixed; 
    
  /* Centers the image in the viewport */
  background-position: center center; 
  color: var(--text-light);
  font-family: "Muli", sans-serif;
  transition: background 0.5s ease, color 0.5s ease;
}

body.dark-mode {
    background: url('../images/bg-modern-dark.jpg');
    /* Ensures the image covers the entire viewport */
    background-size: cover; 
    
    /* Prevents the image from tiling/repeating */
    background-repeat: no-repeat;
    
    /* Keeps the image fixed relative to the viewport, not the content */
    background-attachment: fixed; 
    
    /* Centers the image in the viewport */
    background-position: center center; 
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px 40px;
}

.hero h1 {
  font-size: 3rem;
  margin: 10px 0;
  color: var(--heading);
  text-shadow: 1px 1px 6px rgba(0,0,0,0.4);
}

body.dark-mode .hero h1 {
  color: var(--text-dark);
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

.hero p {
  font-size: 1.2rem;
  margin: 20px 0;
}

/* Circular Hero Image */
.circular {
    /* Makes the image a perfect circle */
    border-radius: 50%;
    
    /* Sets the size (must be equal width/height for a perfect circle) */
    width: 150px; /* Adjust as needed */
    height: 150px; /* Adjust as needed */
    
    /* Ensures the image crops nicely to fill the circle */
    object-fit: cover;
    
    /* Guarantees horizontal centering */
    display: block;
    margin: 0 auto;

}


/* Cards */
.skills-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

.skill-card {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 280px;
  background: var(--card-light);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

body.dark-mode .skill-card {
  background: var(--card-dark);
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.skill-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.skill-card:hover img {
  transform: scale(1.2);
}

.skill-card h4 {
  margin: 10px 0 6px;
  font-size: 1.2rem;
}

.skill-card p {
  font-size: 0.95rem;
}

/* Dark / Light Mode Slider */
.switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: relative;
  cursor: pointer;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  z-index: 2;
}

input:checked + .slider {
  background-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(36px);
}

/* Icons inside slider */
.slider .icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  z-index: 1;
}

.slider .sun {
  left: 8px;
  color: #FFC312;
}

.slider .moon {
  right: 8px;
  color: #E5E9F2;
}

/* Rounded slider */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Buttons */
.nav-button, .btn-info, .btn-outline-info {
  padding: 10px 20px;
  margin: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-info {
  background-color: var(--accent);
  color: var(--bg-light);
}

.btn-info:hover {
  background-color: var(--accent-hover);
}

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

.btn-outline-info:hover {
  background-color: var(--accent);
  color: var(--bg-light);
}

/* Add this to a relevant section in styles.css */
body.dark-mode .btn-secondary {
    /* Example 1: If you want it to match the primary button */
    background-color: var(--primary-color-dark); 
    color: var(--text-light); /* Assuming the primary color is dark */

    /* OR Example 2: If you want an outlined look with dark mode colors */
    background: transparent;
    border: 1px solid var(--primary-color-dark);
    color: var(--text-dark); /* Using a light text color */
}
/* Styles for the main navigation bar */
.nav {
    display: flex;
    justify-content: space-between; /* Pushes the logo (left) and links (right) to the edges */
    align-items: center; /* Vertically centers content */
    padding: 15px 20px; /* Add some padding for visual spacing */
    /* Add any background or border styles here */
}

/* Styles for the list of links */
.nav-links {
    list-style: none; /* Removes bullet points */
    display: flex; /* Displays list items horizontally */
    gap: 25px; /* Adds space between each link (adjust as needed) */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
}

/* Responsive */
@media(max-width:768px){
  .skills-container {
    flex-direction: column;
    align-items: center;
  }
}
