/* ========================================
   ADRIAN RB DEV - ESTILOS GLOBALES
   ======================================== */

:root {
    /* Colores corporativos AdrianRB */
    --primary: #F44336;
    --primary-dark: #D32F2F;
    --primary-light: #FF6659;
    --secondary: #FF7961;
    --secondary-dark: #E53935;
    --accent: #FF8A80;

    /* Fondos oscuros (Dark Mode - Default) */
    --bg-dark: #0a0a0a;
    --bg-darker: #000000;
    --bg-card: #141414;
    --bg-card-hover: #1f1f1f;

    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;

    /* Bordes */
    --border: #2a2a2a;

    /* Gradientes corporativos */
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    --gradient-subtle: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);

    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(244, 67, 54, 0.3);

    /* Radios */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Transiciones */
    --transition: all 0.3s ease;

    /* Navbar */
    --navbar-bg: rgba(0, 0, 0, 0.95);

    /* Logo - color del path oscuro */
    --logo-color: #ffffff;
}

/* ========================================
   LIGHT MODE
   ======================================== */

[data-theme="light"] {
    /* Fondos claros */
    --bg-dark: #ffffff;
    --bg-darker: #f5f5f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f0;

    /* Textos */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6a6a6a;

    /* Bordes */
    --border: #e0e0e0;

    /* Gradientes */
    --gradient-subtle: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);

    /* Sombras más suaves */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(244, 67, 54, 0.2);

    /* Navbar */
    --navbar-bg: rgba(255, 255, 255, 0.95);

    /* Logo - color oscuro para fondo claro */
    --logo-color: #1a1a1a;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   LAYOUT
   ======================================== */

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

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-lg);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.5rem;
    font-weight: 800;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    flex-shrink: 0;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    filter: drop-shadow(0 0 8px rgba(244, 67, 54, 0.5));
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

/* Dark mode: show sun, hide moon */
.theme-toggle .icon-sun {
    display: block;
}

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

