/* ============================================
   Jeffrey Pendon Portfolio - Design System
   Following hamzaautomates.com style
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Colors */
    --bg-primary: #0a0a1a;
    --bg-secondary: #0d0d24;
    --bg-sidebar: rgba(0, 0, 0, 0.6);
    --accent: #00d4aa;
    --accent-hover: #00f5c4;
    --text-primary: #ffffff;
    --text-muted: #8892a0;
    --text-dark: #0a0a1a;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --sidebar-width: 110px;
    --sidebar-width-expanded: 140px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

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

/* ============================================
   Sidebar Navigation
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-logo {
    margin-bottom: 40px;
    text-align: center;
}

.sidebar-logo .logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.sidebar-logo .logo-text span {
    color: var(--accent);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 12px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    color: var(--accent);
    background: rgba(0, 212, 170, 0.1);
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.nav-item span {
    font-weight: 500;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
    width: 80%;
    align-self: center;
}

.nav-item.external {
    font-size: 0.6rem;
}

.nav-item.external::after {
    content: '↗';
    font-size: 0.5rem;
    margin-left: 2px;
    opacity: 0.6;
}

/* ============================================
   Main Content Area
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right,
            rgba(10, 10, 26, 0.8) 0%,
            rgba(10, 10, 26, 0.6) 50%,
            rgba(10, 10, 26, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

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

.hero-tagline {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.8;
}

/* ============================================
   Social Icons (Bottom Center)
   ============================================ */
.social-icons {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.social-icons a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* ============================================
   Page Sections
   ============================================ */
.section {
    padding: 100px 60px;
    scroll-margin-top: 20px;
    /* Offset for anchor navigation */
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title .accent {
    color: var(--accent);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Cards
   ============================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 80%;
    margin: 0 auto;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition-normal);
}

.card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px -10px rgba(0, 212, 170, 0.2);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 170, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.card-link:hover {
    gap: 12px;
}

/* ============================================
   Stats Section
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 60px auto;
    text-align: center;
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   About Page Specific
   ============================================ */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-bio {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-muted);
    margin-bottom: 60px;
}

.about-bio strong {
    color: var(--text-primary);
}

.skills-section {
    margin-top: 80px;
    /* Break out of .about-content container to be full width */
    width: calc(100vw - var(--sidebar-width) - 120px);
    margin-left: calc(-50vw + 50% + 60px);
    padding: 0 60px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-tag {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--accent);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(0, 212, 170, 0.2);
}

/* Skills Categories Layout */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 80%;
    margin: 0 auto;
}

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

@media (max-width: 600px) {
    .skills-categories {
        grid-template-columns: 1fr;
    }
}

.skill-category {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition-normal);
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 212, 170, 0.2);
}

.skill-category-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category-title i {
    color: var(--accent);
    font-size: 1.1rem;
}

.skill-category .skills-grid {
    justify-content: flex-start;
    gap: 10px;
}

.skill-category .skill-tag {
    font-size: 0.8rem;
    padding: 8px 16px;
}

/* ============================================
   Portfolio Page Specific
   ============================================ */
.case-study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.case-study-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    background: linear-gradient(135deg, #1a1a3e 0%, #0d0d24 100%);
    transition: var(--transition-normal);
    cursor: pointer;
}

.case-study-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.case-study-card:hover::before {
    background: linear-gradient(to top, rgba(0, 212, 170, 0.4) 0%, transparent 80%);
}

.case-study-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.95) 0%, transparent 60%);
    z-index: 1;
}

.case-study-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
}

.case-study-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.case-study-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Tools/Software Grid
   ============================================ */
.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 800px;
    margin: 40px auto;
}

.tool-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 30px;
    border-radius: 12px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.tool-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-5px) scale(1.05);
    background: rgba(0, 212, 170, 0.05);
}

