/* === BASE & VARIABLES === */
:root {
    --primary-color-light: #4F46E5; /* Blue for light mode */
    --accent-color-light: #EC4899;   /* Pinkish for accents */
    --primary-color-dark: #64ffda;   /* Teal for dark mode */
    --accent-color-dark: #FACC15;    /* Yellow for accents */

    --text-light: #111827; /* Dark gray for light mode text */
    --text-dark: #E5E7EB;  /* Light gray for dark mode text */
    --bg-light: #FFFFFF;
    --bg-dark: #0A0A0A;
    --card-bg-light: #FFFFFF;
    --card-bg-dark: #1F2937; /* From React: bg-gray-800 */
    --section-bg-light: #F9FAFB; /* From React: bg-gray-100 */
    --section-bg-dark: #111827;  /* From React: bg-gray-900 / 800 for sections */
    
    --border-light: #E5E7EB;
    --border-dark: #374151;

    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    --shadow-light: 0 4px 15px rgba(0,0,0,0.07);
    --shadow-dark: 0 4px 20px rgba(0,0,0,0.25);

    /* Current theme variables - these will be updated by JS */
    --current-primary: var(--primary-color-light);
    --current-accent: var(--accent-color-light);
    --current-text: var(--text-light);
    --current-bg: var(--bg-light);
    --current-card-bg: var(--card-bg-light);
    --current-section-bg: var(--section-bg-light);
    --current-border: var(--border-light);
    --current-shadow: var(--shadow-light);
}

[data-theme="dark"] {
    --current-primary: var(--primary-color-dark);
    --current-accent: var(--accent-color-dark);
    --current-text: var(--text-dark);
    --current-bg: var(--bg-dark);
    --current-card-bg: var(--card-bg-dark);
    --current-section-bg: var(--section-bg-dark);
    --current-border: var(--border-dark);
    --current-shadow: var(--shadow-dark);
}

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

body {
    font-family: var(--font-secondary);
    background-color: var(--current-bg);
    color: var(--current-text);
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700; /* Bolder titles */
    margin-bottom: 0.8rem;
    color: var(--current-text); /* Titles also follow theme text color */
}
h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; margin-bottom: 2rem; text-align: center;}
.content-section h2 .section-title-accent {
    color: var(--current-primary);
}
.content-section h2::after { /* Subtle underline for section titles */
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background-color: var(--current-primary);
    margin: 10px auto 0;
    border-radius: 2px;
    opacity: 0.8;
}


a {
    text-decoration: none;
    color: var(--current-primary);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--current-accent);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

.content-section {
    padding: 80px 20px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--current-text);
    opacity: 0.8;
    max-width: 700px;
    margin: -1rem auto 2.5rem auto;
}
/* Alternating section backgrounds */
.content-section:nth-child(odd) { /* For main direct children */
    background-color: var(--current-section-bg);
}
.hero-section + .content-section { /* First section after hero */
    background-color: var(--current-section-bg);
}
.hero-section + .content-section + .content-section {
    background-color: var(--current-bg); /* Second after hero */
}
.hero-section + .content-section + .content-section + .content-section {
    background-color: var(--current-section-bg); /* Third after hero */
}
/* Continue pattern as needed or use JS to alternate */


/* === HEADER & NAVIGATION === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 0; /* Slightly reduced padding */
    background-color: rgba(var(--current-bg-rgb, 255, 255, 255), 0.8); /* Use RGB for opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--current-shadow);
    z-index: 1000;
    transition: background-color 0.4s ease;
}
body[data-theme="dark"] header {
    background-color: rgba(var(--current-bg-rgb, 10, 10, 10), 0.8);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--current-text);
}
.logo span { color: var(--current-primary); }

.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li {
    margin-left: 1.8rem; /* Slightly reduced margin */
}
.nav-links a {
    font-family: var(--font-primary);
    font-weight: 500; /* Slightly less bold */
    color: var(--current-text);
    transition: color 0.3s ease;
    padding-bottom: 8px; /* Space for underline */
    position: relative;
}
.nav-links a::after { /* Underline effect */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--current-primary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--current-primary);
}