/* Light mode: show moon, hide sun */
[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

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

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

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

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

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

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu FAB - hidden on desktop */
.mobile-menu-fab,
.mobile-menu-overlay {
    display: none;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========================================
   CARDS
   ======================================== */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.card-body {
    padding: 1.5rem;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text .greeting {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    display: block;
}

.tagline {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

.hero-text > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

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

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

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 1;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--gradient);
    border-radius: var(--radius-xl);
    opacity: 0.2;
    filter: blur(40px);
}

/* ========================================
   PAGE HEADER (for inner pages)
   ======================================== */

.page-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb.mt-2 {
    margin-top: 1rem;
}

/* ========================================
   SERVICES
   ======================================== */

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

.service-card {
    padding: 2rem;
    text-align: center;
}

.service-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ========================================
   SKILLS
   ======================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.skill-category h3 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

.skill-tag {
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.language-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.language-item .level {
    color: var(--secondary);
    font-weight: 500;
}

/* ========================================
   TIMELINE
   ======================================== */

.timeline-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.timeline-section h3 {
    color: var(--secondary);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-5px);
    box-shadow: 0 0 0 4px var(--bg-dark);
}

.timeline-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.timeline-item .date {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-item .role {
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

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

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonials-grid.centered {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    padding: 2rem;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-header h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.testimonial-header span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.testimonial-card blockquote {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.8;
    position: relative;
    padding-left: 1.5rem;
}

.testimonial-card blockquote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

/* ========================================
   PROJECTS / PORTFOLIO
   ======================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
}

.project-card .card-image {
    height: 250px;
    transition: var(--transition);
}

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

.project-card .card-body {
    position: relative;
}

.project-card .category {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* ========================================
   PROJECT DETAIL
   ======================================== */

.project-detail {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.project-main img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.project-main h2 {
    margin-bottom: 1.5rem;
}

.project-main p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.project-sidebar .info-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.project-sidebar .info-box h4 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-sidebar .info-box p,
.project-sidebar .info-box a {
    color: var(--text-primary);
}

.project-sidebar .info-box a {
    color: var(--primary);
    transition: var(--transition);
}

.project-sidebar .info-box a:hover {
    color: var(--primary-light);
}

/* ========================================
   SERVICE DETAIL
   ======================================== */

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-detail-header .icon {
    width: 100px;
    height: 100px;
}

.service-detail-header h2 {
    margin-bottom: 0.5rem;
}

.service-detail-header p {
    color: var(--text-secondary);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.process-step {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    position: relative;
}

.process-step .step-number {
    position: absolute;
    top: -1rem;
    left: 1.5rem;
    background: var(--gradient);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.process-step h4 {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   CONTACT
   ======================================== */

.contact-section {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 4rem;
    border: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-item a {
    transition: var(--transition);
}

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

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.contact-social {
    margin-top: 2.5rem;
}

.contact-social h4 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.social-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-disclaimer {
    color: var(--text-muted);
    margin-top: 2.5rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    margin-bottom: 1.5rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    border-top: 1px solid var(--border);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========================================
   ABOUT / BIOGRAPHY SECTION
   ======================================== */

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-xl);
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content a {
    color: var(--primary);
    transition: var(--transition);
}

.about-content a:hover {
    color: var(--primary-light);
}

/* ========================================
   FEATURE GRID (Why Work With Me, Benefits, etc.)
   ======================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    text-align: center;
}

.feature-card .feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-card h4 {
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.hidden { display: none; }

.bg-darker { background: var(--bg-darker); }
.bg-dark { background: var(--bg-dark); }

/* Centered content block */
.content-centered {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.content-centered p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.content-centered p:last-of-type {
    margin-bottom: 2rem;
}

/* Service intro text */
.service-intro {
    max-width: 800px;
    margin-bottom: 3rem;
}

.service-intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Benefits grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.benefit-card {
    padding: 1.5rem;
}

.benefit-card h4 {
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Section subtitle */
.section-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text > p {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-image {
        order: -1;
    }

    .hero-image img {
        max-width: 300px;
    }

    .tagline {
        justify-content: center;
    }

    .timeline-container {
        grid-template-columns: 1fr;
    }

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

    .project-detail {
        grid-template-columns: 1fr;
    }

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

    /* About section responsive */
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .about-image img {
        max-width: 250px;
    }

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

    /* Service detail header */
    .service-detail-header {
        flex-direction: column;
        text-align: center;
    }

    .service-detail-header .icon {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .nav-links li {
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
    }

    /* Mobile Menu FAB (Floating Action Button) */
    .mobile-menu-fab {
        display: flex;
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--gradient);
        border: none;
        color: white;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        box-shadow: var(--shadow-lg), var(--shadow-glow);
        z-index: 1001;
        transition: var(--transition);
    }

    .mobile-menu-fab:hover {
        transform: scale(1.1);
        box-shadow: var(--shadow-xl), 0 0 30px rgba(244, 67, 54, 0.5);
    }

    .mobile-menu-fab:active {
        transform: scale(0.95);
    }

    .mobile-menu-fab .icon-menu,
    .mobile-menu-fab .icon-close {
        position: absolute;
        transition: opacity 0.2s, transform 0.2s;
    }

    .mobile-menu-fab .icon-close {
        opacity: 0;
        transform: rotate(-90deg);
    }

    .mobile-menu-fab.active .icon-menu {
        opacity: 0;
        transform: rotate(90deg);
    }

    .mobile-menu-fab.active .icon-close {
        opacity: 1;
        transform: rotate(0);
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Mobile Menu Panel - HIDDEN by default */
    .navbar .nav-links {
        display: none !important;
        position: fixed !important;
        bottom: 100px !important;
        right: 24px !important;
        left: auto !important;
        top: auto !important;
        background: var(--bg-card) !important;
        flex-direction: column !important;
        padding: 0.5rem !important;
        border-radius: var(--radius-lg) !important;
        border: 1px solid var(--border) !important;
        box-shadow: var(--shadow-xl) !important;
        gap: 0 !important;
        z-index: 1000 !important;
        min-width: 200px !important;
    }

    /* Mobile Menu Panel - VISIBLE when active */
    .navbar .nav-links.active {
        display: flex !important;
    }

    .social-links {
        display: flex;
        gap: 0.75rem;
    }

    .social-links a {
        padding: 0.5rem;
    }

    .theme-toggle {
        padding: 0.4rem;
    }

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

    .testimonials-grid {
        min-width: 0;
    }

    .contact-section {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* Page header */
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Process steps */
    .process-steps {
        grid-template-columns: 1fr;
    }

    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    /* CTA section */
    .cta-section h2 {
        font-size: 1.5rem;
    }

    /* Testimonial cards */
    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-card blockquote {
        font-size: 0.95rem;
    }

    /* Timeline improvements */
    .timeline-section h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .timeline-item h4 {
        font-size: 1.1rem;
    }

    .timeline-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        padding-top: 4rem;
    }

    .btn {
        width: 100%;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-image img {
        max-width: 200px;
    }

    /* About section very small */
    .about-image img {
        max-width: 180px;
    }

    .about-content p {
        font-size: 1rem;
    }

    /* Cards */
    .card {
        border-radius: var(--radius-md);
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-card .icon {
        width: 60px;
        height: 60px;
    }

    /* Feature cards */
    .feature-card {
        padding: 1.5rem;
    }

    .feature-card .feature-icon {
        width: 50px;
        height: 50px;
    }

    /* Process steps */
    .process-step {
        padding: 1.5rem;
    }

    /* Skills */
    .skill-tags {
        gap: 0.5rem;
    }

    .skill-tag {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.8rem;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    /* Project cards */
    .project-card .card-image {
        height: 180px;
    }

    /* Language items */
    .language-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* ==================== Testimonials Carousel ==================== */
.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    opacity: 0.3;
    transform: scale(0.95);
    transition: all 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-slide .testimonial-card {
    max-width: 100%;
    margin: 0 auto;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.carousel-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.carousel-dots {
    display: flex;
    gap: 0.5rem;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot:hover {
    background: var(--text-secondary);
}

.carousel-dots .dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-controls {
        gap: 1rem;
    }
}

/* ==================== Social Icon Buttons ==================== */
.social-icon-btn {
    background: var(--bg-dark);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icon-btn:hover {
    color: var(--primary);
    transform: translateY(-2px);
}
