@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
    --primary-light: #ffffff;
    --secondary-light: #f8fafc;
    --tertiary-light: #f1f5f9;
    --accent-color: #10b981;
    --accent-hover: #059669;
    --accent-light: #34d399;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
    --gradient-1: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-2: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
    --primary-light: #0f0f0f;
    --secondary-light: #1a1a1a;
    --tertiary-light: #252525;
    --accent-color: #10b981;
    --accent-hover: #059669;
    --accent-light: #34d399;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --card-bg: #1e293b;
    --gradient-1: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-2: linear-gradient(135deg, #1e293b 0%, #0f172a 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--primary-light);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--card-bg);
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.theme-toggle .icon {
    width: 18px;
    height: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .sun-icon {
    display: block;
}

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

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

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

.theme-toggle .theme-text {
    font-size: 13px;
    font-weight: 500;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.025em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover {
    color: var(--accent-light);
}

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

.hamburger {
    display: none;
}

/* Hero Section */
.hero {
    background: var(--gradient-2);
    padding: 100px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.profile-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    object-fit: cover;
    object-position: center 35%;
    margin-bottom: 40px;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3), 0 25px 50px -12px rgba(16, 185, 129, 0.25);
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* About Section */
.about {
    padding: 80px 20px;
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
}

.about h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    margin-bottom: 40px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 17px;
    font-weight: 400;
}

/* Skills Section */
.skills {
    padding: 80px 20px;
    background-color: var(--secondary-light);
    border-bottom: 1px solid var(--border-color);
}

.skills h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    margin-bottom: 50px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: var(--tertiary-light);
    color: var(--text-primary);
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.skill-tag:hover {
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.skill-tag:hover::before {
    left: 0;
}

.skill-tag.cert {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    border-color: var(--accent-color);
    color: var(--accent-light);
    font-weight: 600;
}

.skill-tag.learning {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border-color: #3b82f6;
    color: #60a5fa;
    font-weight: 600;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 20px;
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
}

.gallery-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.section-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 16px;
}

.carousel-preview {
    margin-bottom: 30px;
}

.carousel-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto 30px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-container:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.6s ease;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 30px 20px 20px;
    color: white;
}

.carousel-overlay h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    margin: 0;
    color: var(--accent-light);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

.indicator.active {
    background-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(139, 156, 58, 0.5);
}

/* Gallery Modal */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease, background-color 0.4s ease;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
    width: 100%;
    max-width: 1200px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.gallery-modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--accent-light);
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--accent-color);
    transform: scale(1.1) rotate(90deg);
}

.modal-main-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px 30px;
    min-height: 500px;
    background-color: var(--primary-light);
}

.modal-main-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 4px;
    animation: fadeInImage 0.6s ease;
}

/* Blog styles */
.blog-page {
    padding: 60px 20px;
}

.blog-list {
    list-style: none;
    margin-top: 20px;
    display: grid;
    gap: 16px;
    max-width: 800px;
}

.post-item {
    background-color: var(--tertiary-dark);
    padding: 18px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.post-item a {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
}

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

.post-date {
    display: inline-block;
    margin-left: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.post {
    background-color: var(--primary-dark);
    color: var(--text-secondary);
    padding: 30px;
    border-radius: 8px;
}

.post-meta {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-image-title {
    color: var(--accent-light);
    margin-top: 25px;
    font-size: 22px;
    text-align: center;
    font-weight: 500;
    animation: slideInUp 0.5s ease 0.1s backwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-thumbnails {
    display: flex;
    gap: 12px;
    padding: 25px;
    background-color: var(--secondary-light);
    overflow-x: auto;
    justify-content: flex-start;
    align-items: center;
    animation: slideInUp 0.5s ease 0.2s backwards;
}

.thumbnail {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 3px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.thumbnail:hover {
    border-color: var(--accent-color);
    transform: scale(1.12) translateY(-8px);
    box-shadow: 0 8px 20px rgba(139, 156, 58, 0.3);
}

.thumbnail.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(139, 156, 58, 0.6);
    transform: scale(1.08);
}

.gallery-item {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 156, 58, 0.15);
}

.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background-color: var(--tertiary-light);
}

.gallery-item h4 {
    padding: 15px;
    text-align: center;
    color: var(--text-primary);
    font-size: 16px;
}

/* Projects Section */
.projects-section {
    padding: 80px 20px;
    background-color: var(--secondary-light);
    border-bottom: 1px solid var(--border-color);
}

.projects-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    margin-bottom: 50px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: var(--tertiary-light);
}

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

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

.project-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
    flex-grow: 1;
}

