/* ==========================================
   CSS VARIABLES & THEMING
   ========================================== */
:root {
    --color-primary: #81d742;
    --color-primary-dark: #6bc22f;
    --color-primary-light: rgba(129, 215, 66, 0.15);
    --color-text: #262628;
    --color-text-light: #555;
    --color-text-muted: #666;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-card: #ffffff;
    --color-border: #e0e0e0;
    --color-header-bg: rgba(255, 255, 255, 0.95);
    --color-footer-bg: #262628;
    --color-footer-text: #ffffff;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-shadow-hover: rgba(0, 0, 0, 0.2);
    --gradient-hero: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --gradient-cta: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --transition: 0.3s ease;
}

[data-theme="dark"] {
    --color-text: #e4e4e7;
    --color-text-light: #a1a1aa;
    --color-text-muted: #8b8b97;
    --color-bg: #18181b;
    --color-bg-alt: #1e1e23;
    --color-bg-card: #27272a;
    --color-border: #3f3f46;
    --color-header-bg: rgba(24, 24, 27, 0.95);
    --color-footer-bg: #0f0f12;
    --color-shadow: rgba(0, 0, 0, 0.3);
    --color-shadow-hover: rgba(0, 0, 0, 0.5);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* ==========================================
   RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 25px;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

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

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--color-primary);
    color: white;
}

/* ==========================================
   SKIP TO CONTENT (Accessibility)
   ========================================== */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* ==========================================
   PRELOADER
   ========================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   HEADER
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all var(--transition);
}

.header-scrolled {
    padding: 4px 0;
    box-shadow: 0 4px 20px var(--color-shadow);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 120px;
    width: auto;
    object-fit: contain;
    margin: -30px 0;
}

[data-theme="dark"] .logo img {
    filter: brightness(1.5);
}

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

.nav-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Search Toggle */
.search-toggle {
    background: none;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--color-text);
}

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

/* Search Overlay */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 20px 0;
    box-shadow: 0 10px 30px var(--color-shadow);
    border-top: 1px solid var(--color-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
    background: var(--color-bg-alt);
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition);
}

.search-input:focus {
    border-color: var(--color-primary);
}

.search-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 5px 10px;
    transition: color var(--transition);
}

.search-close:hover {
    color: var(--color-text);
}

.search-results {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: block;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text);
    transition: background var(--transition);
}

.search-result-item:hover {
    background: var(--color-bg-alt);
}

.search-result-item strong {
    display: block;
    color: var(--color-primary);
    margin-bottom: 3px;
}

.search-result-item span {
    font-size: 13px;
    color: var(--color-text-muted);
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--color-text-muted);
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 18px;
}

.dark-mode-toggle:hover {
    border-color: var(--color-primary);
    transform: rotate(20deg);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger .bar {
    width: 28px;
    height: 3px;
    background: var(--color-text);
    border-radius: 3px;
    transition: all 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);
}

/* ==========================================
   RESUME MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--color-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: color var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-body {
    padding: 30px;
}

.resume-section {
    margin-bottom: 25px;
}

.resume-section h4 {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-primary-light);
}

.resume-section p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 14px;
}

.resume-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resume-skills span {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

[data-theme="dark"] .resume-skills span {
    color: var(--color-primary);
}

.resume-entry {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid var(--color-primary);
}

.resume-entry strong {
    display: block;
    color: var(--color-text);
    font-size: 15px;
}

.resume-entry span {
    font-size: 13px;
    color: var(--color-primary);
    font-weight: 600;
}

.resume-entry p {
    margin-top: 5px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.067em;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.2em;
    margin-bottom: 15px;
}

.hero-content h6 {
    font-size: 1.6em;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2em;
    margin-bottom: 20px;
    color: var(--color-primary);
    min-height: 1.5em;
}

/* Typewriter cursor */
.typewriter::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: var(--color-primary);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-content p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--color-text-light);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.btn-hero {
    background: var(--color-primary) !important;
    color: white !important;
}

