/* Modern Professional Portfolio CSS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
/* Masonry-style flexible grid */
/* Masonry-style flexible grid — WIDER CARDS */
.masonry-grid {
    column-count: 2;        /* Desktop: 2 wide columns */
    column-gap: 2rem;      /* More breathing room */
}

/* Large screens — allow 3 columns only if very wide */
@media (min-width: 1400px) {
    .masonry-grid {
        column-count: 3;
    }
}

/* Tablets */
@media (max-width: 1100px) {
    .masonry-grid {
        column-count: 2;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .masonry-grid {
        column-count: 1;
    }
/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}
.certification-card.compact {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.certification-card.compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Remove underline from ALL certification grid links */
.certifications-grid a {
    text-decoration: none !important;
    color: inherit !important;
}

/* Remove underline from ALL text inside the cards */
.certifications-grid a *,
.certifications-grid a *:hover {
    text-decoration: none !important;
}

.compact-certs .cert-title {
    font-weight: 600;
    color: var(--text-dark); /* or your main text color */
}
/* Project Card */
.project-card {
    background: linear-gradient(145deg, #0b1220, #0f1a2e);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);

    display: flex;
    flex-direction: column;
}

/* Image */
.project-image {
    position: relative;
    height: 190px;
    background: #0b1220;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Content */
.project-content {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Title */
.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Short Description */
.project-description {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #cbd5f5;
    margin-bottom: 0.75rem;
}

/* Highlights (Optional but powerful) */
.project-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9rem 0;
}

.project-highlights li {
    font-size: 0.82rem;
    color: #dbeafe;
    padding-left: 1.1rem;
    margin-bottom: 0.35rem;
    position: relative;
}

.project-highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #38bdf8;
    font-weight: 700;
}

/* Tech Tags */
.project-tech {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-tag {
    background: rgba(99,102,241,0.12);
    color: #c7d2fe;
    border: 1px solid rgba(99,102,241,0.2);
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
}}


/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Service Card */
.service-card {
    background: linear-gradient(145deg, #0b1220, #0f1a2e);
    border-radius: 18px;
    padding: 2rem 1.8rem;
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);

    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Icon */
.service-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(56,189,248,0.12);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Title */
.service-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

/* Description */
.service-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cbd5f5;
    margin-bottom: 1.2rem;
}

/* Features List */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto; /* Align bottom */
}

.service-features li {
    font-size: 0.85rem;
    color: #dbeafe;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    position: relative;
    line-height: 1.4;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}
/* Card styling */
.skill-category-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    background: linear-gradient(145deg, #0b1220, #0f1a2e);
    border-radius: 18px;
    padding: 1.6rem;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

/* Subtle top accent */
.skill-category-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #38bdf8, #6366f1, #22c55e);
    opacity: 0.8;
}

/* Header */
.skill-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.skill-category-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 1.1rem;
}

.skill-category-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Badges */
.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    background: rgba(99, 102, 241, 0.12);
    color: #c7d2fe;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.2s ease;
}

