/* ========================================
   RESET & BASE STYLES
   ======================================== */
   
/* Font Loading Optimization */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Poppins'), local('Poppins-Regular');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Inter'), local('Inter-Regular');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Sophisticated and professional */
    --primary-color: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --secondary-color: #1e293b;
    --accent-color: #0ea5e9;
    
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #64748b;
    
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    
    --border-color: #e5e7eb;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #f59e0b 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.9) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* ========================================
   SCROLLBAR STYLES
   ======================================== */
/* Para navegadores Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
}

/* Para Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #f59e0b transparent;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    max-width: 100%;
    width: 100%;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
}

html {
    max-width: 100%;
    position: relative;
}

body {
    max-width: 100%;
    position: relative;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

section {
    padding: 100px 0;
    overflow: hidden;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-medium);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    will-change: transform;
    backface-visibility: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow var(--transition-normal);
    transform: translateY(0);
    will-change: transform;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    background: var(--gradient-primary);
}

.nav-link.btn-contact {
    padding: 8px 24px;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: white;
}

.nav-link.btn-contact::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: rgba(255, 255, 255, 0.9);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

/* Translate Button */
.translate-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.translate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.translate-btn i {
    font-size: 1.1rem;
}

#lang-text {
    font-weight: 700;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23f59e0b" fill-opacity="0.02"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 1s ease;
    will-change: opacity, transform;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-animation {
    display: flex;
    justify-content: center;
    align-items: center;
}

#lottie-hero {
    width: 100%;
    max-width: 700px;
    height: auto;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
    animation: bounce 2s infinite;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 25px; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-text p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

#lottie-about {
    width: 100%;
    max-width: 400px;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* Services Preview */
.services-preview {
    margin-top: 5rem;
}

.services-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.service-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    grid-column: span 2;
}

/* Centrar las últimas 2 tarjetas */
.service-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.service-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.service-card.featured {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.service-card.featured::before {
    transform: scaleX(1);
}

.badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--gradient-primary);
    color: white;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: var(--shadow-md);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-description {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.service-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem;
}

.service-time {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   PORTFOLIO SECTION
   ======================================== */
.portfolio {
    background: var(--bg-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-preview {
    position: relative;
    overflow: hidden;
    height: 350px;
    background: white;
    max-width: 100%;
}

.portfolio-preview iframe {
    width: 100%;
    height: 700px;
    border: none;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: top left;
    max-width: 200%;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    color: white;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.portfolio-tags span {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.view-btn {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: all 0.3s;
}

.view-btn:hover {
    background: #ff8c1a;
    transform: scale(1.05);
}

/* Portfolio Modal */
.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s ease-out;
}

.portfolio-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    background: rgba(0,0,0,0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s;
    line-height: 1;
}

.modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

#modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========================================
   CURRICULUM SECTION
   ======================================== */
.curriculum {
    background: white;
    position: relative;
    overflow: visible;
}

.curriculum .container {
    overflow: visible;
}

.curriculum-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    overflow: visible;
    position: relative;
    min-height: 100vh;
}

.profile-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 120px;
    height: fit-content;
    align-self: start;
}

.profile-image {
    margin-bottom: 1.5rem;
}

.profile-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 4px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.profile-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 4rem;
    color: white;
}

.profile-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.profile-role {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.profile-location {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.profile-location i {
    margin-right: 5px;
    color: var(--primary-color);
}

.profile-stats {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    margin: 1.5rem 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.languages h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.language-item {
    margin-bottom: 1rem;
}

.language-item span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.language-bar {
    height: 8px;
    background: var(--bg-gray);
    border-radius: 10px;
    overflow: hidden;
}

.language-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1s ease;
}

.experience-details {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.cv-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.cv-section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.cv-section-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cv-section-header h3 {
    font-size: 1.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-medium);
    line-height: 1.8;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-category h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-list-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.service-list-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.service-list-item strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.service-list-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    position: relative;
}

#lottie-contact {
    width: 100%;
    max-width: 350px;
    margin: 0 auto 2rem;
    height: auto;
    min-height: 250px;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-whatsapp {
    margin-top: 0;
}

.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 80px;
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(10px);
}

.contact-card-wide {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.contact-card-wide .contact-card-icon {
    margin-bottom: 0;
}

.contact-card-wide > div h4 {
    margin-bottom: 0.25rem;
}

.contact-card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group label i {
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 16px;
    margin-top: 1rem;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-status.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-status.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links h4,
.footer-services h4,
.footer-social h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-services ul li {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    z-index: 999;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.scroll-top:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: var(--shadow-xl);
}

.scroll-top.visible {
    display: flex;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 968px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-animation {
        order: -1;
    }
    
    #lottie-hero {
        max-width: 450px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: -1;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        grid-column: span 1 !important;
    }
    
    .services-cards {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        grid-column: span 1 !important;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .curriculum-content {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        position: static;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        position: static;
        top: auto;
        transform: none;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    #lottie-contact {
        max-width: 250px;
        margin-bottom: 1.5rem;
    }
    
    .contact-cards {
        grid-template-columns: 1fr;
        margin-bottom: 1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .logo-img {
        height: 50px;
        max-width: 150px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 70%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu .nav-link {
        color: var(--dark-navy);
        font-size: 1.1rem;
        padding: 0.8rem 0;
        width: 100%;
    }
    
    .nav-menu .nav-link:hover {
        color: var(--primary-color);
    }
    
    .nav-menu .btn-contact {
        background: var(--gradient-primary);
        color: white;
        padding: 12px 25px;
        border-radius: 50px;
        text-align: center;
        margin-top: 1rem;
    }
    
    .nav-menu .btn-contact:hover {
        color: white;
    }
    
    .translate-btn {
        margin-top: 1rem;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
        overflow: hidden;
    }
    
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    #lottie-hero {
        max-width: 280px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .logo-img {
        height: 40px;
        max-width: 120px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    #lottie-hero {
        max-width: 240px;
    }
    
    #lottie-contact {
        max-width: 200px;
        margin-bottom: 1rem;
    }
    
    .contact-content {
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(245, 158, 11, 0.2);
    border-top: 4px solid #f59e0b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

[data-aos] {
    pointer-events: auto;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