.btn-hero:hover {
    background: var(--color-primary-dark) !important;
    box-shadow: 0 10px 30px rgba(129, 215, 66, 0.4) !important;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--color-text);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid var(--color-border);
    transition: all var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    transition: all var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
    background: var(--color-primary-dark);
    box-shadow: 0 5px 15px rgba(129, 215, 66, 0.4);
}

.social-links a svg {
    fill: currentColor;
}

/* Hero Image / Profile Card */
.hero-image {
    position: relative;
}

.profile-card {
    background: var(--color-bg-card);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px var(--color-shadow);
    text-align: center;
    transition: transform var(--transition);
}

.profile-card:hover {
    transform: scale(1.05);
}

.profile-card img {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.profile-card h6 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.profile-card span {
    color: var(--color-primary);
    font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 28px; opacity: 0.3; }
}

/* ==========================================
   STATS SECTION
   ========================================== */
.stats-section {
    padding: 60px 0;
    background: var(--color-primary);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3.5em;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* ==========================================
   CLIENT LOGOS MARQUEE
   ========================================== */
.clients-section {
    padding: 52px 0 40px;
    background: var(--color-bg-alt);
    overflow: hidden;
}

.clients-intro {
    margin-bottom: 24px;
}

.clients-eyebrow {
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.clients-intro h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--color-text);
}

.clients-intro p:last-child {
    margin: 0;
    max-width: 720px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.marquee-wrapper {
    overflow: hidden;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-bg-alt), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-bg-alt), transparent);
}

.marquee-track {
    display: flex;
    gap: 50px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.client-logo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-width: 280px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    opacity: 0.92;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.client-logo-item:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.client-logo-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.client-logo-copy strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    color: var(--color-text);
}

.client-logo-copy span {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ==========================================
   SECTION HEADER
   ========================================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-header h1,
.section-header h2 {
    font-size: 3.5em;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.2em;
    margin-bottom: 15px;
    color: var(--color-text);
}

.section-header p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2.4em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.about-text > p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--color-text-light);
}

/* ==========================================
   SKILL PROFICIENCY BARS
   ========================================== */
.skill-bars {
    margin: 40px 0;
}

.skill-bars h4 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-text);
}

.skill-bars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-bar-item {
    padding: 5px 0;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-bar-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

.skill-bar-percent {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-primary);
}

.skill-bar-track {
    width: 100%;
    height: 10px;
    background: var(--color-bg-alt);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-bar-fill.animated {
    /* Width set dynamically by JS based on data-level */
}

/* Skills Grid (existing) */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-category {
    background: var(--color-bg-alt);
    padding: 30px;
    border-radius: 15px;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--color-shadow);
    border-color: var(--color-primary-light);
}

.skill-category h4 {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--color-text-light);
}

.skill-category li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* ==========================================
   CAREER TIMELINE
   ========================================== */
.timeline-section {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

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

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    border: 4px solid var(--color-bg-alt);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.left .timeline-dot {
    right: -9px;
}

.timeline-item.right .timeline-dot {
    left: -9px;
}

.timeline-card {
    background: var(--color-bg-card);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--color-shadow);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--color-shadow-hover);
    border-color: var(--color-primary-light);
}

.timeline-year {
    display: inline-block;
    background: var(--color-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-card h4 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.timeline-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ==========================================
   CERTIFICATIONS SECTION
   ========================================== */
.certifications-section {
    padding: 80px 0;
    background: var(--color-bg);
}

.certifications-track-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.certifications-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
    flex: 1;
}

.certifications-track::-webkit-scrollbar {
    display: none;
}

.cert-card {
    flex: 0 0 220px;
    background: var(--color-bg-card);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--color-shadow);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--color-shadow-hover);
    border-color: var(--color-primary-light);
}

.cert-badge {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.cert-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.4;
}

