/* Variables for a Minimalist White Theme */
:root {
    --primary: #FFFFFF; /* White */
    --secondary: #F0F0F0; /* Light Gray */
    --accent: #4A90E2; /* A refined, less "default" blue */
    --highlight: #7BB9F3; /* Lighter version of the new accent */
    --text: #222222; /* Darker Gray for primary text */
    --text-light: #555555; /* Darker Medium Gray for secondary text */
    --card-bg: #FFFFFF; /* White */
    --gradient: linear-gradient(135deg, #FFFFFF, #F5F5F5); /* Subtle light gradient */
    --glow-cyan: none; /* Remove glow */
    --glow-magenta: none; /* Remove glow */
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Softer shadow */
    --border-radius-std: 6px; /* Standard border radius */
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px; /* Slightly thinner */
}

::-webkit-scrollbar-thumb {
    background: #C1C1C1; /* Medium gray scrollbar thumb */
    border-radius: var(--border-radius-std); /* Consistent radius */
}

::-webkit-scrollbar-thumb:hover {
    background: #A8A8A8; /* Darker gray on hover */
}

::-webkit-scrollbar-track {
    background: var(--secondary); /* Light gray track */
    border-radius: var(--border-radius-std); /* Consistent radius */
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Calibre', 'Inter', 'San Francisco', 'SF Pro Text', -apple-system, system-ui, sans-serif;
}

html {
    /* scroll-behavior: smooth; */ /* Commented out to prefer JS solution */
}

body {
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Section Styles */
section {
    padding: 40px 0; /* Aggressively reduced padding */
    min-height: auto; /* Allow sections to be smaller if content is less */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: var(--primary); /* Use primary white background */
    border-bottom: 1px solid var(--secondary); /* Subtle separator line */
}

section:last-of-type {
    border-bottom: none; /* Remove border from the last section */
}


.container {
    max-width: 1100px; /* Slightly reduced max width for more contained feel */
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    color: var(--text); /* Dark gray for headings */
    text-shadow: none; /* Remove text shadow */
}

p {
    margin-bottom: 15px;
    color: var(--text-light); /* Medium gray for paragraphs */
}

a {
    text-decoration: none;
    color: var(--accent); /* Accent color for links */
    transition: var(--transition);
}

a:hover {
    color: var(--highlight); /* Lighter accent on hover */
    text-shadow: none; /* Remove text shadow */
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 8px 20px; /* Further reduced padding for a sleeker look */
    background: var(--accent); /* New accent color background */
    border: 2px solid var(--accent); /* New accent color border */
    color: var(--primary); /* White text */
    border-radius: var(--border-radius-std); /* Consistent radius */
    font-size: 15px; /* Slightly smaller font size */
    font-weight: 500; /* Adjusted font weight */
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.8px; /* Further reduced letter spacing */
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08); /* Even softer shadow */
    z-index: 2;
}

.btn:hover {
    background: var(--highlight); /* Lighter new accent on hover */
    border-color: var(--highlight);
    color: var(--primary); /* Keep text white on hover for this primary button style */
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12); /* Slightly adjusted hover shadow */
}

.btn::before {
    /* Remove shimmer effect or make it very subtle if desired */
    display: none; 
}

/*
.btn:hover::before {
    left: 100%; 
}
*/

.section-title {
    font-size: 30px; /* Further reduced size */
    font-weight: 600; /* Slightly lighter weight */
    position: relative;
    display: inline-block;
    margin-bottom: 25px; /* Further reduced margin */
    color: var(--text); /* Dark gray text */
    text-shadow: none; /* Remove text shadow */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px; /* Adjusted position */
    left: 0;
    width: 40px; /* Shorter underline */
    height: 2.5px; /* Thinner underline */
    background: var(--accent); /* Accent color underline */
    transition: width 0.3s ease; /* Faster transition */
}

.section-title:hover::after {
    width: 100%;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95); /* Semi-transparent white */
    backdrop-filter: blur(8px); /* Slightly less blur */
    transition: var(--transition);
    padding: 12px 0; /* Adjusted padding */
    border-bottom: 1px solid var(--secondary); /* Light border */
}

header.scrolled {
    box-shadow: var(--box-shadow); /* Use the new softer shadow */
    padding: 10px 0;
}

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