/* ============================================
   Blog Page Specific
   ============================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.blog-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px -15px rgba(0, 212, 170, 0.2);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, #1a1a3e 0%, #0d0d24 100%);
}

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

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Blog Card Gradients */
.blog-gradient-1 {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d1f33 100%);
}

.blog-gradient-2 {
    background: linear-gradient(135deg, #2a1a5c 0%, #1a0d33 100%);
}

.blog-gradient-3 {
    background: linear-gradient(135deg, #1a5c3a 0%, #0d331f 100%);
}

.blog-gradient-4 {
    background: linear-gradient(135deg, #5c1a1a 0%, #330d0d 100%);
}

.blog-gradient-5 {
    background: linear-gradient(135deg, #5c4a1a 0%, #332a0d 100%);
}

.blog-gradient-6 {
    background: linear-gradient(135deg, #1a5c5c 0%, #0d3333 100%);
}

/* Blog Count */
.blog-count {
    text-align: center;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Stats Section Styling */
.stats-section {
    background: linear-gradient(135deg, #0d0d24 0%, #1a1a3e 100%);
    padding: 80px 60px;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, #0d0d24 0%, #1a1a3e 100%);
    text-align: center;
}

.newsletter-form {
    max-width: 500px;
    margin: 40px auto 0;
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-input::placeholder {
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding-bottom: 120px;
}

.cta-btn {
    margin-top: 30px;
}

/* Hero Background Class (for moving inline style to CSS) */
.hero-home {
    background-image: url('../images/jeff-hero.png');
}

/* ============================================
   Footer
   ============================================ */
/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    padding: 60px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-section h3 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

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

.footer-links a {
    transition: var(--transition-fast);
}

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

.footer-social-inline {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social-inline a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

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

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

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 60px;
    }

    .sidebar {
        width: var(--sidebar-width);
        padding: 15px 0;
    }

    .sidebar-logo {
        display: none;
    }

    .nav-item {
        padding: 10px 5px;
        font-size: 0.6rem;
    }

    .nav-item i {
        font-size: 1rem;
    }

    .section {
        padding: 60px 20px;
    }

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

    .social-icons {
        bottom: 20px;
        gap: 12px;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
    }

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

    .case-study-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-tagline {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .nav-item span {
        display: none;
    }

    .nav-item i {
        margin-bottom: 0;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

/* ============================================
   Homepage Sections Enhancements
   ============================================ */

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition-normal);
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About Preview */
.about-preview {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-preview strong {
    color: var(--text-primary);
}

/* Skills Section Home */
.skills-section-home {
    background: linear-gradient(135deg, #0d0d24 0%, #1a1a3e 100%);
    text-align: center;
}

/* Subsection Title */
.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

/* Certifications Preview */
.certifications-preview {
    margin-top: 60px;
    text-align: center;
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 25px;
    border-radius: 12px;
    transition: var(--transition-normal);
}

.cert-badge:hover {
    border-color: var(--accent);
    background: rgba(0, 212, 170, 0.05);
    transform: translateY(-3px);
}

.cert-badge i {
    font-size: 1.3rem;
    color: var(--accent);
}

.cert-badge span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Work Preview Grid */
.work-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.work-preview-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-normal);
}

.work-preview-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -15px rgba(0, 212, 170, 0.2);
}

.work-preview-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.2), rgba(0, 212, 170, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: var(--accent);
}

.work-preview-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.work-preview-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #0d0d24 0%, #1a1a3e 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

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

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

.contact-icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 212, 170, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-item a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

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

/* CTA Box */
.cta-box {
    background: rgba(0, 212, 170, 0.05);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cert-badges {
        flex-direction: column;
        align-items: center;
    }

    .work-preview-grid {
        grid-template-columns: 1fr;
    }

    .scroll-indicator {
        bottom: 30px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .blog-preview-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Blog Preview Section (Homepage)
   ============================================ */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-preview-card {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    text-decoration: none;
    transition: var(--transition-normal);
}

.blog-preview-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 35px -15px rgba(0, 212, 170, 0.2);
}

.blog-preview-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 170, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 1.4rem;
}

.blog-preview-card .blog-meta {
    display: block;
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.blog-preview-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-preview-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Hero Roles Section
   ============================================ */
.hero-roles {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.hero-role {
    text-align: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-role:last-child {
    border-bottom: none;
}

.role-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.role-pain {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    margin-bottom: 6px;
}

.role-solution {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-roles {
        gap: 20px;
    }

    .role-title {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .role-pain,
    .role-solution {
        font-size: 0.8rem;
    }
}

/* ============================================
   Certification Categories (Home & About)
   ============================================ */
.certifications-preview {
    margin-top: 60px;
    text-align: center;
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.cert-category-badges {
    margin-bottom: 30px;
    text-align: center;
}

.cert-category-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cert-category-label i {
    color: var(--accent);
}

.cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.cert-badge i {
    color: var(--accent);
    font-size: 0.9rem;
}

.cert-badge:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.3);
    color: var(--text-primary);
}

/* Certification Section Groups (About Page) */
.cert-section-group {
    margin-bottom: 60px;
}

.cert-group-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cert-group-title i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Certification Cards - 4 Column Grid */
.cert-section-group .card-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 100%;
}

.cert-section-group .card {
    padding: 20px;
}

.cert-section-group .card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.cert-section-group .card-title {
    font-size: 1rem;
    margin-bottom: 8px;
}

.cert-section-group .card-text {
    font-size: 0.85rem;
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .cert-section-group .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cert-section-group .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .cert-section-group .card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cert-badges {
        justify-content: center;
    }

    .cert-category-badges {
        text-align: center;
    }

    .cert-category-label {
        justify-content: center;
    }
}

/* ============================================
   Flip Cards (Certifications)
   ============================================ */
.flip-card {
    background-color: transparent;
    perspective: 1000px;
    height: 180px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.flip-card-back {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15), rgba(0, 212, 170, 0.05));
    border: 1px solid rgba(0, 212, 170, 0.4);
    transform: rotateY(180deg);
    gap: 12px;
}

.flip-card-front .card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.flip-card-front .card-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.flip-card-front .card-text {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.cert-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.cert-detail i {
    color: var(--accent);
    width: 20px;
    text-align: center;
}

/* Responsive flip cards */
@media (max-width: 900px) {
    .flip-card {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .flip-card {
        height: 220px;
    }

    .flip-card-front .card-title {
        font-size: 1rem;
    }
}

/* ============================================
   Voice Widget
   ============================================ */
.voice-widget-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    min-height: 850px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: var(--bg-secondary);
    /* Fallback */
}

/* ============================================
   Responsive Design (Mobile & Tablet)
   ============================================ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 90px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section {
        padding: 80px 40px;
    }

    .voice-widget-container {
        min-height: 700px;
        border-radius: 24px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {

    /* Reset Sidebar to Top Navigation */
    .sidebar {
        position: sticky;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 20px;
        display: flex;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(10, 10, 26, 0.95);
    }

    .sidebar-logo {
        margin-bottom: 0;
        text-align: left;
    }

    .sidebar-logo .logo-text {
        font-size: 0.8rem;
    }

    .sidebar-nav {
        display: none;
        /* Hide for simplicity, can add hamburger later */
    }

    /* Main Content Adjustments */
    .main-content {
        margin-left: 0;
        min-height: auto;
    }

    /* Hero Section */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 20px;
    }

    .voice-widget-container {
        min-height: 600px;
        border-radius: 16px;
        aspect-ratio: auto;
        height: 80vh;
    }

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

    .footer-social-inline {
        justify-content: center;
    }

    .social-icons {
        display: none;
    }

    .skills-section {
        width: 100%;
        margin-left: 0;
        padding: 0;
    }

    .skills-categories {
        width: 100%;
        max-width: 100%;
    }
}