/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('./assets/cursor.png'), auto;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1C1C1C;
    background-color: #F3EFE3;
    overflow-x: hidden;
    position: relative;
    
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #F3EFE3 0%, #E8E6DF 100%);
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bg-gradient-1 {
    background: radial-gradient(circle at 20% 30%, rgba(4, 67, 72, 0.15) 0%, transparent 50%);
    animation: float-bg-1 20s ease-in-out infinite;
}

.bg-gradient-2 {
    background: radial-gradient(circle at 80% 70%, rgba(4, 67, 72, 0.1) 0%, transparent 50%);
    animation: float-bg-2 25s ease-in-out infinite reverse;
}

.bg-gradient-3 {
    background: radial-gradient(circle at 60% 20%, rgba(4, 67, 72, 0.08) 0%, transparent 40%);
    animation: float-bg-3 30s ease-in-out infinite;
}

.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bg-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, #044348, #C9A227);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(4, 67, 72, 0.3);
    animation: particleFloat 6s ease-in-out infinite;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(4, 67, 72, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-move 40s linear infinite;
}

@keyframes float-bg-1 {
    0%, 100% { transform: translateX(-10px) translateY(-10px) scale(1); }
    50% { transform: translateX(10px) translateY(20px) scale(1.1); }
}

@keyframes float-bg-2 {
    0%, 100% { transform: translateX(10px) translateY(10px) scale(1); }
    50% { transform: translateX(-20px) translateY(-10px) scale(1.05); }
}

@keyframes float-bg-3 {
    0%, 100% { transform: translateX(0px) translateY(0px) scale(1); }
    50% { transform: translateX(15px) translateY(-15px) scale(1.08); }
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(243, 239, 227, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(4, 67, 72, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(28, 28, 28, 0.1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(4, 67, 72, 0.03) 0%, 
        rgba(201, 162, 39, 0.02) 50%, 
        rgba(179, 92, 55, 0.02) 100%);
    z-index: -1;
    pointer-events: none;
}

.navbar.scrolled {
    background: rgba(243, 239, 227, 0.95);
    backdrop-filter: blur(25px);
    border-bottom-color: rgba(4, 67, 72, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: #044348;
}

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

.nav-link {
    color: #1C1C1C;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #044348;
}

.nav-link.active {
    color: #044348;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #044348, #C9A227);
    transition: width 0.3s ease;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1C1C1C;
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile Navigation */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: transparent;
    overflow: hidden;
    padding-top: 10rem;
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 2;
    position: relative;
    min-height: 80vh;
}

.hero-left {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    width: 75%;
    height: 75%;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #044348;
    box-shadow: 0 0 30px rgba(4, 67, 72, 0.3);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(4, 67, 72, 0.5);
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text {
    text-align: left;
}

.cv-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #044348 0%, #C9A227 100%);
    color: #F3EFE3 !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(4, 67, 72, 0.2);
    position: relative;
    overflow: hidden;
}

.cv-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cv-link:hover::before {
    left: 100%;
}

.cv-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 67, 72, 0.3);
    background: linear-gradient(135deg, #C9A227 0%, #044348 100%);
}

.cv-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.cv-link:hover i {
    transform: scale(1.1) rotate(5deg);
}

.hero-greeting {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #044348 0%, #C9A227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-role {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #7A7A7A;
    line-height: 1.6;
    max-width: 500px;
    opacity: 0;
    transform: translateY(30px);
}

.scroll-indicator {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #7A7A7A;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(30px);
    margin-top: 2rem;
    justify-self: center;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
}

.wave {
    font-size: 2rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-10deg); }
}

.role-text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #044348;
    border: 2px solid #044348;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    display: inline-block;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(4, 67, 72, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Styles */
section {
    padding: 0;
    position: relative;
    z-index: 1;
}

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

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #044348 0%, #C9A227 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #7A7A7A;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: transparent;
}

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

.about-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.about-intro h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #044348;
}

.about-intro .role {
    font-size: 1.2rem;
    color: #044348;
    margin-bottom: 1rem;
}

.about-intro .quote {
    font-style: italic;
    color: #7A7A7A;
    font-size: 1.1rem;
}

.about-description h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #044348;
}

.about-description p {
    margin-bottom: 1.5rem;
    color: #1C1C1C;
    line-height: 1.8;
}

.what-i-do {
    margin: 2rem 0;
}