.btn-icon { /* For theme toggle */
    background: none;
    border: none;
    color: var(--current-text);
    font-size: 1.4rem; /* Slightly smaller */
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.btn-icon:hover {
    color: var(--current-primary);
    background-color: rgba(var(--current-primary-rgb, 79, 70, 229), 0.1);
}

.burger { display: none; cursor: pointer; }
.burger div { width: 25px; height: 3px; background-color: var(--current-text); margin: 5px; transition: all 0.3s ease; }


/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    position: relative;
    overflow: hidden; /* For background */
    background-color: var(--current-section-bg); /* Fallback, overlay will be main visual */
}
.hero-background-overlay { /* Inspired by React example */
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.15; /* More subtle */
    /* background-image: url('https://readdy.ai/api/search-image?query=Abstract%20digital%20particles%20flowing%20in%20space%20creating%20a%20modern%20tech%20background%20with%20subtle%20blue%20and%20purple%20gradients.%20Dynamic%20technology%20concept%20with%20flowing%20data%20visualization%20elements%20creating%20an%20immersive%20atmosphere%20with%20depth%20and%20dimension&width=1920&height=1080&seq=12&orientation=landscape'); */
    background-image: url('https://images.unsplash.com/photo-1531297484001-80022131f5a1?auto=format&fit=crop&w=1920&q=80'); /* Example local/better image */
    background-size: cover;
    background-position: center;
    filter: blur(2px); /* Optional subtle blur */
}
.hero-content {
    position: relative; /* Above overlay */
    z-index: 1;
    display: flex;
    flex-direction: row-reverse; /* Image on left, text on right */
    align-items: center;
    justify-content: space-between;
    max-width: 1100px; /* Slightly smaller max-width */
    width: 100%;
    gap: 3rem;
}
.hero-text {
    flex: 1.2; /* Give text slightly more space */
    animation: slideInFromRight 1s ease-out forwards;
    opacity:0;
}
.hero-text h1 {
    font-size: 3.2rem; /* Slightly adjusted */
    line-height: 1.2;
    margin-bottom: 0.5rem; /* Reduced margin */
    font-weight: 700;
}
.hero-text .highlight-name { color: var(--current-primary); 
 display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  width: 0; /* Starts with no width, text is hidden */

  /* The "cursor" - I've used your site's accent color for consistency */
  border-right: 4px solid var(--accent-color, orange);

  /* Animation execution */
  /* Note: "Jaya Sharma" is 11 characters including the space, so we use steps(11). */
  animation: typing 5s steps(20, end) infinite, blink 0.8s step-end infinite;

  /* Styling to ensure it aligns well with the surrounding text */
  font-family: 'Poppins', 'Triester Vector', sans-serif !important; /* Uses your site's font first */
  vertical-align: bottom; /* Helps align with "Hello, I'm" text */
  padding-bottom: 5px; /* Provides a little space below the name */
  line-height: 1.1;
  text-transform: capitalize;
  letter-spacing: normal;
  margin: 0;
}
@keyframes typing {
  0% {
    width: 0;
  }
  50% {
    width: 52%; /* Text is fully revealed */
  }
  100% {
    width: 0; /* Text disappears to restart the loop */
  }
}

/* The blinking cursor animation */
@keyframes blink {
  50% {
    border-color: transparent;
  }
}
.hero-text h2 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--current-text);
    opacity: 0.9;
    text-align: left; /* Override default */
}
.hero-text h2::after { display: none; }
.hero-text p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.85; }

