/* Fonts are loaded in index.php head for parallel download and preconnection */

/* Size-adjusted fallback to match Cormorant Garamond metrics (minimizes CLS on swap) */
@font-face {
    font-family: 'Cormorant Fallback';
    src: local('Georgia');
    size-adjust: 105%;
    ascent-override: 95%;
    descent-override: 22%;
    line-gap-override: 0%;
}

/* Size-adjusted fallback to match Inter metrics (minimizes CLS on swap) */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 22%;
    line-gap-override: 0%;
}

:root {
    --background: #111111;
    --primary: #181818;
    --primary-foreground: #f3f4f6;
    --secondary: #161616;
    --secondary-foreground: #e5e7eb;
    --accent: #d97706; /* Bronze / Warm Gold accent like IKURA logo */
    --accent-rgb: 217, 119, 6;
    --accent-red: #991b1b; /* Cinnabar / Crimson Red (traditional seal stamp) */
    --accent-red-rgb: 153, 27, 27;
    --accent-foreground: #ffffff;
    --muted: #525252;
    --muted-foreground: #a3a3a3;
    --border: rgba(217, 119, 6, 0.15); /* Thin bronze border */
    --radius: 0px; /* Sharp corners for editorial layout */
    --foreground: #f5f5f5;
    --success: #10b981;
    --font-serif: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
    --font-sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background: var(--background);
    color: var(--foreground);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    counter-reset: section;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--background);
}
::-webkit-scrollbar-thumb {
    background: #262626;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    z-index: 1001;
    transition: width 0.1s ease;
    box-shadow: 0 0 8px rgba(217, 119, 6, 0.4);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled {
    background: rgba(17, 17, 17, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.scrolled .nav {
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
}

/* Vertical logo frame like the IKURA box */
.logo::before {
    content: 'MG';
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.1rem 0.5rem;
    margin-right: -0.25rem;
    display: inline-block;
    font-weight: 600;
}

.verified-badge {
    color: var(--accent-red);
    font-size: 0.95rem;
    margin-left: 0.25rem;
    filter: drop-shadow(0 0 5px rgba(var(--accent-red-rgb), 0.4));
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--background);
    overflow: hidden;
    padding-top: 80px;
}

/* Subtle radial ambient light */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.03) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(217, 119, 6, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(217, 119, 6, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 650px;
}

/* Hero badge with thin vertical frame look */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.35rem 1rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    background: rgba(217, 119, 6, 0.02);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 8vw, 4.25rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 3.5vw, 1.4rem);
    font-style: italic;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 400;
    position: relative;
}

.hero-subtitle-sizer {
    visibility: hidden;
    display: block;
    pointer-events: none;
    user-select: none;
}

.hero-subtitle-typed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 300;
}

.hero-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-location i {
    color: var(--accent);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Buttons with editorial sharp look like IKURA */
.btn {
    padding: 0.9rem 2rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
}

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

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

/* Architectural, sharp picture frame */
.hero-image img {
    width: 320px;
    height: 380px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transition: all 0.5s ease;
}

/* Decorative thin orange background frame */
.hero-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 320px;
    height: 380px;
    border: 1px solid var(--accent);
    z-index: -1;
    transition: all 0.5s ease;
}

.hero-image:hover img {
    transform: translate(-10px, -10px);
}

.hero-image:hover::after {
    transform: translate(10px, 10px);
}

/* Red Stamp/Seal of Authenticity (Hanko style) */
.hero-seal {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 3px double var(--accent-red);
    color: var(--accent-red);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transform: rotate(-10deg);
    letter-spacing: 0.05em;
    user-select: none;
    line-height: 1;
    z-index: 5;
    box-shadow: 0 0 15px rgba(var(--accent-red-rgb), 0.15);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image:hover .hero-seal {
    transform: translate(-10px, -10px) rotate(-15deg) scale(1.05);
    box-shadow: 0 0 25px rgba(var(--accent-red-rgb), 0.35);
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--border);
    margin-top: 5rem;
    border: 1px solid var(--border);
}

.stat-card {
    background: var(--background);
    padding: 2.25rem 1.5rem;
    text-align: center;
    transition: background 0.3s ease;
}

.stat-card:hover {
    background: rgba(217, 119, 6, 0.02);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
}

/* Sections */
.section {
    padding: 8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

/* Luxury section header decoration */
.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    color: var(--accent);
    position: relative;
}

/* Thin vertical line in section titles like restaurant indicators */
.section-title::before {
    counter-increment: section;
    content: "0" counter(section) ". ";
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 300;
    font-family: var(--font-serif);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: var(--accent-red);
    margin: 1.5rem auto 0 auto;
}

.section-subtitle {
    text-align: center;
    color: var(--muted-foreground);
    margin-bottom: 5rem;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-serif);
    font-style: italic;
    line-height: 1.7;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    border-left: 1px solid var(--accent);
    padding-left: 2.5rem;
    position: relative;
}

.about-text {
    font-size: 1.05rem;
    color: var(--muted-foreground);
    line-height: 1.9;
    margin-bottom: 1.75rem;
    font-weight: 300;
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--border);
}

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

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

.timeline-content {
    background: var(--secondary);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 32px;
    width: 7px;
    height: 7px;
    background: var(--accent-red);
    transform: rotate(45deg);
}