.logo {
    font-size: 26px; /* Slightly smaller */
    font-weight: 700;
    color: var(--accent); /* Accent color for logo */
    /* remove background gradient for logo if it was there */
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

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

.nav-links li {
    margin-left: 25px; /* Slightly reduced margin */
}

.nav-links a {
    color: var(--text); /* Dark gray for nav links */
    font-size: 16px;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced gap */
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent); /* Accent color on hover */
    text-shadow: none; /* Remove text shadow */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent); /* Accent color underline */
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links i {
    font-size: 16px; /* Slightly smaller icons */
    color: var(--text-light); /* Medium gray for icons */
}

.nav-links a:hover i {
    color: var(--accent); /* Accent color for icons on hover */
}


.resume-btn {
    margin-left: 25px; /* Slightly reduced margin */
    padding: 6px 12px; 
    background: var(--primary); /* White background */
    border: 1px solid var(--accent); /* Accent border */
    font-size: 15px; 
    font-weight: 500; 
    color: var(--accent); /* Accent text */
    border-radius: var(--border-radius-std); /* Consistent radius */
    transition: var(--transition);
    z-index: 2;
    text-transform: none; 
    letter-spacing: normal;
}

.resume-btn.btn:hover {
    background: var(--accent); /* Accent background on hover */
    border-color: var(--accent);
    color: #FFFFFF;  /* White text on hover */
}

/* Card specific button styling */
.project-card .btn, .blog-card .btn {
    padding: 6px 12px; /* Smaller padding for card buttons */
    font-size: 13px; /* Smaller font size */
    letter-spacing: 0.5px;
    background: var(--secondary); /* Light grey background */
    color: var(--text); /* Dark text */
    border-color: var(--secondary);
    border-radius: var(--border-radius-std); /* Ensure consistent border radius */
}

.project-card .btn:hover, .blog-card .btn:hover {
    background: var(--text-light); /* Darker grey on hover */
    color: var(--primary); /* White text on hover */
    border-color: var(--text-light);
}


.hamburger {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.hamburger div {
    width: 25px;
    height: 3px;
    margin: 5px;
    background: var(--text); /* Dark gray for hamburger lines */
    transition: var(--transition);
}

/* Hero Section */
#hero {
    position: relative;
    overflow: hidden;
    background: var(--primary); /* White background */
    z-index: 0;
    /* min-height: calc(100vh - 60px); /* Adjust if header height changes */
    display: flex;
    align-items: center; /* Vertically center content */
    padding-top: 0; /* Remove top padding here, will be handled by hero-content */
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure particles are behind content */
    /* display: none; */ /* Re-enable particles */
}

.hero-content {
    max-width: 800px; /* Slightly reduced max-width */
    text-align: center;
    z-index: 2; /* Ensure content is above particles */
    padding-top: 90px; /* Further reduced top padding. Was 80px. Initial was 60px + section padding */
    position: relative; /* Needed for z-index to work properly with absolute positioned particles */
}

.hero-title {
    font-size: 20px; /* Slightly smaller */
    color: var(--text-light); /* Medium gray */
    margin-bottom: 15px; /* Reduced margin */
    text-transform: uppercase;
    letter-spacing: 3px; /* Reduced letter spacing */
    animation: fadeIn 1s ease-out;
}

.hero-name {
    font-size: 70px; /* Slightly smaller */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px; /* Reduced margin */
    color: var(--text); /* Dark gray */
    /* Remove background gradient and animation */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    animation: none; 
    text-shadow: none;
}

.hero-subtitle {
    font-size: 50px; /* Slightly smaller */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px; /* Reduced margin */
    color: var(--text); /* Dark gray */
    animation: fadeInUp 1.2s ease-out;
}

.hero-description {
    max-width: 550px; /* Slightly reduced max-width */
    margin: 0 auto 40px; /* Adjusted margin */
    font-size: 17px; /* Slightly smaller */
    color: var(--text-light); /* Medium gray */
    text-shadow: none; /* Remove text shadow */
    animation: fadeInUp 1.4s ease-out;
}

/* Animations */
/* @keyframes neonPulse {
    0%, 100% { text-shadow: var(--glow-cyan); }
    50% { text-shadow: var(--glow-magenta); }
} */ /* Removed neonPulse */

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); } /* Reduced translateY */
    100% { opacity: 1; transform: translateY(0); }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Adjusted column ratio */
    gap: 40px; /* Reduced gap */
    align-items: center;
    background: var(--card-bg); /* White card background */
    padding: 30px; /* Reduced padding */
    border-radius: var(--border-radius-std); /* Consistent radius */
    box-shadow: var(--box-shadow); /* Softer shadow */
    border: 1px solid var(--secondary); /* Light gray border */
}