.cert-issuer {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.cert-year {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 3px 12px;
    border-radius: 20px;
}

.cert-nav {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: var(--color-text);
    transition: all var(--transition);
    flex-shrink: 0;
}

.cert-nav:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-section {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-box {
    background: var(--color-bg-card);
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-box:hover::before {
    transform: scaleX(1);
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--color-shadow-hover);
    border-color: var(--color-primary-light);
}

.service-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
}

.service-box h4 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.3px;
    color: var(--color-text);
}

.service-box p {
    color: var(--color-text-light);
    line-height: 1.7;
}

.service-box ul {
    list-style: none;
    padding: 0;
}

.service-box li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.7;
    color: var(--color-text-light);
}

.service-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 18px;
}

.service-box strong {
    color: var(--color-text);
}

/* ==========================================
   PROJECTS SECTION
   ========================================== */
.projects-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--color-bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--color-shadow);
    transition: all var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--color-shadow-hover);
}

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.project-overlay-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    transform: translateY(10px);
    transition: transform var(--transition);
}

.project-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 18px;
    border: 2px solid white;
    border-radius: 30px;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.project-action-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.project-action-btn svg {
    flex-shrink: 0;
}

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

.project-card:hover .project-overlay-actions {
    transform: translateY(0);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}

.project-content p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.project-tags span {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

[data-theme="dark"] .project-tags span {
    background: rgba(129, 215, 66, 0.15);
    color: var(--color-primary);
}

/* ==========================================
   GITHUB CTA
   ========================================== */
.github-cta {
    text-align: center;
    margin-top: 60px;
    padding: 50px;
    background: var(--gradient-cta);
    border-radius: 20px;
    color: white;
}

.github-cta h3 {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.github-cta p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #667eea;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   BLOG SECTION
   ========================================== */
.blog-section {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.blog-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 32px;
    margin-top: 40px;
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(12, 17, 29, 0.96), rgba(18, 95, 117, 0.92));
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    color: #f8fafc;
    align-items: center;
}

.blog-featured-image {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    min-height: 100%;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-featured:hover .blog-featured-image img {
    transform: scale(1.03);
}

.blog-featured-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.blog-featured-label {
    display: inline-flex;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.12);
    border: 1px solid rgba(248, 250, 252, 0.18);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-featured .blog-meta {
    margin-bottom: 0;
    color: rgba(226, 232, 240, 0.82);
    flex-wrap: wrap;
}

.blog-featured-content h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.blog-featured-content h2 a {
    color: #f8fafc;
    text-decoration: none;
    transition: color var(--transition);
}

.blog-featured-content h2 a:hover {
    color: #bfdbfe;
}

.blog-featured-content p {
    margin: 0;
    color: rgba(226, 232, 240, 0.88);
    font-size: 16px;
    line-height: 1.8;
}

.blog-featured .btn-outline {
    border-color: rgba(248, 250, 252, 0.34);
    color: #f8fafc;
}

.blog-featured .btn-outline:hover {
    background: #f8fafc;
    color: #0f172a;
}

.blog-layout-divider {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin: 48px 0 20px;
    padding-top: 8px;
    border-top: 1px solid var(--color-border);
}

.blog-layout-divider h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2vw, 2rem);
    color: var(--color-text);
}

.blog-layout-divider p {
    margin: 0;
    max-width: 560px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--color-bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--color-shadow);
    transition: all var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--color-shadow-hover);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-primary);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.blog-card-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--color-text-muted);
}

.blog-card-content h3 {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition);
}

.blog-card-content h3 a:hover {
    color: var(--color-primary);
}

.blog-card-content p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.blog-read-more {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: color var(--transition);
}

.blog-read-more:hover {
    color: var(--color-primary-dark);
}

.blog-cta {
    text-align: center;
    margin-top: 50px;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: var(--color-bg-card);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--color-shadow-hover);
    border-color: var(--color-primary-light);
}

