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

/* CSS Variables for Themes */
:root {
  /* Light Mode Variables */
  --text-bg-color: #ffffff;
  --text-bg-color-rgb: 255, 255, 255;
  --subheader-color: #000000;
  --subheader-line-color: #000000;
}

body.dark-mode {
  /* Dark Mode Variables */
  --text-bg-color: #333333;
  --text-bg-color-rgb: 51, 51, 51;
  --subheader-color: #ffffff;
  --subheader-line-color: #ffffff;
}

/* Base Body */
body {
  font-family: 'Poppins', sans-serif;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
  transition: background 0.6s, color 0.6s;
  cursor: none;
}

/* Floating Header */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  padding: 1rem 2rem;
  transition: background 0.6s;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.6s;
}

.nav-links a:hover {
  color: #777;
}

/* Theme Toggles */
.mobile-theme-toggle {
  display: none;
}

.desktop-theme-toggle {
  display: block;
}

.theme-toggle {
  background: none;
  border: 1px solid #ccc;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.6s, color 0.6s, border-color 0.6s;
}

.theme-toggle:hover {
  background: rgba(0,0,0,0.05);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#fefefe, #fafafa);
  padding: 5rem;
  padding-top: 7rem;
  transition: background 0.6s;
}

.hero-content {
  max-width: 900px;
  margin: 2.5rem;
  text-align: left;
}

.hero-title {
  font-family: 'Merriweather', serif;
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #444;
  transition: color 0.6s;
}

.hero-subtitle {
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  color: #555;
  transition: color 0.6s;
}

.hero-profile {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
}

.profile-img {
  border-radius: 50%;
  margin-right: 1.2rem;
}

.profile-role {
  font-weight: 400;
  color: #777;
  transition: color 0.6s;
}

/* "Where you can start" Card */
.hero-links {
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: background 0.6s;
}

.hero-links-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
  transition: color 0.6s;
}

.hero-links ul {
  list-style: none;
}

.hero-links li {
  margin: 0.6rem 0;
}

.hero-links li i.material-icons {
  vertical-align: middle;
  margin-right: 0.6rem;
  color: #666;
  transition: color 0.6s;
}

.hero-links a {
  text-decoration: none;
  color: #333;
  transition: color 0.6s;
}

.hero-links a:hover {
  text-decoration: underline;
}

/* Featured Work Section */
.featured-work-section {
  padding: 5rem 1.5rem;
  background: #f7f7f7;
  transition: background 0.6s;
}

.section-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* Subheader Container */
.subheader-container {
  position: relative;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
}

/* Subheader */
.subheader {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--subheader-color);
  display: inline-block;
  margin-right: 1.2rem;
  transition: color 0.6s;
}

.subheader::after {
  content: "";
  flex-grow: 1;
  height: 2px;
  background: var(--subheader-line-color);
  transition: background 0.6s;
}

/* Cards */
.card-full {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-full:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 0 12px rgba(255,255,255,0.5);
}

.card-full-content {
  flex: 1 1 400px;
  padding: 2.5rem;
}

.card-full-content h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
  color: #333;
  transition: color 0.6s;
}

.card-full-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.8rem;
  transition: color 0.6s;
}

.card-link {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.6s;
}

.card-link:hover {
  text-decoration: underline;
}

/* Gradient Overlay on Card Images */
.card-full-image {
  flex: 1 1 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eee;
  position: relative;
  transition: background 0.6s;
}

.card-full-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background: linear-gradient(to right, rgba(var(--text-bg-color-rgb), 1), rgba(var(--text-bg-color-rgb), 0));
  pointer-events: none;
}

.card-full-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0 16px 16px 0;
}

/* About, Blog, Contact Sections */
.about-section,
.blog-section,
.contact-section {
  padding: 5rem 1.5rem;
  background: #fafafa;
  transition: background 0.6s;
}

/* Masonry container */
.about-mosaic {
  margin-top: 2rem;
}

/* Each mosaic box - bigger, bolder look */
.mosaic-box {
  background: #fff;
  /* Increase the padding for a chunkier style */
  padding: 2rem;
  /* More rounding for a modern look */
  border-radius: 1rem;
  /* Slightly bigger shadow for boldness */
  box-shadow: 0 4px 14px rgba(0,0,0,0.07);
  margin-bottom: 2rem; 
  transition: transform 0.3s, box-shadow 0.3s;
}

.mosaic-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1), 0 0 8px rgba(255,255,255,0.5);
}