.about-text p {
    margin-bottom: 15px; /* Reduced margin */
    text-align: left; /* Keep text left aligned */
}

.about-image {
    position: relative;
    overflow: hidden;
    display: flex; /* Center image if needed */
    justify-content: center; /* Center image if needed */
}

.about-image img {
    width: 100%;
    max-width: 250px; /* Adjusted max-width */
    border-radius: 50%; /* Rounded shape */
    filter: none; /* Remove grayscale filter */
    transition: var(--transition);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.18); /* Slightly enhanced shadow for profile pic */
}

.about-image::after {
    /* Remove decorative border or make it very subtle */
    display: none; 
}

.about-image:hover img {
    transform: scale(1.04); /* Slightly more pronounced hover scale */
    box-shadow: 0 8px 25px rgba(0,0,0,0.2); /* Enhanced shadow on hover */
}

/* .about-image:hover::after {
    border-color: var(--accent);
    box-shadow: none; 
} */

.skill-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive columns */
    margin-top: 20px;
    padding-left: 0; /* Remove padding */
    list-style: none;
    gap: 8px 20px; /* Adjusted gap */
}

.skill-list li {
    margin-bottom: 8px; /* Reduced margin */
    position: relative;
    transition: var(--transition);
    padding-left: 20px; /* Space for bullet */
}

.skill-list li:hover {
    color: var(--accent); /* Accent color on hover */
    transform: translateX(3px); /* Smaller translate */
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent); /* Accent color for bullet */
}

/* Card base style for Project, Blog, Skill categories */
.card-base {
    background: var(--card-bg);
    border-radius: var(--border-radius-std);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); /* Subtle base shadow */
    transition: var(--transition);
    border: 1px solid var(--secondary);
    overflow: hidden; /* Ensures content respects border radius */
}

.card-base:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1); /* Enhanced hover shadow */
    border-color: var(--highlight); /* Subtle border highlight on hover */
}


/* Core Skills Section */
.core-skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px; 
}

.skill-card {
    /* Extends card-base */
    padding: 25px; 
}
/* Apply card-base styles to skill-card */
.skill-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-std);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); /* Subtle base shadow */
    transition: var(--transition);
    border: 1px solid var(--secondary);
    overflow: hidden; /* Ensures content respects border radius */
}
.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1); /* Enhanced hover shadow */
    border-color: var(--highlight); /* Subtle border highlight on hover */
}


.skill-card h3 {
    font-size: 1.15rem; /* Adjusted size */
    margin-bottom: 12px; 
    color: var(--text);
}

.skill-card i {
    font-size: 1.3rem; /* Adjusted size */
    color: var(--accent); 
    margin-right: 8px; 
    vertical-align: middle; /* Align icon nicely with text */
}

/* Projects Section */
.projects-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
}

.project-card {
     /* Extends card-base */
}
/* Apply card-base styles to project-card */
.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-std);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); /* Subtle base shadow */
    transition: var(--transition);
    border: 1px solid var(--secondary);
    overflow: hidden; /* Ensures content respects border radius */
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1); /* Enhanced hover shadow */
    border-color: var(--highlight); /* Subtle border highlight on hover */
}


.project-image {
    width: 100%;
    height: 170px; /* Slightly adjusted height */
    object-fit: cover;
    transition: transform 0.4s ease; /* Smoother image scale */
    border-bottom: 1px solid var(--secondary); /* Separator */
}

.project-card:hover .project-image {
    transform: scale(1.05); /* Slightly more noticeable scale */
}

.project-info {
    padding: 20px; /* Slightly reduced padding */
}

.project-title {
    font-size: 1.2rem; /* Adjusted size */
    margin-bottom: 10px; 
    color: var(--accent); 
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.project-description {
    margin-bottom: 15px; 
    font-size: 0.9rem; /* Slightly smaller for compactness */
    line-height: 1.5; /* Improved readability */
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px; 
}

.project-tech span {
    margin-right: 6px; /* Reduced margin */
    margin-bottom: 6px; /* Added bottom margin for wrap */
    font-size: 0.7rem; /* Smaller tech tags */
    background: var(--secondary); 
    color: var(--text-light); 
    padding: 3px 7px; 
    border-radius: calc(var(--border-radius-std) / 2); /* Smaller radius for tags */
    transition: var(--transition);
}

.project-tech span:hover {
    background: var(--accent); 
    color: var(--primary); 
    transform: scale(1.05);
}

.project-links {
    display: flex;
    gap: 10px; /* Add gap between links */
}

.project-links a {
    font-size: 1.1rem; /* Adjusted size */
    color: var(--text-light); 
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--accent); 
    transform: scale(1.1); 
}