.skill-badge:hover {
    background: rgba(56, 189, 248, 0.2);
    color: #e0f2fe;
    transform: translateY(-2px);
}
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #7c3aed;
    --accent-color: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-heading {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.menu-list-items .links {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.menu-list-items .links::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.menu-list-items .links:hover {
    color: var(--primary-color);
}

.menu-list-items .links:hover::after {
    width: 100%;
}

/* Active nav link */
.menu-list-items .links.active {
    color: var(--primary-color);
}

.menu-list-items .links.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.cross-icon {
    display: none;
}

/* Hero Section */
.hero {
    /* Reduce effective hero height so it doesn't visually cover the next section */
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Extra top padding to clear the fixed header and avoid overlap with About */
    padding: 7rem 2rem 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    color: white;
}

.greet-heading {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease 0.8s both;
}

.image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-xl);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-placeholder {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border: none;
}

.common-btn {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.common-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.ghost-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.ghost-btn:hover {
    background: white;
    color: var(--primary-color);
}

/* Section Headings */
.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* About Section */
.about {
    /* Extra top padding so the heading is fully visible when scrolling */
    padding: 7rem 0 6rem;
    background: var(--bg-light);
    /* Offset scroll position for fixed header + hero image */
    scroll-margin-top: 120px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.lead-para {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Experience Section */
.experience {
    padding: 6rem 0;
    background: white;
    scroll-margin-top: 80px;
}

/* Education Section anchor offset for fixed navbar */
.education {
    scroll-margin-top: 80px;
}

.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(10px);
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.timeline-skills li {
    padding: 0.25rem 0.75rem;
    background: white;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-dark);
    border: 1px solid #e5e7eb;
}

/* Education Section */
.education {
    padding: 6rem 0;
    background: var(--bg-light);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.education-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.education-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
}

.education-degree {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    text-align: center;
}

.education-school {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.education-year {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.education-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background: white;
    scroll-margin-top: 80px;
}

.expertise {
    scroll-margin-top: 80px;
}

.research {
    scroll-margin-top: 80px;
}

.certifications {
    scroll-margin-top: 80px;
}

.services-section {
    scroll-margin-top: 80px;
}

.projects {
    scroll-margin-top: 800px;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.skill-category-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.skill-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background: white;
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.skill-category-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.skill-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    text-align: left;
}

.skill-badges {
    display: flex;
    flex-direction: column; /* Stack like a list */
    gap: 0.15rem;           /* Smaller gap between rows */
    justify-content: flex-start;
}

.skill-badge {
    display: block;
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0;       /* Rely on gap from container */
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 0.85rem; /* Smaller font like expertise section */
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.4;
    cursor: default;
}

.skill-badge::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 0.1rem; /* Vertically center bullet with first line */
    color: var(--primary-color);
    font-weight: 700;
}

.skill-badge:hover {
    background: transparent;
    color: var(--text-dark);
    transform: none;
    box-shadow: none;
}

.skill-category-card:hover .skill-badge {
    border-color: #d1d5db;
}

.skill-category-card:hover .skill-badge:hover {
    border-color: transparent;
}

/* Section Subtitle */
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Core Expertise Section */
.expertise {
    padding: 6rem 0;
    background: white;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.expertise-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    text-align: left;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.expertise-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.expertise-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    text-align: left;
}

.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-list {
    text-align: left;
}

.expertise-list li {
    padding: 0.4rem 0;
    color: var(--text-light);
    font-size: 0.85rem;
    position: relative;
    padding-left: 1.5rem;
    text-align: left;
}

.expertise-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Research Interests Section */
.research {
    padding: 6rem 0;
    background: var(--bg-light);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.research-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid transparent;
}

.research-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
}

.research-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin: 0 auto 1rem;
}

.research-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
    text-align: center;
}

.research-description {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: center;
}

/* Certifications Section */
.certifications {
    padding: 6rem 0;
    background: white;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.certification-card {
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.cert-image-wrapper {
    width: 100%;
    height: 200px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.cert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-placeholder {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.cert-content {
    padding: 1.25rem;
    text-align: left;
}

.cert-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    text-align: left;
}

.cert-issuer {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: left;
}

.cert-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.cert-description {
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.6;
    text-align: left;
}

/* Freelancing Services Section */
.services-section {
    padding: 6rem 0;
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--primary-color);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    text-align: left;
}

.service-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-align: left;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features {
    text-align: left;
}

.service-features li {
    padding: 0.4rem 0;
    color: var(--text-dark);
    font-size: 0.85rem;
    position: relative;
    padding-left: 1.5rem;
    text-align: left;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: var(--bg-light);
    scroll-margin-top: 80px; /* align with other sections for clean anchor scroll */
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    height: 200px;
    background: var(--gradient-1);
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-content {
    padding: 1.25rem;
    text-align: left;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    text-align: left;
}

.project-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-align: left;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-dark);
}

/* Publications Section */
.publications {
    padding: 6rem 0;
    background: white;
}

.publications-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.publication-item {
    display: flex;
    gap: 2rem;
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.publication-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.publication-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.publication-content {
    flex: 1;
}

.publication-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.publication-authors {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.publication-authors strong {
    color: var(--primary-color);
    font-weight: 600;
}

.publication-venue {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.publication-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.publication-link:hover {
    gap: 0.75rem;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
    scroll-margin-top: 80px;
}

.contact-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-details p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-social-link:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-control {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-btn {
    align-self: flex-start;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media screen and (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .profile-placeholder {
        font-size: 5rem;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

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

    .menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: var(--shadow-lg);
        display: none;
        padding: 2rem;
    }

    .menu.active {
        display: block;
    }

    .menu-list {
        flex-direction: column;
        gap: 1rem;
    }

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

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

    .section-heading {
        font-size: 2rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 5rem 1rem 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

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

    .education-grid {
        grid-template-columns: 1fr;
    }

    .publication-item {
        flex-direction: column;
        text-align: center;
    }

    .publication-icon {
        margin: 0 auto;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .skills-categories {
        grid-template-columns: 1fr;
    }

    .skill-category-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .skill-category-icon {
        margin: 0 auto;
    }

    .skill-badges {
        justify-content: center;
    }
}
/* FORCE remove underline in certifications grid */
#certifications a,
#certifications a:link,
#certifications a:visited,
#certifications a:hover,
#certifications a:active {
    text-decoration: none !important;
    border-bottom: none !important;
    color: inherit !important;
}

#certifications h3,
#certifications p,
#certifications span {
    text-decoration: none !important;
    border-bottom: none !important;
}