.timeline-content:hover {
    border-color: var(--accent-red);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.timeline-badge {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: rgba(217, 119, 6, 0.08);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.timeline-role {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-company {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-years {
    color: var(--muted-foreground);
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.timeline-description {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 300;
}

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

.skill-category {
    background: var(--secondary);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.skill-category h3 {
    font-family: var(--font-serif);
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

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

.skill-tag {
    background: var(--background);
    color: var(--muted-foreground);
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

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

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: linear-gradient(var(--secondary), var(--secondary)) padding-box,
                linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(217, 119, 6, 0.02)) border-box;
    border: 1px solid transparent;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    background: linear-gradient(var(--secondary), var(--secondary)) padding-box,
                linear-gradient(135deg, var(--accent-red), var(--accent)) border-box;
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.project-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 2;
}

.project-content {
    padding: 2.5rem;
}

.project-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-description {
    color: var(--muted-foreground);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
    line-height: 1.75;
    font-weight: 300;
}

.project-features {
    list-style: none;
    margin-bottom: 1.75rem;
}

.project-features li {
    color: var(--muted-foreground);
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 300;
}

.project-features li::before {
    content: '▫';
    color: var(--accent);
    font-weight: bold;
}

.project-tag {
    display: inline-block;
    background: var(--background);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.service-card {
    background: linear-gradient(var(--secondary), var(--secondary)) padding-box,
                linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(217, 119, 6, 0.02)) border-box;
    border: 1px solid transparent;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: linear-gradient(var(--secondary), var(--secondary)) padding-box,
                linear-gradient(135deg, var(--accent-red), var(--accent)) border-box;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    font-size: 2.25rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.service-description {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial-card {
    background: var(--secondary);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}

.testimonial-card:hover {
    border-color: var(--accent);
}

.testimonial-quote {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    font-weight: 300;
    line-height: 1;
}

.testimonial-text {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 1.5rem;
}

.author-image {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: #262626;
    border: 1px solid var(--border);
}

.author-info h4 {
    color: #ffffff;
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.author-info p {
    color: var(--muted-foreground);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* GitHub Stats */
.github-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.github-stat {
    background: var(--secondary);
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    transition: all 0.3s ease;
}

.github-stat:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.github-stat i {
    font-size: 2.25rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.github-stat h3 {
    font-family: var(--font-serif);
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.github-stat p {
    color: var(--muted-foreground);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Contact */
.contact-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    color: var(--muted-foreground);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
}

/* Live Badge for Resources */
.badge-live {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

/* Footer Link Icons Spacing */
.footer-links a i {
    margin-right: 0.5rem;
    width: 16px;
    text-align: center;
    color: var(--accent);
    transition: color 0.2s ease;
}

/* Footer */
.footer {
    background: #0d0d0d;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column h3 {
    font-family: var(--font-serif);
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--muted-foreground);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Scroll reveal class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

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

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

    .hero-image {
        order: -1;
    }

    .hero-image img, .hero-image::after {
        width: 280px;
        height: 332.5px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav {
        padding: 1rem 0;
    }

    .header.scrolled .nav {
        padding: 0.75rem 0;
    }

    .logo {
        font-size: 1.25rem;
        letter-spacing: 0.1em;
        gap: 0.6rem;
    }

    .logo::before {
        font-size: 0.95rem;
        padding: 0.05rem 0.4rem;
        margin-right: -0.2rem;
    }

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

    .mobile-menu-btn:hover {
        color: var(--accent);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(217, 119, 6, 0.15);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
        gap: 1.5rem;
    }

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

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

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

    .timeline-content::before {
        left: 7px;
    }

    .timeline-badge {
        position: static;
        margin-top: 0.5rem;
        display: inline-block;
    }

    .about-content {
        padding-left: 1.5rem;
    }
}

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

    .logo {
        font-size: 1.1rem;
        letter-spacing: 0.08em;
        gap: 0.5rem;
    }

    .logo::before {
        font-size: 0.85rem;
        padding: 0.02rem 0.3rem;
    }
}

/* Animation class delays (Grid items) */
.projects-grid .reveal:nth-child(1) { transition-delay: 0.1s; }
.projects-grid .reveal:nth-child(2) { transition-delay: 0.2s; }
.projects-grid .reveal:nth-child(3) { transition-delay: 0.3s; }
.projects-grid .reveal:nth-child(4) { transition-delay: 0.4s; }

.services-grid .reveal:nth-child(1) { transition-delay: 0.05s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.15s; }
.services-grid .reveal:nth-child(4) { transition-delay: 0.2s; }
.services-grid .reveal:nth-child(5) { transition-delay: 0.25s; }
.services-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

/* Typewriter cursor effect to prevent Cumulative Layout Shift (CLS) */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--accent);
    margin-left: 2px;
    vertical-align: middle;
    animation: typewriter-blink 0.8s step-end infinite;
}

@keyframes typewriter-blink {
    from, to { background-color: transparent }
    50% { background-color: var(--accent) }
}

/* Lucide Icons Custom Styling for thin, elegant lines */
svg.lucide {
    width: 20px;
    height: 20px;
    stroke-width: 1.5; /* soft, thin lines */
    vertical-align: middle;
    display: inline-block;
}

.hero-badge svg.lucide {
    width: 16px;
    height: 16px;
    color: var(--accent);
    margin-right: 0.25rem;
}

.hero-location svg.lucide {
    color: var(--accent);
    width: 18px;
    height: 18px;
}

.btn svg.lucide {
    width: 16px;
    height: 16px;
}

.github-stat svg.lucide {
    width: 36px;
    height: 36px;
    stroke-width: 1.2;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.service-icon svg.lucide {
    width: 36px;
    height: 36px;
    stroke-width: 1.2;
    color: var(--accent);
}

.footer-links a svg.lucide {
    width: 14px;
    height: 14px;
    margin-right: 0.5rem;
    color: var(--accent);
}