/* ===================================
   VARIABLES & GLOBAL STYLES
   =================================== */

:root {
    --primary-color: #1b7e3d;
    --primary-light: #2d9c52;
    --primary-dark: #0f5226;
    --accent-color: #27a346;
    --secondary-color: #f39c12;
    --text-dark: #1a1a1a;
    --text-light: #555555;
    --text-muted: #888888;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.lang-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background: url('images/background.svg') center/cover fixed;
    background-attachment: fixed;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(27, 126, 61, 0.2), transparent 50%),
                linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(27, 126, 61, 0.3) 100%);
    z-index: 0;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    justify-content: center;
}

.hero-profile-image {
    flex: 0 0 auto;
    animation: fadeInLeft 0.8s ease 0.5s backwards;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
}

.theatrical-title-wrapper {
    margin-bottom: 30px;
    perspective: 1000px;
}

.theatrical-title {
    font-size: 4.5rem;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 3px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.05em;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 0 20px rgba(39, 163, 70, 0.8)) drop-shadow(0 0 35px rgba(39, 163, 70, 0.5)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
    animation: glowPulse 3s ease-in-out infinite;
}

.letter {
    display: inline-block;
    animation: theatricalEntrance 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: var(--delay);
    opacity: 0;
    transform-origin: center;
}

@keyframes theatricalEntrance {
    0% {
        opacity: 0;
        transform: scale(0) rotateY(-120deg) rotateZ(-30deg) translateY(-40px);
        text-shadow: 0 0 30px rgba(255, 0, 0, 1), 0 0 60px rgba(255, 100, 0, 0.8);
        filter: brightness(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotateY(15deg) rotateZ(5deg);
        text-shadow: 0 0 40px rgba(39, 163, 70, 1), 0 0 80px rgba(27, 126, 61, 0.8);
        filter: brightness(1.3);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg) rotateZ(0deg) translateY(0);
        text-shadow: 0 0 20px rgba(39, 163, 70, 0.7), 0 0 40px rgba(255, 255, 255, 0.3);
        filter: brightness(1);
    }
}

.letter {
    display: inline-block;
    animation: theatricalEntrance 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    animation-delay: var(--delay);
    opacity: 0;
    transform-origin: center;
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(39, 163, 70, 0.8)) drop-shadow(0 0 35px rgba(39, 163, 70, 0.5)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(39, 163, 70, 1)) drop-shadow(0 0 60px rgba(39, 163, 70, 0.8)) drop-shadow(0 0 20px rgba(255, 255, 255, 0.9));
        text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    }
}

.profile-image-container {
    width: 320px;
    height: 420px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(39, 163, 70, 0.6), 0 0 60px rgba(39, 163, 70, 0.3), 0 15px 35px rgba(0, 0, 0, 0.8);
    border: 5px solid rgba(39, 163, 70, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    position: relative;
    animation: profileGlow 3s ease-in-out infinite;
}

@keyframes profileGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(39, 163, 70, 0.6), 0 0 60px rgba(39, 163, 70, 0.3), 0 15px 35px rgba(0, 0, 0, 0.8);
        border-color: rgba(39, 163, 70, 0.8);
    }
    50% {
        box-shadow: 0 0 40px rgba(39, 163, 70, 0.9), 0 0 80px rgba(39, 163, 70, 0.6), 0 15px 50px rgba(0, 0, 0, 0.9);
        border-color: rgba(39, 163, 70, 1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(39, 163, 70, 0.5);
    animation: slideUp 0.8s ease 2.5s backwards;
    letter-spacing: 1px;
}

.hero-location {
    font-size: 1.1rem;
    color: #e8f5e9;
    margin-bottom: 35px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8), 0 0 15px rgba(39, 163, 70, 0.4);
    animation: slideUp 0.8s ease 2.7s backwards;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideUp 0.8s ease 2.9s backwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   BUTTONS
   =================================== */

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    gap: 30px;
}

.stat {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent-color);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===================================
   EXPERIENCE SECTION
   =================================== */

.experience {
    background: var(--bg-white);
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    text-align: right;
    padding-right: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 3;
    text-align: left;
    padding-left: 40px;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid var(--bg-white);
    border-radius: 50%;
    grid-column: 2;
    box-shadow: 0 0 0 4px var(--accent-color);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.position-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-direction: column;
}

.timeline-content ul {
    list-style: none;
    margin-top: 10px;
}

.timeline-content li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 20px;
}

.timeline-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ===================================
   SKILLS SECTION
   =================================== */

.skills {
    background: var(--bg-light);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: var(--bg-white);
    color: var(--primary-color);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
    display: inline-block;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ===================================
   PROJECTS SECTION
   =================================== */

.projects {
    background: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ===================================
   CERTIFICATIONS SECTION
   =================================== */

.certifications {
    background: var(--bg-light);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cert-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cert-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
}

.contact h2 {
    color: white;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 50px;
    opacity: 0.95;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-card p {
    opacity: 0.9;
}

.contact-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.contact-card a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ===================================
   CONTACT FORM
   =================================== */

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 50px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-wrapper h3 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.5rem;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    margin-top: 10px;
    font-weight: 700;
}

.contact-form .btn:hover {
    background: #e8860a;
    transform: translateY(-2px);
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 30px 0;
    border-top: 3px solid var(--accent-color);
}

.footer p {
    opacity: 0.9;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideText {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    45% {
        transform: translateX(0);
        opacity: 1;
    }
    55% {
        transform: translateX(0);
        opacity: 1;
    }
    95% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.animated-title {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    animation: slideText 4s ease-in-out infinite;
    display: inline-block;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
        min-height: auto;
    }

    .hero-wrapper {
        gap: 20px;
        align-items: center;
    }

    .hero-profile-image {
        order: 0;
    }

    .profile-image-container {
        width: 220px;
        height: 290px;
    }

    .theatrical-title {
        font-size: 2.5rem;
        letter-spacing: 1.5px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        gap: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .nav-menu {
        gap: 15px;
        font-size: 0.9rem;
    }

    .section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 2;
        text-align: left;
        padding: 0;
    }

    .timeline-marker {
        grid-column: 1;
    }

    .projects-grid,
    .cert-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .section {
        padding: 50px 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        gap: 0;
        padding: 20px 0;
        display: none;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {
    .theatrical-title {
        font-size: 1.6rem;
        letter-spacing: 0.8px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-wrapper {
        gap: 15px;
        padding: 0 10px;
    }

    .hero-profile-image {
        flex-shrink: 0;
    }

    .profile-image-container {
        width: 160px;
        height: 210px;
        border: 3px solid rgba(39, 163, 70, 0.8);
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .contact-grid {
        gap: 20px;
    }

    .contact-form-wrapper {
        padding: 20px;
    }

    .about-stats {
        gap: 15px;
    }

    .stat {
        padding: 15px;
    }
}
