/* ==================== CSS RESET & BASE STYLES ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Refined Dark Color Palette */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: #242430;
    --accent-primary: #2563eb;
    --accent-secondary: #60a5fa;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    /* Typography */
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Jost', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-mono: 'Inconsolata', monospace;
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 2rem;
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
}

main {
    width: 100%;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* ==================== UTILITY CLASSES ==================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    gap: 0.5rem;
}

.btn i {
    width: 18px;
    height: 18px;
}

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

.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

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

.btn-large {
    padding: 1rem 2rem;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-primary);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    transition: var(--transition);
}

.scroll-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00f2fe 0%, #a155ff 100%);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    transition: width 0.1s ease-out;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00f2fe;
    transition: var(--transition);
}

.nav-logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-secondary);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.3));
    letter-spacing: -1px;
    transition: var(--transition);
}

.nav-logo:hover .logo-text {
    filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.6));
    transform: scale(1.05);
}

.logo-bracket {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.mobile-cv {
    display: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    position: relative;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe 0%, #a155ff 100%);
    transition: var(--transition);
}

.nav-link:hover {
    color: #fff;
}

@media (hover: hover) {
    .nav-link:hover::after {
        width: 100%;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f4f4f5;
    --bg-tertiary: #e4e4e7;
    --bg-card: #ffffff;
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    --border-color: #e4e4e7;
}

[data-theme="light"] .navbar {
    background: var(--bg-primary);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: var(--bg-primary);
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-greeting {
    color: var(--accent-primary);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: block;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero-role {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.role-highlight {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-tagline {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-placeholder {
    width: 280px;
    height: 280px;
    position: relative;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent-primary);
    box-shadow: var(--shadow-lg);
}

.hero-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0.2;
    pointer-events: none;
}

.decoration-1 {
    width: min(320px, 90vw);
    height: min(320px, 90vw);
}

.decoration-2 {
    width: min(360px, 95vw);
    height: min(360px, 95vw);
    opacity: 0.1;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image-placeholder {
    width: min(400px, 100%);
    height: auto;
    aspect-ratio: 1/1;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    overflow: visible;
    perspective: 1000px;
}

.about-image-placeholder:hover model-viewer {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

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

.about-card {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

.about-card-icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: 0.5rem;
}

.about-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.about-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.about-description {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

/* ==================== SKILLS SECTION ==================== */
.skills {
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.skill-category-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-icon {
    font-size: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.project-image {
    position: relative;
    height: 160px;
    background: var(--bg-primary);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.project-link {
    background: white;
    color: var(--accent-primary);
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.project-content {
    padding: 1.25rem;
}

.project-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    background: white;
}

.project-btn {
    display: inline-flex;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.project-tech span {
    background: var(--bg-primary);
    color: var(--accent-secondary);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* ==================== TIMELINE (Education & Experience) ==================== */
.education {
    background: var(--bg-secondary);
}

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

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

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

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -1.5rem;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-left: 1rem;
}

.education .timeline-content {
    background: var(--bg-secondary);
}

.experience .timeline-content {
    background: var(--bg-card);
}

.timeline-content:hover {
    border-color: var(--accent-primary);
}

.timeline-date {
    display: inline-block;
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--accent-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.timeline-content ul {
    color: var(--text-secondary);
    padding-left: 1.25rem;
    font-size: 0.9rem;
}

.timeline-content ul li {
    margin-bottom: 0.4rem;
    list-style: disc;
}

.timeline-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.timeline-highlights span {
    background: var(--bg-primary);
    color: var(--accent-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* ==================== CERTIFICATIONS SECTION ==================== */
.certifications {
    background: var(--bg-primary);
    position: relative;
    z-index: 1;
}

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

.certification-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.certification-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.04);
}

.certification-card:hover::before {
    opacity: 1;
}

.certification-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.certification-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.certification-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.certification-card p::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* ==================== HOBBIES SECTION ==================== */
.hobbies {
    background: var(--bg-secondary);
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.hobby-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.hobby-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

.hobby-icon {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.hobby-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.hobby-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.hobby-skill {
    display: block;
    margin-top: 0.5rem;
    color: var(--accent-secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

/* ==================== CONTACT SECTION ==================== */
.contact {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-secondary);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-align: left;
}

.contact-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.message-box {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.message-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.message-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-secondary);
    padding: 1.5rem 0;
}

.footer-bottom {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-tagline {
        margin: 0 auto 2rem;
    }

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

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hobbies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem 0;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-150%);
        width: 90%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: var(--transition);
        border: 1px solid var(--border-color);
        border-radius: 24px;
        text-align: center;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        transform: translateX(-50%) translateY(0);
        display: flex;
    }

    .mobile-cv {
        display: block;
        margin-top: 0.5rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
        width: 100%;
    }

    .mobile-cv i {
        width: 18px;
        height: 18px;
    }

    .hamburger {
        display: flex;
    }

    .nav-actions .btn {
        display: none;
    }

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

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

    .about-cards {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .footer-links {
        justify-content: center;
    }

    .hero-image-placeholder {
        width: min(200px, 80vw);
        height: min(200px, 80vw);
        font-size: 4rem;
    }

    .hobbies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

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

    .about-cards,
    .hobbies-grid {
        grid-template-columns: 1fr;
    }

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

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 0 1rem;
    }
}

/* ==================== GALLERY PAGES ==================== */
.gallery-section {
    padding: 160px 0 60px;
}

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

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: auto;
    cursor: pointer;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-info {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-info {
    opacity: 1;
}

.gallery-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.gallery-tag {
    color: var(--accent-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.back-btn:hover {
    color: var(--accent-primary);
    transform: translateX(-5px);
}

.gallery-header {
    margin-bottom: 3rem;
}

.gallery-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-style: italic;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.instagram-link:hover {
    filter: brightness(1.2);
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-section {
        padding: 140px 0 60px;
    }
}