.testimonial-tag {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.8;
    font-size: 15px;
}

.testimonial-result {
    margin-bottom: 18px;
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.testimonial-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition);
}

.testimonial-link:hover {
    color: var(--color-primary-dark);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    color: var(--color-text);
    font-size: 16px;
    margin-bottom: 3px;
}

.testimonial-author span {
    color: var(--color-primary);
    font-size: 14px;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-item:hover {
    border-color: var(--color-primary-light);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: var(--color-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 25px 20px;
    color: var(--color-text-light);
    line-height: 1.8;
    font-size: 15px;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2.5em;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: 15px;
}

.contact-item h4 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: var(--color-text);
}

.contact-item a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-item a:hover {
    color: var(--color-primary-dark);
}

.social-links-contact {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links-contact a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.social-links-contact a:hover {
    color: var(--color-primary-dark);
}

/* Contact Form */
.contact-form {
    background: var(--color-bg-alt);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color var(--transition), background var(--transition);
    background: var(--color-bg);
    color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary,
.contact-form .btn-submit {
    width: 100%;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-form .btn-primary:hover,
.contact-form .btn-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(129, 215, 66, 0.4);
}

/* Form Alerts */
.form-alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.form-success {
    background: rgba(129, 215, 66, 0.15);
    border: 1px solid var(--color-primary);
    color: var(--color-primary-dark);
}

.form-error {
    background: rgba(245, 87, 108, 0.15);
    border: 1px solid #f5576c;
    color: #f5576c;
}

/* ==========================================
   NEWSLETTER SECTION
   ========================================== */
.newsletter-section {
    padding: 60px 0;
    background: var(--gradient-cta);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.newsletter-text h3 {
    font-size: 2em;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.newsletter-text p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 15px;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
}

.newsletter-input-group input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input-group input:focus {
    border-color: white;
}

.newsletter-btn {
    background: white;
    color: #667eea;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.newsletter-disclaimer {
    margin-top: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    margin-top: 15px;
    opacity: 0.7;
    line-height: 1.8;
    font-size: 14px;
}

.footer-logo {
    height: 120px;
    width: auto;
    filter: brightness(2);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 14px;
}

.footer-tagline {
    opacity: 0.5 !important;
    font-size: 13px !important;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(129, 215, 66, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(129, 215, 66, 0.5);
}

/* ==========================================
   SCROLL REVEAL ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Staggered animations for grid items */
.skills-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.skills-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.skills-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.services-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.projects-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.projects-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.projects-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
.projects-grid .reveal:nth-child(5) { transition-delay: 0.4s; }
.projects-grid .reveal:nth-child(6) { transition-delay: 0.5s; }

.testimonials-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.testimonials-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.stats-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.stats-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.blog-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.blog-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

.timeline .reveal:nth-child(2) { transition-delay: 0.15s; }
.timeline .reveal:nth-child(3) { transition-delay: 0.3s; }
.timeline .reveal:nth-child(4) { transition-delay: 0.45s; }
.timeline .reveal:nth-child(5) { transition-delay: 0.6s; }
.timeline .reveal:nth-child(6) { transition-delay: 0.75s; }

/* ==========================================
   BLOG PAGE STYLES
   ========================================== */
.blog-page-section {
    padding: 120px 0 80px;
    background: var(--color-bg);
    min-height: 100vh;
}

.blog-post-full {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 20px;
}

.blog-post-full h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--color-text);
}

.blog-post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.blog-post-body {
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text-light);
}

.blog-post-body h2 {
    font-size: 1.8em;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--color-text);
}

.blog-post-body h3 {
    font-size: 1.4em;
    font-weight: 700;
    margin: 25px 0 12px;
    color: var(--color-text);
}

.blog-post-body p {
    margin-bottom: 20px;
}

.blog-post-body ol,
.blog-post-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

.blog-post-body li {
    margin-bottom: 8px;
}

.blog-post-body strong {
    color: var(--color-text);
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 30px;
    transition: color var(--transition);
}

.blog-back-link:hover {
    color: var(--color-primary-dark);
}

.blog-post-featured-image {
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    max-height: 400px;
}

.blog-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--color-border);
}

