/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f766e;
    --primary-light: #14b8a6;
    --secondary-color: #0d1b2a;
    --accent-color: #f59e0b;
    --text-color: #1e293b;
    --text-light: #94a3b8;
    --light-bg: #f1f5f9;
    --white: #ffffff;
    --gray: #64748b;
    --dark-bg: #0f172a;
    --border-radius: 10px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================
   Navigation
   ============================= */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 20px;
}

.logo a {
    text-decoration: none;
}

.logo-mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-nav:hover {
    background-color: var(--primary-light);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* =============================
   Buttons
   ============================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(14,165,156,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
}

/* =============================
   Sections
   ============================= */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

/* =============================
   Hero Section
   ============================= */
.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1b2838 50%, var(--primary-color) 100%);
    color: var(--white);
    padding: 140px 0 100px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(13, 27, 42, 0.4) 0%,
        rgba(13, 27, 42, 0.7) 40%,
        rgba(13, 27, 42, 0.9) 100%
    );
    pointer-events: none;
}

.hero-bg-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(14,165,156,0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(14,165,156,0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.hero .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.6s ease 0.1s;
    animation-fill-mode: backwards;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.2s;
    animation-fill-mode: backwards;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
    max-width: 650px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.6s ease 0.3s;
    animation-fill-mode: backwards;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.6s ease 0.4s;
    animation-fill-mode: backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-light);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.6s ease 0.5s;
    animation-fill-mode: backwards;
}


/* =============================
   About Section
   ============================= */
.about {
    background-color: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-weight: 600;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-card {
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.highlight-card h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.highlight-card p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =============================
   Skills Section
   ============================= */
.skills {
    background-color: var(--white);
    padding: 80px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.skill-category {
    background: var(--light-bg);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: var(--transition);
}

.skill-category:hover {
    box-shadow: var(--shadow-md);
}

.skill-category-title {
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.skill-bar-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.skill-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
}

.skill-percent {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.skill-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
    transition: width 1.2s ease-out;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 4px 12px;
    background: rgba(15,118,110,0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* =============================
   Experience / Timeline
   ============================= */
.experience {
    background-color: var(--white);
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-light), var(--primary-color));
    top: 0;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border: 3px solid var(--white);
    border-radius: 50%;
    top: 0;
    box-shadow: 0 0 0 4px rgba(15,118,110,0.2);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -8px;
}

.timeline-item.current .timeline-marker {
    background-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(245,158,11,0.3);
    animation: pulse 2s infinite;
}

.timeline-content {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
}

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(15,118,110,0.1);
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.timeline-item:nth-child(even) .timeline-tags {
    justify-content: flex-start;
}

/* =============================
   Certifications Section
   ============================= */
.certifications {
    background-color: var(--light-bg);
    padding: 80px 0;
}

.cert-providers {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-provider {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.provider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.provider-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.cert-count {
    font-size: 0.85rem;
    color: var(--gray);
    background: var(--light-bg);
    padding: 4px 12px;
    border-radius: 20px;
}

.cert-badges {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    background: var(--light-bg);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
}

.cert-badge:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.badge-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.badge-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.section-subtitle a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.section-subtitle a:hover {
    text-decoration: underline;
}

/* =============================
   Contact Section
   ============================= */
.contact {
    background-color: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--light-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact-card-icon {
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,118,110,0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-card h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15,118,110,0.1);
    background: var(--white);
}

.btn-submit {
    align-self: flex-start;
}

/* =============================
   Footer
   ============================= */
.footer {
    background-color: var(--dark-bg);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a,
.social-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover,
.social-links a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* =============================
   Page Hero (sub-pages)
   ============================= */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    margin-top: 70px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1b2838 50%, var(--primary-color) 100%);
    text-align: center;
    color: var(--white);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
}

.page-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.15s;
    animation-fill-mode: backwards;
}

/* =============================
   Gallery
   ============================= */
.gallery {
    padding: 80px 0;
    background: var(--light-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gallery-card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.5);
}

.card-image-placeholder span {
    font-size: 3rem;
}

.card-image-placeholder p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.gallery-card-content {
    padding: 1.5rem;
}

.gallery-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.gallery-card-desc {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.gallery-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.btn-card {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-card:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Active nav link for sub-pages */
.nav-link.active {
    color: var(--primary-light);
}

.nav-link.active::after {
    width: 100%;
}

/* =============================
   Project Detail Page
   ============================= */
.back-link {
    display: inline-block;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--white);
}

.project-detail {
    padding: 60px 0 80px;
}

.project-architecture {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.project-architecture-img {
    width: 100%;
    display: block;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.project-section {
    margin-bottom: 3rem;
}

.project-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

.project-overview p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.project-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.project-features li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.project-features li strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.project-features li p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Tech Stack Grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.tech-group {
    background: var(--white);
    padding: 1.25rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.tech-group-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* How It Works - Flow Steps */
.project-flow {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flow-step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.flow-step:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.flow-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.flow-step strong {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.flow-step p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.project-back {
    text-align: center;
    padding-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Demo Button */
.btn-demo {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    margin-top: 1.5rem;
}

.btn-demo:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.project-back .btn-demo {
    margin-top: 0;
}

/* Project Table */
.project-table-wrapper {
    overflow-x: auto;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.project-table thead {
    background: var(--primary-color);
    color: var(--white);
}

.project-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-table td strong {
    color: var(--text-color);
}

.project-table tbody tr:hover {
    background: #f8fffe;
}

.project-table tbody tr:last-child td {
    border-bottom: none;
}

/* =============================
   Animations
   ============================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(245,158,11,0.3); }
    50% { box-shadow: 0 0 0 8px rgba(245,158,11,0.1); }
}

/* =============================
   Responsive Design
   ============================= */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .contact-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-links, .social-links { align-items: center; }
    .project-info-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .btn-nav {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .cert-badges {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .page-hero-title {
        font-size: 2.2rem;
    }

    .page-hero {
        padding: 120px 0 60px;
    }

    /* Timeline mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 12px;
        right: auto;
    }

    .timeline-tags,
    .timeline-item:nth-child(odd) .timeline-tags {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}