.hero-image-container {
    flex-basis: 40%;
    max-width: 320px; /* Slightly smaller for balance */
    position: relative; /* For social stats overlay */
    animation: fadeInScale 1.2s ease-out forwards;
    opacity:0;
}
.hero-image {
    width: 100%;
    height: 320px; /* Make it square before rounding */
    object-fit: cover;
    object-position: top; /* Ensure top of head is visible */
    border-radius: 50%;
    border: 6px solid var(--current-primary); /* Thicker border */
    box-shadow: 0 10px 35px rgba(var(--current-primary-rgb, 79, 70, 229), 0.25);
    transition: transform 0.4s ease;
}
.hero-image-container:hover .hero-image {
    transform: scale(1.05);
}
.hero-social-stats { /* Inspired by React code */
    position: absolute;
    bottom: -20px; /* Overlap image slightly */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--current-card-bg);
    border-radius: 8px;
    box-shadow: var(--current-shadow);
    padding: 0.8rem 1.2rem;
    display: flex;
    gap: 1.5rem;
    border: 1px solid var(--current-border);
    white-space: nowrap;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--current-text);
}
.stat-item i {
    font-size: 1.2rem;
}
.fa-youtube { color: #FF0000; }
.fa-instagram { color: #E4405F; }
.stat-item span { font-weight: 600; }

@keyframes slideInFromRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}


/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem; /* Slightly smaller */
    border-radius: 30px; /* More rounded "button" class from React */
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-right: 1rem;
    border: 2px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn:last-child { margin-right: 0; }

.btn-primary {
    background-color: var(--current-primary);
    color: var(--bg-light); /* Text on primary button should be light */
}
body[data-theme="dark"] .btn-primary {
    color: var(--bg-dark); /* Text on dark primary button should be dark */
}
.btn-primary:hover {
    background-color: var(--current-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--current-primary-rgb, 79, 70, 229), 0.3);
}

.btn-secondary {
    background-color: var(--current-card-bg); /* Lighter bg for secondary */
    color: var(--current-primary);
    border-color: var(--current-primary);
}
.btn-secondary:hover {
    background-color: var(--current-primary);
    color: var(--bg-light); /* Match primary text on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(var(--current-primary-rgb, 79, 70, 229), 0.2);
}
body[data-theme="dark"] .btn-secondary:hover {
    color: var(--bg-dark);
}

.btn-details { /* For project cards */
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background-color: var(--current-section-bg);
    color: var(--current-primary);
    border: 1px solid var(--current-primary);
}
.btn-details:hover {
    background-color: var(--current-primary);
    color: var(--bg-light); /* Light text on hover */
}
body[data-theme="dark"] .btn-details:hover {
    color: var(--bg-dark);
}
/* === EXPERIENCE SECTION === */
.experience-card {
    background-color: var(--current-card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--current-shadow);
    max-width: 900px;
    margin: 0 auto;
    border-left: 5px solid var(--current-primary);
}
.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.experience-role {
    font-size: 1.5rem;
    color: var(--current-text);
    margin: 0;
}
.experience-duration {
    font-family: var(--font-secondary);
    font-weight: 500;
    color: #006400;
    background-color:  #D0F0C0;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
}
.experience-company {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--current-text);
    opacity: 0.8;
}
.experience-duties {
    list-style-type: none;
    padding: 0;
}
.experience-duties li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}
.experience-duties i {
    color: var(--current-primary);
    margin-right: 1rem;
    margin-top: 5px;
    font-size: 1.1rem;
}

