/* ==============================================
   PORTFOLIO WEBSITE STYLES
   Inspired by CodeBucks Next.js Portfolio
   Dark theme with light mode toggle
   ============================================== */

/* ─── CSS Variables / Theme ─── */
:root {
    --font-main: 'Montserrat', 'Segoe UI', sans-serif;
    --transition: 0.3s ease;
    --radius: 12px;
    --max-width: 1200px;
}

[data-theme="dark"] {
    --bg-primary: #1b1b1b;
    --bg-secondary: #232323;
    --bg-card: #2a2a2a;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --accent: #58e6d9;
    --accent-hover: #3dd4c6;
    --border: #333;
    --shadow: rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(27, 27, 27, 0.85);
    --hero-bg: #1b1b1b;
    --heading-color: #f5f5f5;
    --link-color: #58e6d9;
    --btn-primary-bg: #f5f5f5;
    --btn-primary-text: #1b1b1b;
    --btn-outline-border: #f5f5f5;
    --btn-outline-text: #f5f5f5;
    --tag-bg: rgba(88, 230, 217, 0.15);
    --tag-text: #58e6d9;
    --highlight: #b63e96;
    --section-alt: #1f1f1f;
    --hire-me-bg: #1b1b1b;
    --hire-me-text: #f5f5f5;
}

[data-theme="light"] {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1b1b1b;
    --text-secondary: #555;
    --text-muted: #888;
    --accent: #b63e96;
    --accent-hover: #9b3380;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --hero-bg: #f5f5f5;
    --heading-color: #1b1b1b;
    --link-color: #b63e96;
    --btn-primary-bg: #1b1b1b;
    --btn-primary-text: #f5f5f5;
    --btn-outline-border: #1b1b1b;
    --btn-outline-text: #1b1b1b;
    --tag-bg: rgba(182, 62, 150, 0.1);
    --tag-text: #b63e96;
    --highlight: #b63e96;
    --section-alt: #eee;
    --hire-me-bg: #f5f5f5;
    --hire-me-text: #1b1b1b;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition), color var(--transition);
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─── Navigation ─── */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--transition);
    text-decoration: none;
}

.nav-link:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition);
}

.nav-logo span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.nav-logo:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.nav-logo:hover span {
    color: var(--bg-primary);
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-socials a,
.nav-socials button {
    color: var(--text-primary);
    display: flex;
    align-items: center;
    transition: all var(--transition);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-socials a:hover,
.nav-socials button:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.theme-toggle {
    position: relative;
    width: 28px;
    height: 28px;
}

.theme-toggle svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s, transform 0.3s;
}

[data-theme="dark"] .sun-icon { opacity: 1; transform: translate(-50%, -50%) rotate(0); }
[data-theme="dark"] .moon-icon { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
[data-theme="light"] .sun-icon { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg); }
[data-theme="light"] .moon-icon { opacity: 1; transform: translate(-50%, -50%) rotate(0); }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.mobile-nav-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition);
}

.mobile-nav-link:hover {
    color: var(--accent);
}

.mobile-nav-socials {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.mobile-nav-socials a {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ─── Main Content ─── */
.content {
    padding-top: 70px;
}

/* ─── Section Containers ─── */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

.section-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    color: var(--heading-color);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.section-line {
    width: 120px;
    height: 3px;
    background: var(--accent);
    margin: 0 auto 60px;
    border-radius: 2px;
}

/* ─── Hero Section ─── */
.hero-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    position: relative;
    padding: 40px 0;
    background: var(--hero-bg);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    gap: 60px;
    width: 100%;
}

.hero-image-col {
    flex: 0 0 45%;
    max-width: 500px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 0 100px 0 100px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow);
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

.hero-text-col {
    flex: 1;
    max-width: 600px;
}

.hero-heading {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--heading-color);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: wordFadeIn 0.5s ease forwards;
}

.hero-word:nth-child(1) { animation-delay: 0.1s; }
.hero-word:nth-child(2) { animation-delay: 0.2s; }
.hero-word:nth-child(3) { animation-delay: 0.3s; }
.hero-word:nth-child(4) { animation-delay: 0.4s; }
.hero-word:nth-child(5) { animation-delay: 0.5s; }
.hero-word:nth-child(6) { animation-delay: 0.6s; }
.hero-word:nth-child(7) { animation-delay: 0.7s; }
.hero-word:nth-child(8) { animation-delay: 0.8s; }