.blog-share span {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-muted);
}

.share-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid var(--color-border);
}

.share-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* ==========================================
   CASE STUDY / PROJECT DETAIL
   ========================================== */
.case-study-hero {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    height: 300px;
}

.case-study-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-study-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 40px 30px 30px;
    color: white;
    text-align: center;
}

.case-study-hero-overlay h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 0;
    color: white;
}

.case-study-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background: var(--color-bg-alt);
    border-radius: 15px;
    border: 1px solid var(--color-border);
    text-align: center;
}

.case-stat-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

.case-stat strong {
    font-size: 1.1em;
    color: var(--color-primary);
}

.case-study-section {
    margin-bottom: 35px;
}

.case-study-section h2 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-text);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary-light);
}

.case-study-section p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--color-text-light);
}

.case-study-results {
    display: grid;
    gap: 15px;
}

.result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 20px;
    background: var(--color-bg-alt);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.result-item:hover {
    border-color: var(--color-primary-light);
    transform: translateX(5px);
}

.result-check {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.result-item span:last-child {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-light);
    padding-top: 3px;
}

.case-study-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition);
}

[data-theme="dark"] .tech-badge {
    color: var(--color-primary);
}

.tech-badge:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

.case-study-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    margin-top: 40px;
}

/* Related Projects */
.related-projects {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.related-projects h3 {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-text);
}

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

.related-project-card {
    border-radius: 15px;
    overflow: hidden;
    background: var(--color-bg-card);
    box-shadow: 0 5px 15px var(--color-shadow);
    text-decoration: none;
    transition: all var(--transition);
}

.related-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--color-shadow-hover);
}

.related-project-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.related-project-info {
    padding: 15px;
}

.related-project-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 5px;
}

.related-project-info span {
    font-size: 13px;
    color: var(--color-text-muted);
}

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

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

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

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

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

    .timeline-item {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 20px !important;
        text-align: left !important;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-line {
        left: 20px;
        transform: none;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 11px;
        right: auto;
    }

    .skill-bars-grid {
        grid-template-columns: 1fr;
    }

    .case-study-hero {
        height: 220px;
    }

    .case-study-hero-overlay h1 {
        font-size: 1.6em;
    }

    .case-study-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 2.5em;
    }

    .services-grid,
    .projects-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-featured {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .blog-featured-image img {
        min-height: 240px;
    }

    .blog-layout-divider {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 86%;
        max-width: 350px;
        height: 100vh;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        padding: 80px 30px 30px;
        box-shadow: -10px 0 30px var(--color-shadow);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

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

    .nav-menu a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
        font-weight: 600;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a.active {
        color: var(--color-primary);
    }

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

    .github-cta {
        padding: 30px 20px;
    }

    .github-cta h3 {
        font-size: 1.8em;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 2.5em;
    }

    .scroll-indicator {
        display: none;
    }

    .contact-form {
        padding: 25px;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .search-toggle {
        width: 36px;
        height: 36px;
    }

    .cert-nav {
        display: none;
    }

    .case-study-actions {
        flex-direction: column;
        align-items: center;
    }

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

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

    .hero-content h1 {
        font-size: 2em;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 2em;
    }

    .stat-number {
        font-size: 2em;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .stat-item {
        padding: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-outline,
    .btn-hero {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .blog-post-full h1 {
        font-size: 1.8em;
    }

    .contact-form {
        padding: 20px;
    }
}

/* ==========================================
   UTILITY & MISC
   ========================================== */

/* Prevent layout shift from scrollbar */
html {
    scrollbar-gutter: stable;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .marquee-track {
        animation: none;
    }

    .skill-bar-fill {
        transition: none;
    }
}
