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

:root {
     --primary-color: #B58A7A;
    --dark-color: #8E6B5E;
    --light-color: #F7F3F1;
    --accent-color: #D8B4A0;
    --gray-dark: #3F3A37;
    --gray-medium: #8C817B;
    --gray-light: #EFE8E4;
    --white: #FFFFFF;
}

body.dark-mode {
     --primary-color: #C9A596;
    --dark-color: #E7D6CE;
    --light-color: #1F1A18;
    --accent-color: #D8B4A0;
    --gray-dark: #F3ECE8;
    --gray-medium: #B8A39A;
    --gray-light: #2B2421;
    --white: #14110F;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Header & Navigation */
header {
    background-color: #1C1713;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span {
    font-weight: 700;
    color: var(--primary-color);
}

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

.mobile-meeting-btn {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

/* Nav Controls (lang + theme toggles) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.nav-meeting-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: 20px;
    padding: 0.35rem 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.nav-meeting-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.lang-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.82);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

body.dark-mode .lang-toggle {
    border-color: #3a3230;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.82);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

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

.icon-moon { display: none; }
.icon-sun { display: block; }

body.dark-mode .icon-moon { display: block; }
body.dark-mode .icon-sun { display: none; }

body.dark-mode .theme-toggle {
    border-color: #3a3230;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    background: var(--gray-light);
    color: var(--gray-dark);
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: fadeInDown 1s ease;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    animation: fadeInUp 1s ease;
    color: var(--gray-medium);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero-hook {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--gray-dark);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    animation: fadeInUp 1s ease 0.1s both;
}

.hero .subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 1;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-desc {
    font-size: 1rem;
    max-width: 480px;
    margin-bottom: 2rem;
    color: var(--gray-medium);
    line-height: 1.65;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero p:not(.hero-hook):not(.subtitle):not(.hero-desc) {
    display: none;
}

.cta-button {
    display: inline-block;
    background-color: var(--gray-dark);
    color: #FFFFFF;
    padding: 1rem 2.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.5s both;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.8s both;
}

.cta-button-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.section-cta-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.section-cta-btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
}

/* Trust Strip */
.trust-strip {
    background-color: var(--gray-light);
    padding: 1.1rem 2rem;
    width: 100%;
    box-shadow: 0 6px 20px rgba(142, 107, 94, 0.18), 0 -6px 20px rgba(142, 107, 94, 0.18);
}

.trust-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.6rem 1.8rem;
}

.trust-item {
    color: var(--gray-medium);
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.trust-sep {
    color: var(--primary-color);
    opacity: 0.5;
    font-weight: bold;
}

/* Section Styles */
section {
    padding: 3.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-size: 2.5rem;
    color: var(--gray-dark);
    margin-bottom: 0.6rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.section-description {
    text-align: center;
    color: var(--gray-medium);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--gray-medium);
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--gray-light);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    color: var(--gray-medium);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.pmi-badge-strip {
    text-align: center;
    padding: 2rem 1rem 0;
}

.pmi-badge-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    mix-blend-mode: multiply;
}

/* Projects Section */
#proyectos {
    background-color: var(--gray-light);
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 2rem;
}

.exp-item {
    background-color: var(--white);
    border-radius: 14px;
    border: 1px solid var(--gray-light);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.exp-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.exp-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background-color: var(--gray-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6px;
}

.exp-body {
    flex: 1;
}

.exp-body h3 {
    color: var(--gray-dark);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.exp-view {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.88rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    background-color: var(--gray-light);
    color: var(--gray-medium);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}

body.dark-mode .exp-item {
    background-color: #2B2421;
    border-color: #3D3430;
}

body.dark-mode .exp-icon {
    background-color: #3D3430;
}

body.dark-mode .exp-body h3 {
    color: #F3ECE8;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.skill-category h3::before {
    content: '▶';
    font-size: 0.8rem;
}

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

.skill-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--gray-light);
    color: var(--gray-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-list li:last-child {
    border-bottom: none;
}

.skill-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
}

/* Services Section */
#services {
    background-color: var(--gray-light);
}

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

.service-card {
    background-color: var(--white);
    padding: 2rem 1.75rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(179, 141, 126, 0.2);
}

.service-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.service-card h3 {
    color: var(--gray-dark);
    font-size: 1.05rem;
    margin-bottom: 0;
    transition: color 0.2s ease;
    line-height: 1.35;
}

.service-card:hover h3 {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.service-card p {
    color: var(--gray-medium);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-list {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--gray-medium);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-light);
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: '→ ';
    color: var(--primary-color);
    font-weight: bold;
}