.view-more-container {
    text-align: center;
    margin-top: 20px; /* Reduced margin */
}

/* Experience Section */
#experience {
    /* padding: 80px 0;  Padding already set in section global */
    background: var(--primary); 
}

.experience-container {
    max-width: 750px; /* Adjusted width */
    margin: 0 auto;
}

.experience-content {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.experience-card {
     /* Extends card-base */
    border-left: 3px solid var(--secondary); /* Keep left border for active indication */
}
/* Apply card-base styles to experience-card */
.experience-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-std);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); /* Subtle base shadow */
    transition: var(--transition);
    border: 1px solid var(--secondary);
    overflow: hidden; /* Ensures content respects border radius */
    border-left: 3px solid var(--secondary); /* Keep left border for active indication */
}
.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1); /* Enhanced hover shadow */
    border-color: var(--highlight); /* Subtle border highlight on hover */
    border-left-color: var(--highlight); /* Change left border on hover too */
}


.experience-card.active {
    border-left: 3px solid var(--accent); 
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1); /* Match hover shadow for active */
}


.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px; 
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.experience-header:hover {
    background: var(--secondary); 
}

.header-content {
    flex: 1;
}

.job-title {
    font-size: 1.1rem; 
    margin-bottom: 4px; 
    color: var(--text); 
    font-weight: 600;
}

.job-company {
    font-size: 0.95rem; 
    margin-bottom: 6px; 
    color: var(--accent); 
}

.job-duration {
    font-size: 0.8rem; 
    color: var(--text-light); 
}

.toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-light); 
    cursor: pointer;
    font-size: 1rem; 
    width: 25px; 
    height: 25px; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}
.experience-card.active .toggle-btn {
    transform: rotate(90deg); /* Rotate arrow when active */
}

.toggle-btn:hover {
    transform: scale(1.1); 
    color: var(--accent); 
}
.experience-card.active .toggle-btn:hover {
    transform: rotate(90deg) scale(1.1);
}


.experience-details {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px); 
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, transform 0.4s ease-in-out; 
}

.experience-card.active .experience-details {
    max-height: 400px; 
    opacity: 1;
    transform: translateY(0);
    padding: 0 20px 20px; 
}

.job-responsibilities {
    list-style: none;
    padding-left: 0;
}

.job-responsibilities li {
    margin-bottom: 8px; /* Reduced margin */
    padding-left: 20px; 
    position: relative;
    color: var(--text-light); 
    transition: var(--transition);
    font-size: 0.85rem; /* Slightly smaller */
    line-height: 1.5;
}

.job-responsibilities li:hover {
    color: var(--text); 
}

.job-responsibilities li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent); 
}

/* Blogs Section */
.blogs-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 18px; 
}

.blog-card {
     /* Extends card-base */
}
/* Apply card-base styles to blog-card */
.blog-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-std);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); /* Subtle base shadow */
    transition: var(--transition);
    border: 1px solid var(--secondary);
    overflow: hidden; /* Ensures content respects border radius */
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1); /* Enhanced hover shadow */
    border-color: var(--highlight); /* Subtle border highlight on hover */
}

.blog-image {
    width: 100%;
    height: 160px; /* Adjusted height */
    object-fit: cover;
    transition: transform 0.4s ease;
    border-bottom: 1px solid var(--secondary);
}

.blog-card:hover .blog-image {
    transform: scale(1.05); 
}

.blog-info {
    padding: 20px; /* Consistent padding */
}

.blog-date {
    font-size: 0.75rem; /* Smaller date */
    color: var(--text-light); 
    margin-bottom: 6px; 
}