/* === EDUCATION SECTION === */
.education-section { background-color: var(--current-section-bg); }
.education-chart-container { margin-bottom: 3rem; }
/* ECharts styling will be largely handled by its options, but ensure container is good */
#education-chart {
    border-radius: 8px;
    padding: 1rem;
    background-color: var(--current-card-bg); /* Chart on a card */
    box-shadow: var(--current-shadow);
}
.education-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.education-item-card {
    background-color: var(--current-card-bg);
    padding: 1.8rem;
    border-radius: 10px;
    box-shadow: var(--current-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to start */
}
.education-item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(var(--current-primary-rgb, 79, 70, 229), 0.15);
}
.education-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(var(--current-primary-rgb, 79, 70, 229), 0.1);
    color: var(--current-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.education-item-card h3 { font-size: 1.3rem; color: var(--current-primary); margin-bottom: 0.3rem; }
.education-item-card .institution { font-weight: 600; color: var(--current-text); opacity: 0.9; margin-bottom: 0.2rem; }
.education-item-card .year { font-size: 0.9rem; color: var(--current-accent); margin-bottom: 0.5rem; }
.education-item-card .description { font-size: 0.95rem; color: var(--current-text); opacity: 0.8; }


/* === CERTIFICATES SECTION === */
.certificates-section { background-color: var(--current-bg); }
.certificates-carousel-container {
    max-width: 100%; /* Full width for overflow */
    overflow: hidden; /* Hide scrollbars, use animation */
    position: relative;
    padding: 1rem 0;
}
.certificates-carousel {
    display: flex;
    width: calc(280px * 12 + 1.5rem * 11); /* (Card width * num_cards_doubled) + (gap * (num_cards_doubled - 1)) */
    animation: scrollCertificates 40s linear infinite; /* Adjust duration as needed */
}
@keyframes scrollCertificates {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * 6 - 1.5rem * 5)); } /* Scroll one set of original cards */
}
.certificates-carousel:hover {
    animation-play-state: paused;
}
.certificate-card {
    flex: 0 0 260px; /* Slightly smaller for better fit */
    background-color: var(--current-card-bg);
    border-radius: 10px;
    box-shadow: var(--current-shadow);
    padding: 1.5rem;
    text-align: center;
    margin-right: 1.5rem;
    transition: transform 0.3s ease;
    border: 1px solid var(--current-border);
}
.certificate-card:hover {
    transform: scale(1.05) translateY(-5px);
}
.certificate-card img {
    width: 100%;
    height: 130px; /* Adjust as needed */
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 4px;
    background-color: var(--current-section-bg); /* Light bg for image placeholder */
    padding: 5px;
}
.certificate-card h4 { font-size: 1.1rem; color: var(--current-primary); margin-bottom: 0.3rem;}
.certificate-card p { font-size: 0.85rem; color: var(--current-text); opacity: 0.8;}


/* === PROJECTS SECTION === */
.projects-section { background-color: var(--current-section-bg); }
.project-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 20px;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--current-card-bg);
    color: var(--current-text);
    box-shadow: var(--current-shadow);
}
.filter-btn.active, .filter-btn:hover {
    background-color: var(--current-primary);
    color: var(--bg-light); /* Light text on active/hover */
    box-shadow: 0 4px 10px rgba(var(--current-primary-rgb, 79, 70, 229), 0.2);
}
body[data-theme="dark"] .filter-btn.active, 
body[data-theme="dark"] .filter-btn:hover {
    color: var(--bg-dark); /* Dark text on active/hover for dark mode */
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.project-card {
    background-color: var(--current-card-bg);
    border-radius: 12px; /* More rounded */
    overflow: hidden;
    box-shadow: var(--current-shadow);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(var(--current-primary-rgb, 79, 70, 229), 0.15), 0 8px 10px rgba(var(--current-primary-rgb, 79, 70, 229), 0.1);
}
.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover img {
    transform: scale(1.05);
}
.project-info {
    padding: 1.5rem;
    flex-grow: 1; /* Ensure info takes remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}
.project-info h3 {
    font-size: 1.3rem;
    color: var(--current-text); /* Project titles follow theme */
    margin-bottom: 0;
}
.category-tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.category-tag.shopify { background-color: rgba(121,199,83,0.2); color: #589934; } /* Greenish */
.category-tag.web { background-color: rgba(79,70,229,0.2); color: var(--primary-color-light); } /* Blueish */
.category-tag.demo { background-color: rgba(236,72,153,0.2); color: var(--accent-color-light); } /* Pinkish */
body[data-theme="dark"] .category-tag.shopify { background-color: rgba(var(--primary-color-dark-rgb, 100, 255, 218), 0.2); color: var(--primary-color-dark); }
body[data-theme="dark"] .category-tag.web { background-color: rgba(var(--primary-color-dark-rgb, 100, 255, 218), 0.3); color: var(--primary-color-dark); }
body[data-theme="dark"] .category-tag.demo { background-color: rgba(var(--accent-color-dark-rgb, 250, 204, 21), 0.2); color: var(--accent-color-dark); }

.project-info p {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    color: var(--current-text);
    opacity: 0.8;
    flex-grow: 1; /* Allow p to take space before button */
}
.project-info .btn-details { margin-top: auto; } /* Push button to bottom */

/* === PROJECT MODAL === */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.3s ease-out;
}
@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    background-color: var(--current-card-bg);
    margin: auto;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: slideInModal 0.4s ease-out;
    max-height: 90vh; /* Max height */
    overflow-y: auto; /* Scroll if content too long */
}
@keyframes slideInModal {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close-modal-btn {
    color: var(--current-text);
    opacity: 0.7;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}
.close-modal-btn:hover { color: var(--current-accent); opacity: 1;}
.modal-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.modal-content h3 {
    font-size: 1.8rem;
    color: var(--current-primary);
    margin-bottom: 0.5rem;
}
.modal-category { display: inline-block; margin-bottom: 1rem; }
.modal-content p { font-size: 1rem; margin-bottom: 1rem; opacity: 0.9; }
.modal-content h4 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; color: var(--current-text);}
.modal-content ul { list-style: disc; padding-left: 20px; margin-bottom: 1.5rem; }
.modal-content ul li { margin-bottom: 0.3rem; font-size: 0.95rem; opacity: 0.85;}
.modal-links { display: flex; gap: 1rem; margin-top: 1.5rem; justify-content: flex-end; }
.modal-links .btn { font-size: 0.9rem; padding: 0.6rem 1.2rem;}