.btn-small {
    padding: 10px 20px !important;
    font-size: 14px !important;
    width: 100%;
    text-align: center;
}

.project-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.projects-cta {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 32px;
    background-color: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-cta:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.projects-cta:hover::before {
    opacity: 1;
}

.projects-cta p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 17px;
    line-height: 1.7;
}


.projects-note {
    text-align: center;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    font-size: 14px;
}

/* Bookkeeping Section */
.bookkeeping-section {
    padding: 80px 20px;
    background-color: var(--primary-light);
    border-bottom: 1px solid var(--border-color);
}

.bookkeeping-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    margin-bottom: 50px;
    color: var(--text-primary);
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.bookkeeping-content {
    max-width: 1200px;
    margin: 0 auto;
}

.bookkeeping-intro,
.certifications-showcase,
.learning-path {
    margin-bottom: 40px;
    background-color: var(--card-bg);
    padding: 36px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bookkeeping-intro::before,
.certifications-showcase::before,
.learning-path::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bookkeeping-intro:hover,
.certifications-showcase:hover,
.learning-path:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.bookkeeping-intro:hover::before,
.certifications-showcase:hover::before,
.learning-path:hover::before {
    opacity: 1;
}

.bookkeeping-intro h3,
.certifications-showcase h3,
.learning-path h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.bookkeeping-intro p,
.learning-path p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.transition-points {
    list-style: none;
    margin-left: 0;
}

.transition-points li {
    padding: 12px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.transition-points li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

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

.cert-card {
    background-color: var(--tertiary-light);
    padding: 28px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.cert-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.cert-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background-color: var(--secondary-light);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.contact h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.contact > .container > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 17px;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.contact-note {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

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

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

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

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

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

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

.btn-secondary:hover::after {
    opacity: 1;
}

/* Footer */
.footer {
    background-color: var(--secondary-light);
    padding: 32px 20px;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 24px;
    }

    .hero h1 {
        font-size: 48px;
    }
    
    .tagline {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .nav-controls {
        gap: 12px;
    }
    
    .theme-toggle {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .theme-toggle .icon {
        width: 16px;
        height: 16px;
    }
    
    .theme-toggle .theme-text {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        background: none;
        border: none;
        gap: 6px;
        padding: 0;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(15px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-15px);
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--primary-light);
        flex-direction: column;
        gap: 0;
        display: none;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
    }

    .nav-menu a:hover {
        background-color: var(--tertiary-light);
    }

    .nav-container {
        position: relative;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.2;
    }

    .tagline {
        font-size: 20px;
    }

    .profile-photo {
        width: 200px;
        height: 200px;
        margin-bottom: 30px;
    }

    .skills-grid,
    .gallery-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .modal-content {
        max-width: 100%;
        max-height: 85vh;
    }

    .modal-main-image {
        padding: 30px 15px 15px;
        min-height: 300px;
    }

    .modal-main-image img {
        max-height: 300px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }

    .modal-thumbnails {
        padding: 15px;
        gap: 8px;
    }

    .thumbnail {
        width: 70px;
        height: 70px;
    }

    .contact-links {
        flex-direction: column;
        gap: 16px;
    }

    .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }

    .about-content,
    .about-content p {
        text-align: left;
    }

    .section-intro {
        font-size: 16px;
    }

    .certs-grid {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 20px !important;
    }
    
    h2 {
        font-size: 32px !important;
        margin-bottom: 32px !important;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .tagline {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .subtitle {
        font-size: 16px;
    }

    .profile-photo {
        width: 160px;
        height: 160px;
        margin-bottom: 24px;
    }

    section {
        padding: 50px 15px !important;
    }

    .container {
        padding: 0 15px;
    }

    h2 {
        font-size: 28px !important;
        margin-bottom: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    .skill-category,
    .gallery-item,
    .project-card,
    .cert-card,
    .bookkeeping-intro,
    .certifications-showcase,
    .learning-path {
        padding: 24px !important;
    }

    .gallery-grid {
        gap: 16px;
    }

    .project-image {
        height: 180px;
    }

    .project-info {
        padding: 20px !important;
    }

    .project-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .project-card p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .skill-tag {
        font-size: 13px;
        padding: 8px 14px;
    }

    .transition-points li {
        padding: 12px 0;
        padding-left: 20px;
        font-size: 14px;
    }

    .projects-cta {
        padding: 32px 20px !important;
    }

    .projects-cta p {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .contact-links {
        gap: 12px;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}