.blog-title {
    font-size: 1.1rem; /* Adjusted size */
    margin-bottom: 10px; 
    color: var(--accent); 
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.blog-excerpt {
    margin-bottom: 15px; 
    font-size: 0.85rem; /* Smaller excerpt */
    line-height: 1.5;
}

/* Education Section */
.education-timeline {
    position: relative;
    max-width: 700px; /* Adjusted width */
    margin: 0 auto;
    padding-top: 10px; /* Add some padding for the first item's dot */
}

.education-timeline::before {
    content: '';
    position: absolute;
    top: 10px; /* Align with first dot */
    left: 4.5px; /* Center the line with the dot */
    height: calc(100% - 10px); /* Adjust height */
    width: 2px; 
    background: var(--secondary); 
}

.timeline-item {
    padding-left: 30px; /* Reduced padding */
    margin-bottom: 30px; /* Reduced margin */
    position: relative;
    transition: var(--transition);
}

.timeline-item:hover {
    /* transform: translateX(3px); No need to translate, focus on dot highlight */
}
.timeline-item:hover::before {
    background: var(--highlight); /* Highlight dot on hover */
    transform: scale(1.3); /* Enlarge dot on hover */
}


.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px; 
    left: 0px; /* Align dot with the line */
    width: 10px; 
    height: 10px; 
    border-radius: 50%;
    background: var(--accent); 
    box-shadow: none; 
    transition: var(--transition);
    z-index: 1; /* Ensure dot is above the line */
}

.timeline-date {
    font-size: 0.8rem; 
    color: var(--text-light); 
    margin-bottom: 6px; 
}

.timeline-degree {
    font-size: 1.15rem; 
    margin-bottom: 4px; 
    color: var(--text); 
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    font-weight: 600;
}

.timeline-institution {
    font-size: 0.9rem; 
    color: var(--text-light); 
    margin-bottom: 10px; 
}

/* Skills Section */
.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px; 
}

.skills-category {
     /* Extends card-base */
    margin-bottom: 25px; 
    padding: 20px; 
}
/* Apply card-base styles to skills-category */
.skills-category {
    background: var(--card-bg);
    border-radius: var(--border-radius-std);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); /* Subtle base shadow */
    transition: var(--transition);
    border: 1px solid var(--secondary);
    overflow: hidden; /* Ensures content respects border radius */
}
.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1); /* Enhanced hover shadow */
    border-color: var(--highlight); /* Subtle border highlight on hover */
}


.skills-category h3 {
    font-size: 1.1rem; 
    margin-bottom: 15px; 
    color: var(--accent); 
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    border-bottom: 1px solid var(--secondary); /* Add a separator for category title */
    padding-bottom: 10px;
}

.skills-category-content { /* New wrapper for skill bars */
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Gap between skill items */
}

.skill-bar {
    /* margin-bottom: 12px; /* Removed, as gap is handled by flex container */
    flex: 1 1 calc(50% - 15px); /* Allow 2 items per row, adjust as needed */
    min-width: 200px; /* Minimum width before wrapping */
    /* background-color: #f9f9f9; /* Optional: for visual debugging */
    /* padding: 10px; */
    /* border: 1px solid #eee; */
    /* border-radius: var(--border-radius-std); */
}


.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px; /* Reduced margin */
    font-size: 0.85rem; /* Slightly smaller */
}
.skill-info span:first-child {
    font-weight: 500; /* Make skill name slightly bolder */
}

.skill-progress {
    width: 100%;
    height: 8px; /* Slightly thicker for better visibility */
    background: var(--secondary); 
    border-radius: calc(var(--border-radius-std) / 2); 
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: var(--accent); 
    border-radius: calc(var(--border-radius-std) / 2); 
    transition: width 1s ease-in-out;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 30px; /* Reduced gap */
    max-width: 800px; 
    margin: 0 auto;
     /* Extends card-base */
    padding: 25px; /* Reduced padding */
}
/* Apply card-base styles to contact-content */
.contact-content {
    background: var(--card-bg);
    border-radius: var(--border-radius-std);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); /* Subtle base shadow */
    transition: var(--transition);
    border: 1px solid var(--secondary);
    overflow: hidden; /* Ensures content respects border radius */
}
.contact-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.1); /* Enhanced hover shadow */
    border-color: var(--highlight); /* Subtle border highlight on hover */
}



.contact-info {
    padding-right: 0; 
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Reduced margin */
    transition: var(--transition);
}

.contact-item i {
    font-size: 1.2rem; /* Adjusted size */
    color: var(--accent); 
    margin-right: 15px; /* Adjusted margin */
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    color: var(--highlight); 
    text-shadow: none; 
    transform: scale(1.1); 
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    color: var(--text);
}
.contact-item p, .contact-item p a {
    font-size: 0.9rem;
    color: var(--text-light);
}
.contact-item p a:hover {
    color: var(--accent);
    text-decoration: underline; /* Add underline on hover for links */
}