/* === SKILLS & ACHIEVEMENTS SECTION === */
.skills-section { background-color: var(--current-bg); } /* Or current-section-bg */
.skills-achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.skill-category-card {
    background-color: var(--current-card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--current-shadow);
    transition: all 0.3s ease;
}
.skill-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(var(--current-primary-rgb, 79, 70, 229), 0.1);
}
.skill-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.skill-category-header i {
    font-size: 1.8rem;
    color: var(--current-primary);
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    background-color: rgba(var(--current-primary-rgb, 79, 70, 229), 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.skill-category-header h3 { font-size: 1.4rem; color: var(--current-text); margin-bottom: 0; }

.skill-bar { margin-bottom: 1.2rem; }
.skill-name { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.3rem; }
.bar {
    height: 8px;
    background-color: var(--current-section-bg); /* Lighter bar background */
    border-radius: 4px;
    overflow: hidden;
}
.progress {
    height: 100%;
    background-color: var(--current-primary);
    border-radius: 4px;
    transition: width 0.8s ease-in-out;
}
.achievements-card h4 { font-size: 1.1rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.8rem; color: var(--current-text); opacity:0.9; }
.badge-container { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.badge-container span {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    background-color: rgba(var(--current-primary-rgb, 79, 70, 229), 0.1);
    color: var(--current-primary);
    border-radius: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}
.badge-container span i { margin-right: 0.4rem; }
.cert-list li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    opacity: 0.85;
}
.cert-list li i { margin-right: 0.8rem; color: var(--current-accent); width: 20px; text-align: center; }


/* === HOBBIES SECTION === */
.hobbies-section { background-color: var(--current-section-bg); }
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.hobby-card {
    background-color: var(--current-card-bg);
    padding: 1.8rem;
    border-radius: 10px;
    box-shadow: var(--current-shadow);
    text-align: center;
    transition: all 0.3s ease;
}
.hobby-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(var(--current-primary-rgb, 79, 70, 229), 0.1);
}
.hobby-card i {
    font-size: 2.5rem;
    color: var(--current-primary);
    margin-bottom: 1rem;
    display: block;
}
.hobby-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--current-text); }
.hobby-card p { font-size: 0.9rem; opacity: 0.8; }


