@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css'); /* Font Awesome */

:root {
  /* Light Mode Defaults */
  --bg:#ffffff;
  --fg:#0b1220;
  --muted:#596274;
  --accent:#2563eb;
  --card:rgba(13,18,26,0.03);
  --accent-rgb: 37, 99, 235;
  --bg-header-gradient-start: rgba(255,255,255,0.6);
  --border-color: rgba(0,0,0,0.08);
  --box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
body.dark {
  /* Dark Mode Overrides */
  --bg:#0b1220;
  --fg:#e6eef8;
  --muted:#98a3b3;
  --accent:#60a5fa;
  --card:rgba(255,255,255,0.03);
  --accent-rgb: 96, 165, 250;
  --bg-header-gradient-start: rgba(11,18,32,0.6);
  --border-color: rgba(255,255,255,0.08);
  --box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

*{box-sizing:border-box}
html,body{
  height:100%;
  margin:0;
  font-family:Inter,system-ui,Segoe UI,Roboto,-apple-system;
  color:var(--fg);
  background:var(--bg);
  scroll-behavior:smooth;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a{color:inherit;text-decoration:none}

header {
  position:fixed;left:0;right:0;top:0;
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding:14px 6vw;z-index:60;
  background:linear-gradient(to bottom,var(--bg-header-gradient-start),transparent);
  backdrop-filter:blur(6px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: transform, opacity;
}
.brand:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  cursor: pointer;
}
.brand img{
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--accent);
  transition: border-color 0.3s ease;
}
.brand h1{font-size:16px;margin:0;font-weight:700; color:var(--fg);}
.brand div div {
    font-size: 12px;
    color: var(--muted);
}

nav{display:flex;gap:18px;align-items:center}
nav a{
  color:var(--muted);
  font-weight:700;
  padding:8px 10px;
  border-radius:8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease-out;
  z-index: -1;
  border-radius: 1px;
}
nav a:hover::after,
nav a.active::after {
  width: 100%;
}
nav a:hover,
nav a.active{
  color:var(--fg);
}


.btn{
  padding:8px 12px;
  border-radius:10px;
  border:none;
  background:transparent;
  cursor:pointer;
  font-weight:700;
  transition: background 0.2s ease, transform 0.2s ease, color 0.3s ease;
  color: var(--fg);
  position: relative;
  overflow: hidden;
  transform: scale(1);
  will-change: transform, background;
}
.btn:hover {
    transform: scale(1.1);
    background: var(--card);
}
.btn:active {
    transform: scale(0.95);
}

/* fade-in transition for pages */
.page{
  min-height:100vh;
  padding-top:84px;
  opacity:0;
  transform:translateY(8px);
  transition:opacity 350ms ease,transform 350ms ease;
  background-color: var(--bg);
}
.page.visible{opacity:1;transform:translateY(0)}


/* Hero section */
.hero{
  min-height:calc(100vh - 84px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px 6vw 80px 6vw;
  flex-direction: column;
  text-align: center;
  background-color: var(--bg);
  transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}
.hero-inner{
  display:flex;
  flex-direction:column;
  gap:20px;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:1100px;
}

.profile-main{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:20px;
}
#profile-img-big{
  width:280px;
  height:280px;
  border-radius:50%;
  object-fit:cover;
  border:4px solid var(--accent);
  box-shadow:0 0 25px rgba(0,0,0,0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
#profile-img-big:hover {
    border-color: var(--accent);
    box-shadow: 0 0 35px rgba(var(--accent-rgb), 0.5);
}
#card-short-bio-big {
  font-size:20px;
  color:var(--muted);
  max-width: 600px;
  line-height: 1.5;
  margin-top: 20px;
  transition: color 0.3s ease;
}
/* ADDED STYLES FOR heroCaption */
#cfg-hero-caption {
    font-size: 1.3em; /* Slightly smaller than lead bio */
    color: var(--accent); /* Make it stand out with accent color */
    margin-top: -10px; /* Pull it slightly closer to the bio */
    font-weight: 600;
    transition: color 0.3s ease;
}


.links{display:flex;gap:18px;flex-wrap:wrap;justify-content:center; margin-top: 30px;}
.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-color);
  color: var(--fg);
  font-size: 24px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  will-change: transform, background, border-color, color;
}
.icon-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-3px);
}


footer{
  padding:40px 6vw;
  text-align:center;
  color:var(--muted);
  background-color: var(--bg);
  transition: color 0.3s ease, background-color 0.3s ease;
}
@media(max-width:900px){
  .hero-inner{flex-direction:column;align-items:center;text-align:center}
  #profile-img-big{width:200px;height:200px}
  nav {flex-wrap: wrap; justify-content: center;}
  /* ADDED MEDIA QUERY FOR heroCaption */
  #cfg-hero-caption {
      font-size: 1.1em;
  }
}

/* Remove typing animation styles */
#typing-container, .cursor {
  display: none;
}

/* General section styling */
.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: left;
    font-weight: 700;
    color: var(--fg);
    transition: color 0.3s ease;
}
.page section {
    padding: 60px 6vw;
    max-width: 900px; /* Reduced max-width slightly for content column */
    margin: 0 auto;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    background-color: var(--bg);
}

/* Ensure these styles are correctly applied when display is toggled by JS */
.page section[style*="display: none"] {
    opacity: 0;
    transform: translateY(20px);
}
.page section[style*="display: flex"],
.page section[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
}


/* --- NEW/MODIFIED STYLES FOR ABOUT CONTENT --- */
/* Changed about-section-wrapper to be a single column */
.about-section-wrapper {
    display: block; /* Removed grid for single column */
    padding-top: 30px;
}

.main-content-area {
    /* No padding-right needed as there's no sidebar */
}

.about-text-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: var(--fg);
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align left by default */
}
@media (max-width: 768px) {
    .action-buttons {
        justify-content: center; /* Center on small screens */
    }
    .main-content-area .section-title {
        text-align: center;
    }
}


/* Removed all .sidebar-card, .sidebar-profile-img, .sidebar-name, .sidebar-title, .sidebar-links styles */


/* Skills section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.skills-group {
  background: var(--card);
  padding: 25px;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}
.skills-group h4 {
  color: var(--fg);
  margin-top: 0;
  margin-bottom: 15px;
  transition: color 0.3s ease;
  font-weight: 600;
  font-size: 1.15em;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip{
  padding:8px 14px;
  border-radius:999px;
  font-weight:600;
  background:transparent;
  border:1px solid var(--border-color);
  color:var(--fg);
  transition:background 0.2s, border-color 0.2s, color 0.2s;
}
.chip:hover{
    background:var(--accent);
    color:white;
    border-color:var(--accent)
}

.cta, .ghost {
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.cta {
    background: var(--accent);
    color: white;
    /* margin-right: 10px; */ /* Removed as only one button now */
}
.cta:hover {
    opacity: 0.9;
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.3);
}
/* Removed .ghost styles as the button is gone */


/* Contact Section Styles */
.contact-intro-text {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--fg);
    margin-bottom: 25px;
    max-width: 600px;
    transition: color 0.3s ease;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px 30px;
    margin-top: 25px;
}
.contact-info-grid p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1em;
    color: var(--fg);
    transition: color 0.3s ease;
}
.contact-info-grid strong {
    color: var(--fg);
}
.contact-info-grid a {
    color: var(--accent);
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}
.contact-info-grid a:hover {
  text-decoration: underline;
}
.contact-icon {
    color: var(--accent);
    font-size: 1.3em;
    width: 28px;
    text-align: center;
}