.contact-form {
    background: transparent; 
    padding: 0; 
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.form-group {
    margin-bottom: 15px; 
}

.form-control {
    width: 100%;
    padding: 10px 12px; 
    background: var(--secondary); 
    border: 1px solid #DDE8F1; /* Lighter, slightly blue-ish border */
    border-radius: var(--border-radius-std); 
    color: var(--text); 
    font-size: 0.9rem; /* Slightly smaller font */
    transition: var(--transition);
}
.form-control::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent); 
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2); /* Adjusted focus ring to match new accent */
}


textarea.form-control {
    min-height: 100px; /* Reduced min-height */
    resize: vertical;
}

/* Footer */
footer {
    background: var(--primary); /* Change to primary for cleaner look */
    padding: 20px 0; /* Reduced padding */
    text-align: center;
    position: relative;
    border-top: 1px solid var(--secondary); /* Keep border */
}

footer::before {
    display: none; 
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 12px; /* Reduced margin */
}

.social-links a {
    margin: 0 10px; /* Reduced margin */
    font-size: 1.3rem; /* Adjusted size */
    color: var(--text-light); 
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent); 
    transform: translateY(-3px) scale(1.15); /* Slightly more pronounced hover */
    text-shadow: none; 
}

.copyright {
    font-size: 0.8rem; /* Smaller copyright */
    color: var(--text-light); 
}

.footer-privacy-link {
    color: var(--text-light);
    font-size: 0.8em; /* Slightly smaller than copyright text if needed */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-privacy-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px; /* Smaller padding */
    background: var(--text); 
    color: var(--primary); 
    border-radius: var(--border-radius-std); 
    box-shadow: 0 3px 10px rgba(0,0,0,0.15); /* Slightly more defined shadow */
    z-index: 1000;
    animation: slideIn 0.4s ease, fadeOut 0.4s ease 2.6s; /* Faster animation */
    font-size: 0.9rem;
}

.toast.error {
    background: #D32F2F; 
    color: var(--primary); 
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateX(10px); } /* Slight move on fade out */
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr; 
    }

    .about-image {
        margin-top: 30px; 
    }

    .contact-content {
        grid-template-columns: 1fr; 
    }

    .contact-info {
        padding-right: 0;
        margin-bottom: 30px; 
    }

    .section-title {
        font-size: 1.6rem; /* Responsive section title */
    }

    .hero-name {
        font-size: 3rem; /* Responsive hero name */
    }
    .hero-subtitle {
        font-size: 2.2rem; /* Responsive hero subtitle */
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        height: 100vh;
        width: 70%; 
        max-width: 280px; /* Slightly smaller nav */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.99); /* Almost opaque for clarity */
        backdrop-filter: blur(4px);
        transition: var(--transition);
        z-index: 100; 
        box-shadow: -3px 0 10px rgba(0,0,0,0.08); 
    }

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

    .nav-links li {
        margin: 15px 0; /* Tighter spacing */
    }

    .resume-btn {
        margin-left: 0;
        margin-top: 15px; 
    }

    .hero-name {
        font-size: 2.5rem; 
    }
    .hero-subtitle {
        font-size: 1.8rem; 
    }


    .projects-content,
    .blogs-content {
        grid-template-columns: 1fr; 
    }

    .experience-header {
        flex-direction: column; 
        align-items: flex-start;
        padding: 12px 15px; /* Tighter padding */
    }

    .toggle-btn {
        top: 12px; 
        right: 12px; 
    }

    .job-title {
        font-size: 1rem; 
    }

    .skill-list{
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 480px) {
    section {
        padding: 25px 0; /* Even tighter section padding */
    }
    .container {
        padding: 0 12px; /* Tighter container padding */
    }

    .experience-card {
        margin: 0; 
    }


    .hero-name {
        font-size: 2.2rem; 
    }
    .hero-subtitle {
        font-size: 1.6rem; 
    }

    .hero-title {
        font-size: 0.9rem; 
    }

    .hero-description {
        font-size: 0.85rem; 
    }

    .section-title {
        font-size: 1.4rem; 
    }
    .section-title::after{
        bottom: -5px;
        width: 35px;
        height: 2px;
    }

    .btn {
        padding: 7px 15px; /* Smaller buttons */
        font-size: 0.85rem;
    }

    .project-info, .blog-info, .skill-card, .about-content, .contact-content {
        padding: 15px; 
    }
    .project-card .btn, .blog-card .btn {
        padding: 5px 10px;
        font-size: 0.75rem; /* Smaller card buttons */
    }

}