/* === CONTACT SECTION === */
.contact-section { background-color: var(--current-bg); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Info takes less space */
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}
.contact-info h3 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--current-primary); }
.contact-info p { margin-bottom: 1.5rem; opacity: 0.85; }
.info-item { display: flex; align-items: center; margin-bottom: 1rem; font-size: 1rem;}
.info-item i {
    font-size: 1.3rem;
    color: var(--current-primary);
    margin-right: 1rem;
    width: 30px; /* Consistent icon width */
    text-align: center;
}
.info-item a { color: var(--current-text); }
.info-item a:hover { color: var(--current-primary); }
.contact-social-links { margin-top: 2rem; display: flex; gap: 1rem; }
.contact-social-links a {
    width: 40px; height: 40px; border-radius: 50%;
    background-color: rgba(var(--current-primary-rgb, 79, 70, 229), 0.1);
    color: var(--current-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.contact-social-links a:hover {
    background-color: var(--current-primary);
    color: var(--bg-light); /* Light icon on hover */
    transform: translateY(-3px) scale(1.1);
}
body[data-theme="dark"] .contact-social-links a:hover { color: var(--bg-dark); }


#contact-form {
    background-color: var(--current-card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--current-shadow);
}
#contact-form h3 { font-size: 1.6rem; margin-bottom: 1.5rem; text-align: center; color: var(--current-primary); }
.form-group { margin-bottom: 1.2rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem; /* Increased padding */
    border: 1px solid var(--current-border);
    border-radius: 8px; /* More rounded inputs */
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    background-color: var(--current-bg); /* Form inputs bg match page bg */
    color: var(--current-text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--current-text);
    opacity: 0.6;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--current-primary);
    box-shadow: 0 0 0 3px rgba(var(--current-primary-rgb, 79, 70, 229), 0.2);
}
#contact-form button[type="submit"] {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    margin-top: 1rem;
}


/* === FOOTER === */
footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background-color: var(--current-section-bg); /* Use section bg for footer */
    color: var(--current-text);
    font-size: 0.9rem;
    opacity: 0.8;
    border-top: 1px solid var(--current-border);
}
footer .fa-heart { color: var(--current-accent); }

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column; /* Stack image and text */
        text-align: center;
        gap: 2rem;
    }
    .hero-image-container { order: -1; margin-bottom: 1rem; } /* Image on top */
    .hero-social-stats { position: static; transform: none; margin-top: 1.5rem;}
    .hero-text { text-align: center; animation: slideInFromBottom 1s ease-out forwards; }
    .hero-text h2 { text-align: center; }
    @keyframes slideInFromBottom {
        0% { transform: translateY(100px); opacity: 0; }
        100% { transform: translateY(0); opacity: 1; }
    }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-info { text-align: center; margin-bottom: 2rem; }
    .info-item { justify-content: center; }
    .contact-social-links { justify-content: center; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.9rem; }
    .nav-links {
        position: fixed; /* Fixed for better overlay */
        right: 0;
        top: 0; /* Align to top */
        height: 100vh; /* Full height */
        background-color: var(--current-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center; /* Center links vertically */
        width: 70%;
        max-width: 300px; /* Max width for overlay */
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        padding-top: 70px; /* Space for header */
    }
    .nav-links li { margin: 1.8rem 0; } /* Increased margin for vertical layout */
    .nav-links a { font-size: 1.1rem; }

    .burger { display: block; z-index: 1001; /* Above nav overlay when closed */ }
    header nav { padding: 0 15px; } /* Reduce nav padding */
    .logo { font-size: 1.6rem; }

    .nav-active { transform: translateX(0%); }
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); background-color: var(--current-primary); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); background-color: var(--current-primary); }

    .hero-text h1 { font-size: 2.2rem; }
    .hero-text h2 { font-size: 1.3rem; }
    .btn { padding: 0.6rem 1.4rem; font-size: 0.9rem; }

    .certificates-carousel { animation-duration: 30s; } /* Faster scroll on mobile */

    .skills-achievements-grid { grid-template-columns: 1fr; } /* Stack skills on mobile */
    .hobbies-grid { grid-template-columns: 1fr; }
}