.service-cta {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1.5px solid var(--primary-color);
    padding: 0.55rem 1.4rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.service-cta:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Process Section */
.process-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.process-step {
    background-color: var(--white);
    padding: 1.5rem 1.75rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    border-top: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 160px;
}

.process-arrow {
    font-size: 2.3rem;
    color: var(--primary-color);
    padding: 0 0.5rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    opacity: 0.6;
    line-height: 1;
    flex-shrink: 0;
}

.process-step h3 {
    color: var(--gray-dark);
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.process-step p {
    color: var(--gray-medium);
    font-size: 0.95rem;
    line-height: 1.7;
}

.process-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Values Section */
#values {
    background-color: var(--gray-light);
    padding-bottom: 1.5rem;
}

#experience {
    padding-top: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

.value-card {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.value-icon {
    width: 42px;
    height: 42px;
    background-color: var(--gray-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.value-card h3 {
    color: var(--gray-dark);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.value-card p {
    color: var(--gray-medium);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

body.dark-mode .value-card {
    background-color: #3D3430;
}

body.dark-mode .value-icon {
    background-color: #2B2421;
}

body.dark-mode .value-card h3 {
    color: #F3ECE8;
}

body.dark-mode .value-card p {
    color: var(--gray-medium);
}

/* Cert Minimal */
#certifications {
    background-color: var(--white);
}

.cert-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 1.5rem;
}

.cert-inline-item {
    color: var(--gray-dark);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cert-inline-item:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cert-inline-sep {
    color: var(--primary-color);
    opacity: 0.5;
    font-weight: bold;
}

.cert-inline-badge {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    mix-blend-mode: multiply;
}

/* Testimonials Section */
#testimonials {
    background-color: var(--gray-light);
    padding-bottom: 1.5rem;
}

#values {
    padding-top: 1.5rem;
}

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

.testimonial-card {
    background-color: #FFFFFF;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.testimonial-stars {
    font-size: 1.2rem;
    color: #F5C518;
    letter-spacing: 0.1em;
}

.testimonial-quote {
    color: var(--gray-dark);
    font-size: 0.85rem;
    line-height: 1.55;
    font-style: italic;
    flex-grow: 1;
    position: relative;
    padding-left: 1.2rem;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.2rem;
    color: var(--primary-color);
    font-size: 2rem;
    font-style: normal;
    line-height: 1;
}

.testimonial-author {
    border-top: 1px solid var(--gray-light);
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.author-name {
    color: var(--gray-dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.author-role {
    color: var(--gray-medium);
    font-size: 0.8rem;
}

body.dark-mode .testimonial-card {
    background-color: #3D3430;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .testimonial-quote {
    color: #F3ECE8;
}

body.dark-mode .author-name {
    color: #F3ECE8;
}

body.dark-mode .author-role {
    color: var(--gray-medium);
}

body.dark-mode .testimonial-author {
    border-top-color: #2a2420;
}

/* Final CTA Section */
#cta-final {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    text-align: center;
    color: var(--white);
}

#cta-final h2 {
    color: #FFFFFF;
    font-size: 2rem;
}

#cta-final h2::after {
    background-color: rgba(255, 255, 255, 0.4);
}

#cta-final p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 1rem auto 2rem;
}

/* CV Section */
#cv {
    background-color: var(--white);
}

.cv-container {
    max-width: 600px;
    margin: 0 auto;
}

.cv-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: var(--white);
}