.what-i-do h5 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #044348;
}

.services {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service {
    padding: 1.5rem;
    background: rgba(232, 230, 223, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(4, 67, 72, 0.2);
}

.service h6 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #044348;
}

.service p {
    color: #7A7A7A;
    margin: 0;
}

.cta-text {
    text-align: center;
    font-size: 1.1rem;
    color: #C9A227;
    font-weight: 600;
}

/* Skills Section */
.skills {
    background: transparent;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: start;
    gap: 1rem;
}

.skill-card {
    background: rgba(232, 230, 223, 0.5);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(4, 67, 72, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: #044348;
    box-shadow: 0 20px 40px rgba(4, 67, 72, 0.1);
}

.skill-icon {
    font-size: 3rem;
    color: #044348;
    margin-bottom: 1rem;
}


.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #1C1C1C;
}

.skill-category {
    color: #7A7A7A;
    font-size: 0.9rem;
}

.expertise-areas {
    margin-top: 4rem;
}

.expertise-areas h3 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #044348;
}

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

.expertise-card {
    background: rgba(232, 230, 223, 0.5);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(4, 67, 72, 0.2);
}

.expertise-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #044348;
}

.expertise-card p {
    color: #7A7A7A;
    line-height: 1.6;
}

/* Experience Section */
.experience {
    background: transparent;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #044348;
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 20px;
    width: 15px;
    height: 15px;
    background: #044348;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.timeline-date {
    flex: 1;
    padding: 0 2rem;
    text-align: center;
    color: #C9A227;
    font-weight: 600;
    font-size: 1.5rem;
}