/* Larger, bolder headings */
.mosaic-box h3 {
  font-family: 'Merriweather', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.mosaic-box p,
.mosaic-box li {
  font-size: 1.2rem;
  color: #555;
  line-height: 1.7;
}

/* Resume button style - bigger, bolder */
.resume-btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.8rem 1.5rem;
  background-color: #0066cc;
  color: #fff;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}
.resume-btn:hover {
  background-color: #004f9c;
}

/* Blog Section */
.blog-section .card-full {
  background: #fff;
}

/* Contact Section */
.contact-info {
  list-style: none;
  margin-top: 1.5rem;
}

.contact-info li {
  margin-bottom: 1rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

.contact-info a {
  color: #0066cc;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.6s;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: #fff;
  text-align: center;
  padding: 2rem 1.5rem;
  box-shadow: 0 -1px 4px rgba(0,0,0,0.1);
  transition: background 0.6s;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  color: #666;
  font-size: 1.0rem;
  transition: color 0.6s;
}

/* Media Queries */
@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  .card-full {
    flex-direction: column;
    border-radius: 16px;
  }

  /* Mobile Navigation */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    transform: translateY(-100%);
    gap: 2.5rem;
    z-index: 998;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a {
    color: #fff;
    font-size: 1.6rem;
    transition: color 0.6s;
  }

  .desktop-theme-toggle {
    display: none;
  }

  .mobile-theme-toggle {
    display: block;
    margin-top: 2.5rem;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1001;
  }

  .hamburger .bar {
    height: 4px;
    width: 30px;
    background-color: #fff;
    margin: 6px 0;
    transition: all 0.3s;
  }

  /* Hide Custom Cursor on Mobile */
  .custom-cursor {
    display: none;
  }
}

/* Dark Mode */
body.dark-mode {
  background: #111;
  color: #eee;
  transition: background 0.6s, color 0.6s;
}

body.dark-mode .header {
  background: rgba(0, 0, 0, 0.7);
  transition: background 0.6s;
}

body.dark-mode .nav-links a {
  color: #ccc;
  transition: color 0.6s;
}

body.dark-mode .nav-links a:hover {
  color: #fff;
}

body.dark-mode .theme-toggle {
  border-color: #777;
  color: #ccc;
  background: transparent;
  transition: background 0.6s, color 0.6s, border-color 0.6s;
}

body.dark-mode .hero-section {
  background: linear-gradient(#222, #111);
  transition: background 0.6s;
}

body.dark-mode .hero-title {
  color: #f0f0f0;
  transition: color 0.6s;
}

body.dark-mode .hero-subtitle {
  color: #ccc;
  transition: color 0.6s;
}

body.dark-mode .hero-links {
  background: #333;
  transition: background 0.6s;
}

body.dark-mode .hero-links li i.material-icons {
  color: #ccc;
  transition: color 0.6s;
}

body.dark-mode .hero-links a {
  color: #eee;
  transition: color 0.6s;
}

body.dark-mode .featured-work-section {
  background: #1a1a1a;
  transition: background 0.6s;
}

body.dark-mode .card-full {
  background: #222;
  transition: background 0.6s;
}

body.dark-mode .card-full-content h3 {
  color: #eee;
  transition: color 0.6s;
}

body.dark-mode .card-full-content p {
  color: #bbb;
  transition: color 0.6s;
}

body.dark-mode .card-full-image {
  background: #333;
  transition: background 0.6s;
}

body.dark-mode .card-link {
  color: #4ea1ff;
  transition: color 0.6s;
}

body.dark-mode .about-section,
body.dark-mode .blog-section,
body.dark-mode .contact-section {
  background: #1a1a1a;
  transition: background 0.6s;
}

/* Dark Mode for Mosaic boxes */
body.dark-mode .mosaic-box {
  background: #222;
}

body.dark-mode .mosaic-box h3 {
  color: #eee;
}

body.dark-mode .mosaic-box p,
body.dark-mode .mosaic-box li {
  color: #bbb;
}

body.dark-mode .resume-btn {
  background-color: #4ea1ff;
  color: #000;
}

body.dark-mode .resume-btn:hover {
  background-color: #2a80d8;
}

body.dark-mode .footer {
  background: #000;
  transition: background 0.6s;
}

body.dark-mode .footer-container {
  color: #666;
  transition: color 0.6s;
}

/* Subheader Colors Based on Theme */
body.dark-mode .subheader {
  color: var(--subheader-color);
  transition: color 0.6s;
}

body:not(.dark-mode) .subheader {
  color: var(--subheader-color);
  transition: color 0.6s;
}

body.dark-mode .subheader::after {
  background: var(--subheader-line-color);
  transition: background 0.6s;
}

body:not(.dark-mode) .subheader::after {
  background: var(--subheader-line-color);
  transition: background 0.6s;
}

/* Reactive Cursor */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, background-color 0.6s ease, border-color 0.6s ease;
  z-index: 10000;
}

body.dark-mode .custom-cursor {
  border-color: #fff;
  transition: border-color 0.6s;
}

.custom-cursor.active {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, background-color 0.6s ease;
}

/* Refined Glow Animation for "Where You Can Start" Card */
@keyframes white-blue-white-glow {
  0% {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 0 8px rgba(255, 255, 255, 0.445);
  }
  50% {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 0 8px rgba(173, 216, 230, 0.863);
  }
  100% {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 0 8px rgba(255, 255, 255, 0.445);
  }
}

.hero-links-glow {
  animation: white-blue-white-glow 5s ease-in-out infinite;
}