.cv-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.cv-icon {
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cv-icon svg {
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.cv-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cv-card p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cv-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.cv-button {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.cv-card:hover .cv-button {
    background-color: var(--light-color);
}

.cv-download-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid var(--white);
    transition: all 0.3s ease;
}

.cv-download-btn:hover {
    background-color: var(--white);
    color: var(--dark-color);
}

/* Cal.com Button */
.cal-button {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background-color: var(--white);
    border-radius: 30px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.cal-button:hover {
    transform: translateY(-2px);
    background-color: var(--light-color);
}

/* Contact Section */
#contacto {
    background-color: var(--gray-light);
}

.contact-container {
    max-width: 680px;
    margin: 3rem auto 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    color: var(--gray-dark);
    margin-bottom: 0.3rem;
}

.contact-details p {
    color: var(--gray-medium);
}

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

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

.form-group label {
    color: var(--gray-dark);
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--white);
    color: var(--gray-dark);
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238C817B' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

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

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

.submit-button {
    background-color: var(--gray-dark);
    color: #FFFFFF;
    padding: 1rem 2.25rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body.dark-mode .submit-button {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

/* Certifications Section */
#certifications {
    background-color: var(--gray-light);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(179, 141, 126, 0.1);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.cert-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 45px rgba(179, 141, 126, 0.25);
}

.cert-card:hover::before {
    opacity: 0.05;
}

.cert-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cert-image::before {
    content: '📜';
    font-size: 5rem;
    opacity: 0.2;
    position: absolute;
    filter: grayscale(100%);
}

.cert-image::after {
    content: 'Click to view';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    padding: 1.5rem 1rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.cert-card:hover .cert-image::after {
    opacity: 1;
    transform: translateY(0);
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.cert-card:hover .cert-image img {
    transform: scale(1.1);
    filter: brightness(1.05);
}

.cert-info {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cert-info h3 {
    color: var(--gray-dark);
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    transition: color 0.3s ease;
}

.cert-card:hover .cert-info h3 {
    color: var(--primary-color);
}

.cert-info p {
    color: var(--gray-medium);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cert-year {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(179, 141, 126, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.cert-year::before {
    content: '✓';
    font-weight: bold;
    font-size: 1rem;
}

.cert-card:hover .cert-year {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(179, 141, 126, 0.4);
}

/* Certificate Modal */
.cert-modal-content {
    background-color: var(--white);
    border-radius: 15px;
    max-width: 1400px;
    width: 98%;
    max-height: 98vh;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.3s ease;
    padding: 1.5rem;
}

#cert-modal-body,
#cv-modal-body {
    width: 100%;
    height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cert-modal-body iframe,
#cv-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 1.5rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
    flex: 1;
}

.footer-copy {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-top: 0.25rem;
}

.footer-badge-large {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.footer-contact {
    font-size: 0.85rem;
    opacity: 0.75;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
}

.footer-contact a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-sep {
    opacity: 0.5;
}

.footer-legal {
    display: flex;
    gap: 0.4rem;
    font-size: 0.78rem;
    opacity: 0.55;
    margin-top: 0.15rem;
}

.footer-legal a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.footer-legal a:hover {
    opacity: 1;
}

.footer-cert-link {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

.footer-cert-link:hover {
    opacity: 1;
}

/* Project Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--gray-medium);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

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

#modal-body h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0;
}

#modal-body h2::after {
    display: none;
}

.modal-description {
    color: var(--gray-medium);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section h3 {
    color: var(--gray-dark);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.role-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

.responsibilities-list {
    list-style: none;
    padding-left: 0;
}

.responsibilities-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    color: var(--gray-medium);
    position: relative;
    border-bottom: 1px solid var(--gray-light);
}

.responsibilities-list li:last-child {
    border-bottom: none;
}

.responsibilities-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.modal-link:hover {
    background-color: var(--dark-color);
    transform: translateX(5px);
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        padding: 1.5rem 1.25rem;
        border-radius: 20px 20px 0 0;
        max-height: 85vh;
        margin: 0;
        width: 100%;
    }

    .cert-modal-content {
        border-radius: 20px 20px 0 0;
        width: 100%;
        max-height: 90vh;
        padding: 1rem;
    }

    #cert-modal-body,
    #cv-modal-body {
        height: 80vh;
    }

    #modal-body h2,
    #pmi-modal-body h2,
    #service-modal-body h2 {
        font-size: 1.3rem;
    }

    .modal-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .modal-section {
        margin-bottom: 1.25rem;
    }

    .modal-section h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 1.6rem;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dark Mode Overrides */
body.dark-mode header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

body.dark-mode .project-card {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .project-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .skill-category {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cert-card {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(179, 141, 126, 0.15);
}

body.dark-mode .cert-card:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

body.dark-mode .cta-button {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

body.dark-mode #cta-final {
    background: var(--gray-light);
    color: var(--gray-dark);
}

body.dark-mode #cta-final h2 {
    color: var(--gray-dark);
}

body.dark-mode #cta-final h2::after {
    background-color: var(--primary-color);
}

body.dark-mode #cta-final p {
    color: var(--gray-medium);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background-color: var(--gray-light);
    color: var(--gray-dark);
    border-color: #2a2420;
}

body.dark-mode .modal-content,
body.dark-mode .cert-modal-content {
    background-color: #1a1614;
}

body.dark-mode .contact-details a {
    color: var(--primary-color);
}

body.dark-mode .cal-button {
    background-color: #2a2420;
    color: var(--primary-color);
}

body.dark-mode footer {
    background-color: #0d0b0a;
    color: #FFFFFF;
}

body.dark-mode .nav-links {
    background-color: var(--white);
}

body.dark-mode .service-card {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .process-step {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tag {
    background-color: #2a2420;
}

body.dark-mode .tech-tag {
    background-color: #2a2420;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-meeting-btn {
        display: none;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links .mobile-meeting-btn {
        display: inline-block;
        margin-top: 0.5rem;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--primary-color);
        border: 1.5px solid var(--primary-color);
        border-radius: 20px;
        padding: 0.45rem 1.1rem;
        text-decoration: none;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-hook {
        font-size: 1.9rem;
    }

    .about-content,
    .form-row {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    section h2 {
        font-size: 2rem;
    }

    .process-steps {
        flex-direction: column;
        align-items: stretch;
    }

    .process-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .exp-item {
        flex-wrap: wrap;
    }

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

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

    .cert-badge {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

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

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

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    section {
        padding: 3rem 1rem;
    }

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