.hero-word.highlight {
    color: var(--accent);
}

@keyframes wordFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
    background: transparent;
    color: var(--btn-primary-bg);
    border-color: var(--btn-primary-bg);
}

.btn-outline {
    background: transparent;
    color: var(--btn-outline-text);
    border-color: var(--btn-outline-border);
}

.btn-outline:hover {
    background: var(--btn-outline-border);
    color: var(--bg-primary);
}

.btn-lg {
    padding: 18px 48px;
    font-size: 1.1rem;
}

.btn-icon {
    font-size: 1.2em;
    font-weight: 400;
}

/* ─── Hire Me Badge ─── */
.hire-me-badge {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 130px;
    height: 130px;
    z-index: 100;
}

.hire-me-text {
    width: 100%;
    height: 100%;
    animation: rotateBadge 10s linear infinite;
    fill: var(--hire-me-text);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.hire-me-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    text-align: center;
    text-decoration: none;
    line-height: 1.2;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(88, 230, 217, 0.3);
}

.hire-me-center:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(88, 230, 217, 0.5);
}

@keyframes rotateBadge {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ─── About Section ─── */
.about-section {
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.6fr;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
}

.about-label {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 16px;
}

.about-bio p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 16px;
    text-align: justify;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 350px;
    border-radius: var(--radius);
    box-shadow: 0 8px 40px var(--shadow);
    border: 3px solid var(--border);
    transition: transform 0.4s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-end;
    text-align: right;
    padding-top: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--heading-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-top: 4px;
}

/* ─── Skills Section ─── */
.skills-section {
    background: var(--section-alt);
    padding: 80px 0;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: default;
}

.skill-tag:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(88, 230, 217, 0.2);
}

.interests-heading-wrap {
    margin-top: 48px;
}

.interests-heading {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    margin-bottom: 6px;
}

.interests-cloud {
    max-width: 700px;
    gap: 12px;
}

.interest-tag {
    padding: 8px 18px;
    font-size: 0.84rem;
}

/* ─── Projects Section ─── */
.projects-section {
    background: var(--bg-primary);
}

/* Featured Project */
.featured-project {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.featured-project:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
}

.featured-project-img {
    overflow: hidden;
    height: 100%;
}

.featured-project-img img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-project:hover .featured-project-img img {
    transform: scale(1.05);
}

.featured-project-info {
    padding: 40px;
}

.project-type {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 12px;
}

.featured-project-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.featured-project-info h3 a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color var(--transition);
}

.featured-project-info h3 a:hover {
    color: var(--accent);
}

.featured-project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags span {
    padding: 4px 12px;
    background: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-links a {
    color: var(--text-primary);
    transition: all var(--transition);
}

.project-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Project Cards Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow);
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card-img {
    overflow: hidden;
    height: 200px;
}

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

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

.project-card-body {
    padding: 24px;
}

.project-card-body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 8px;
    margin-top: 8px;
}

.project-card-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Staggered animation */
.project-card:nth-child(1).visible { transition-delay: 0s; }
.project-card:nth-child(2).visible { transition-delay: 0.15s; }
.project-card:nth-child(3).visible { transition-delay: 0.3s; }

/* ─── Certificates Section ─── */
.certificates-section {
    background: var(--section-alt);
}

.carousel-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-left: 4px;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.carousel-wrapper {
    overflow: hidden;
    max-width: var(--max-width);
    margin: 0 auto 40px;
}

.carousel-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    width: max-content;
    cursor: grab;
    will-change: transform;
}

.carousel-track:active {
    cursor: grabbing;
}

.certificate-card {
    flex: 0 0 260px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.certificate-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px var(--shadow);
}

.certificate-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.certificate-card .card-img-icon {
    width: 100%;
    height: 160px;
    object-fit: contain;
    padding: 20px;
    background: var(--bg-primary);
}

.certificate-card p {
    padding: 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
}