.timeline-content {
    flex: 1;
    padding: 1.5rem;
    background: rgba(232, 230, 223, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(4, 67, 72, 0.2);
    margin: 0 2rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #044348;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: #C9A227;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #7A7A7A;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-skills span {
    background: rgba(4, 67, 72, 0.2);
    color: #044348;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Projects Section */
.projects {
    background: transparent;
}

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

.project-card {
    background: rgba(232, 230, 223, 0.5);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(4, 67, 72, 0.2);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(4, 67, 72, 0.1);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #E8E6DF 0%, #F3EFE3 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 67, 72, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #F3EFE3;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #F3EFE3;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #F3EFE3;
    color: #044348;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #044348;
}

.project-content p {
    color: #7A7A7A;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: rgba(4, 67, 72, 0.2);
    color: #044348;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    background: transparent;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #044348;
}

.contact-form-container p {
    color: #7A7A7A;
    margin-bottom: 2rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(232, 230, 223, 0.5);
    border: 1px solid rgba(4, 67, 72, 0.2);
    border-radius: 8px;
    color: #1C1C1C;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #044348;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #7A7A7A;
}

.submit-btn {
    padding: 1rem 2rem;
    background: #044348;
    color: #F3EFE3;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #C9A227;
    transform: translateY(-2px);
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #044348;
}

.contact-info > p {
    color: #7A7A7A;
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #044348;
    width: auto;
    margin-bottom: 0.5rem;
}

.contact-item h4 {
    color: #044348;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #7A7A7A;
    margin: 0;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(232, 230, 223, 0.5);
    border: 1px solid rgba(4, 67, 72, 0.2);
    border-radius: 50%;
    color: #044348;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #044348;
    color: #F3EFE3;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: rgba(232, 230, 223, 0.95) !important;
    padding: 4rem 0 2rem;
    position: relative;
    border-top: 3px solid rgba(4, 67, 72, 0.5) !important;
    margin-top: 2rem;
    z-index: 100 !important;
    min-height: 400px;
    display: block !important;
    visibility: visible !important;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(232, 230, 223, 0.9) 0%, 
        rgba(243, 239, 227, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.footer-content {
    display: flex !important;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 200 !important;
}

.footer-brand h3 {
    color: #044348 !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #1C1C1C !important;
    line-height: 1.6;
    font-size: 1rem;
}

.footer-main {
    display: flex !important;
    justify-content: space-between;
    align-items: start;
    gap: 4rem;
    margin-bottom: 2rem;
    z-index: 300 !important;
    position: relative;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    flex: 2;
    justify-items: start;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.footer-brand {
    flex: 1;
    max-width: 350px;
}

.footer-section h4 {
    color: #044348;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(45deg, #044348, #C9A227);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #7A7A7A;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: #044348;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #7A7A7A;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-social .social-link:hover {
    color: #044348;
    transform: translateX(5px);
}

.footer-social .social-link i {
    width: 20px;
    font-size: 1.1rem;
}

.footer-contact p {
    color: #1C1C1C !important;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.footer-contact a {
    color: #1C1C1C !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #044348 !important;
}

.footer-section h4 {
    color: #044348 !important;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(45deg, #044348, #C9A227);
}

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

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #044348 !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    font-weight: bold;
    padding-left: 5px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-social .social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #7A7A7A !important;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-social .social-link i {
    width: 20px;
    font-size: 1.1rem;
    color: #044348 !important;
    transition: color 0.3s ease;
}

.footer-social .social-link:hover i {
    color: #C9A227 !important;
}

.footer-contact i {
    color: #044348 !important;
    width: 20px;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000 !important;
    width: 100% !important;
    position: relative !important;
    text-align: center;
}

.footer-divider {
    height: 2px !important;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #044348 50%, 
        transparent 100%) !important;
    margin-bottom: 2rem;
    display: block !important;
    visibility: visible !important;
}

.footer-copyright {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1000 !important;
    padding: 1rem 0 !important;
    white-space: nowrap !important;
    position: relative !important;
    width: 100% !important;
}

.footer-copyright p {
    color: #1C1C1C !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-tagline {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    z-index: 500 !important;
}

.footer-tagline .fa-heart {
    color: #ff6b9d !important;
}

/* Preloader styles to hide content before loader */
body {
    overflow: hidden;
    visibility: hidden !important;
    opacity: 0 !important;
}

body.loading {
    overflow: hidden;
    visibility: visible !important;
    opacity: 1 !important;
}

body.loading * {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body.loading .modern-loader,
body.loading .modern-loader * {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.loaded {
    overflow: visible;
    visibility: visible !important;
    opacity: 1 !important;
}

body.loaded * {
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: linear-gradient(135deg, #044348 0%, #C9A227 100%) !important;
        width: 100vw;
        min-height: calc(100vh - 70px);
        text-align: center;
        transition: left 0.3s;
        padding: 2rem 0 4rem 0;
        box-shadow: 0 8px 32px rgba(4,67,72,0.15);
        z-index: 2000;
    }

    .nav-link {
        color: #F3EFE3 !important;
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        padding: 1rem 0 !important;
        margin: 0.5rem 0 !important;
        border-radius: 8px;
        transition: background 0.2s, color 0.2s;
        display: block;
    }
    .nav-link:hover, .nav-link.active {
        background: rgba(243,239,227,0.15) !important;
        color: #C9A227 !important;
    }
    .nav-logo span {
        color: #C9A227 !important;
    }
    .hamburger span {
        background: #C9A227 !important;
    }
    
    body.dark-mode .nav-menu {
        background-color: rgba(28, 28, 28, 0.95);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-left {
        order: 1;
    }
    
    .hero-right {
        order: 2;
    }
    
    .hero-text {
        text-align: center;
        
    }
    
    .hero-image {
        width: 280px;
        height: 280px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .scroll-indicator {
        order: 3;
        margin-top: 1rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        padding-left: 40px;
    }
    
    .timeline-item:nth-child(odd) {
        flex-direction: column;
    }
    
    .timeline-item::before {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-date {
        text-align: left;
        padding: 0;
        margin-bottom: 1rem;
        font-size: large;
    }
    
    .timeline-content {
        margin: 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer responsive */
    /* Copyright text responsive fix */
    .footer-copyright-text p {
        max-width: 100vw;
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal;
        text-align: center;
        margin: 0 auto;
    }

    @media (max-width: 480px) {
        .footer-copyright-text p {
            font-size: 0.8rem !important;
            padding: 0 5px !important;
            max-width: 98vw !important;
        }
    }
    .footer-copyright-text {
        max-width: 100vw;
        overflow-wrap: break-word;
        word-break: break-word;
        padding: 0 10px;
        box-sizing: border-box;
    }

    @media (max-width: 480px) {
        .footer-copyright-text {
            font-size: 0.85rem !important;
            padding: 0 5px !important;
            text-align: center !important;
            max-width: 100vw !important;
        }
    }
        .footer-main {
            flex-direction: column !important;
            align-items: stretch !important;
            gap: 2rem !important;
        }

        .footer-links {
            display: flex !important;
            flex-direction: column !important;
            gap: 1.5rem !important;
            width: 100% !important;
        }

        .footer-section {
            width: 100% !important;
            margin-bottom: 1.5rem !important;
        }

        .footer-copyright {
            flex-direction: column !important;
            text-align: center !important;
            gap: 0.5rem !important;
        }

        .footer-brand {
            max-width: 100% !important;
            margin-bottom: 1.5rem !important;
            text-align: center !important;
        }
    .footer {
        padding: 2rem 0 1rem !important;
        min-height: 250px !important;
    }
    .footer-main {
        gap: 1rem !important;
    }
    .footer-section h4 {
        font-size: 1rem !important;
        margin-bottom: 1rem !important;
    }
    .footer-section ul li a,
    .footer-contact p,
    .footer-social .social-link {
        font-size: 0.9rem !important;
    }
    .footer-brand h3 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 15px 0;
    }
    
    .hero-content {
        gap: 1.5rem;
    }
    
    .hero-image {
        display: none;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    .project-content {
        padding: 1rem;
    }
}

/* About Story Styles */
.about-story {
    margin: 2rem 0;
}

.story-paragraph {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: slideInStory 0.8s ease-out forwards;
    animation-delay: calc(var(--story-index, 0) * 0.2s);
}

.story-paragraph:nth-child(1) { --story-index: 1; }
.story-paragraph:nth-child(2) { --story-index: 2; }
.story-paragraph:nth-child(3) { --story-index: 3; }
.story-paragraph:nth-child(4) { --story-index: 4; }

@keyframes slideInStory {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95) rotateX(10deg);
    }
    50% {
        opacity: 0.7;
        transform: translateY(10px) scale(0.98) rotateX(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.story-paragraph.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: storyReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes storyReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9) rotateY(-5deg);
        filter: blur(3px);
    }
    30% {
        opacity: 0.6;
        transform: translateY(20px) scale(0.95) rotateY(-2deg);
        filter: blur(1px);
    }
    70% {
        opacity: 0.9;
        transform: translateY(5px) scale(1.02) rotateY(1deg);
        filter: blur(0px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(0deg);
        filter: blur(0px);
    }
}

/* Efecto de aparición más suave en el scroll */
.story-paragraph.in-view {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px) rotateX(10deg);
    }
    50% {
        opacity: 0.7;
        transform: translateY(15px) rotateX(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Animación de texto typing */
.story-paragraph.typing p {
    overflow: hidden;
    border-right: 2px solid #044348;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* Animación de pulso sutil */
.story-paragraph.pulse p {
    animation: subtlePulse 4s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(4, 67, 72, 0.1);
        border-left-color: #044348;
    }
    50% {
        box-shadow: 0 6px 25px rgba(4, 67, 72, 0.15);
        border-left-color: #055359;
    }
}

.story-paragraph p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(4, 67, 72, 0.05) 0%, transparent 50%);
    z-index: -1;
    transition: all 0.3s ease;
}

.story-paragraph.glow p::before {
    animation: glowBorder 2s ease-in-out infinite alternate;
}

@keyframes glowBorder {
    0% {
        background: linear-gradient(135deg, rgba(4, 67, 72, 0.05) 0%, transparent 50%);
    }
    100% {
        background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, rgba(4, 67, 72, 0.05) 50%, transparent 70%);
    }
}

.story-paragraph p {
    text-align: justify;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #1C1C1C;
    margin: 0;
    padding: 1.2rem;
    background: rgba(232, 230, 223, 0.5);
    border-left: 3px solid #044348;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(4, 67, 72, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: left center;
}

.story-paragraph p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(4, 67, 72, 0.05) 0%, transparent 50%);
    z-index: -1;
    transition: all 0.3s ease;
}

.story-paragraph p::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.story-paragraph p:hover {
    transform: translateX(8px) scale(1.01);
    border-left-color: #C9A227;
    border-left-width: 5px;
    box-shadow: 0 8px 35px rgba(4, 67, 72, 0.15), 0 0 20px rgba(201, 162, 39, 0.1);
    background: rgba(232, 230, 223, 0.8);
}

.story-paragraph p:hover::after {
    left: 100%;
}

.story-paragraph p:hover::before {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
}

@media (max-width: 768px) {
    .story-paragraph p {
        padding: 1rem;
        font-size: 1rem;
        line-height: 1.6;
    }
}