.certificate-card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* ─── Activities / Experience Section ─── */
.activities-section {
    background: var(--bg-primary);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -34px;
    top: 24px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    z-index: 1;
}

.timeline-content {
    padding-left: 20px;
}

.activity-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    transition: all 0.6s ease;
    opacity: 0;
    transform: translateY(30px);
}

.activity-card.visible,
.fade-in-up.show .activity-card {
    opacity: 1;
    transform: translateY(0);
}

.activity-card.reverse {
    flex-direction: row-reverse;
}

.activity-image {
    flex: 0 0 320px;
    max-width: 320px;
}

.activity-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform var(--transition);
}

.activity-image img:hover {
    transform: scale(1.04);
}

.activity-text {
    flex: 1;
}

.activity-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 12px;
    padding-left: 16px;
    border-left: 3px solid var(--accent);
}

.activity-text p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ─── Contact Section ─── */
.contact-section {
    background: var(--section-alt);
    text-align: center;
    padding: 120px 0;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

/* ─── Footer ─── */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 28px 0;
    text-align: center;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

footer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

footer .heart {
    color: #e74c3c;
    font-size: 1.1em;
}

/* ─── Animation Classes ─── */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Slideshow (kept for compatibility) ─── */
.slideshow-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    background-color: var(--bg-primary);
}

.mySlides {
    display: none;
    position: relative;
    height: 500px;
}

.mySlides.is-current { display: block; opacity: 1; }
.mySlides.is-entering { display: block; opacity: 0; animation: fadeIn 0.6s ease-out forwards; }
.mySlides.is-exiting { display: block; opacity: 1; animation: fadeOut 0.6s ease-out forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.caption-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    z-index: 10;
}

.caption-text h1 { margin: 0 0 10px 0; font-size: 3rem; }
.caption-text p { margin: 0; font-size: 1.2rem; font-weight: 300; }

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    z-index: 10;
}
.next { right: 0; border-radius: 3px 0 0 3px; }
.prev { left: 0; }
.prev:hover, .next:hover { background-color: rgba(0,0,0,0.8); }

.dot-container {
    text-align: center;
    position: absolute;
    bottom: 30px;
    width: 100%;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: inline-block;
    transition: background-color var(--transition);
}

.dot.active, .dot:hover {
    background-color: var(--accent);
}

/* ─── Accessibility ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .hero-word {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .fade-in-up, .fade-in-up.show,
    .project-card, .project-card.visible {
        opacity: 1;
        transform: none;
    }
}

/* ─── Responsive ─── */
@media screen and (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-stats {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 48px;
    }
    .featured-project {
        grid-template-columns: 1fr;
    }
    .featured-project-img img {
        min-height: 250px;
    }
}

@media screen and (max-width: 768px) {
    .topnav {
        padding: 12px 20px;
    }

    .nav-links,
    .nav-socials {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-logo {
        position: static;
        transform: none;
    }

    .topnav {
        justify-content: space-between;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        gap: 40px;
    }

    .hero-image-col {
        flex: 0 0 auto;
        max-width: 300px;
    }

    .hero-text-col {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hire-me-badge {
        width: 100px;
        height: 100px;
        bottom: 16px;
        left: 16px;
    }

    .hire-me-center {
        width: 44px;
        height: 44px;
        font-size: 0.65rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-bio p {
        text-align: center;
    }

    .about-stats {
        flex-direction: row;
        justify-content: center;
        text-align: center;
        gap: 32px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

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

    .certificate-card {
        flex: 0 0 200px;
    }

    .activity-card,
    .activity-card.reverse {
        flex-direction: column;
        text-align: center;
    }

    .activity-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .activity-image img {
        height: 280px;
    }

    .activity-text h3 {
        border-left: none;
        padding-left: 0;
        border-bottom: 3px solid var(--accent);
        padding-bottom: 8px;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 8px;
    }

    .timeline-dot {
        left: -27px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    section {
        padding: 60px 0;
    }
}

@media screen and (max-width: 480px) {
    .certificate-card {
        flex: 0 0 180px;
    }

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

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .contact-section {
        padding: 80px 0;
    }
}

/* ─── Utility Classes ─── */
.text-center { text-align: center; }
.text-justify { text-align: justify; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }