:root {
    --primary-color: #00ADB5;
    --secondary-color: #393E46;
    --bg-color: #EEEEEE;
    --text-color: #222831;
    --card-bg: #FFFFFF;
    --nav-bg: rgba(238, 238, 238, 0.95);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-main: 'Poppins', sans-serif;
}

[data-theme="dark"] {
    --bg-color: #222831;
    --text-color: #EEEEEE;
    --secondary-color: #00ADB5;
    --card-bg: #393E46;
    --nav-bg: rgba(34, 40, 49, 0.95);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline {
    border-color: var(--text-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

#main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 15px 0;
    transition: padding 0.3s;
}

#main-header.scrolled {
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

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

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

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

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

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

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: var(--transition);
}

#theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(15deg);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px; 
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.greeting {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.role {
    font-size: 1.8rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.quick-facts {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.badge {
    background-color: rgba(0, 173, 181, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.hero-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 173, 181, 0.3);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    z-index: 1;
    animation: float 6s infinite ease-in-out;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    top: -20px;
    left: 20px;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    border: 5px solid var(--text-color);
    bottom: -30px;
    right: 20px;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    top: 50%;
    left: -30px;
    animation-delay: 4s;
}

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


.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: reveal 0.8s forwards ease-out;
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    color: #fff;
}

.skill-item i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.skill-item:hover i {
    color: #fff;
}


.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: var(--transition);
}

.gallery-item:hover .overlay-content {
    transform: translateY(0);
}

.icon-btn {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    line-height: 40px;
    margin-top: 15px;
    transition: var(--transition);
}

.icon-btn:hover {
    background: #fff;
    color: var(--primary-color);
}


.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 173, 181, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.contact-form .form-group {
    position: relative;
    margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #ddd;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form label {
    position: absolute;
    top: 10px;
    left: 0;
    color: #999;
    pointer-events: none;
    transition: var(--transition);
}

.contact-form input:focus ~ label,
.contact-form input:valid ~ label,
.contact-form textarea:focus ~ label,
.contact-form textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--primary-color);
}

.resume-card {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    align-items: center;
}

.resume-meta h3 {
    margin-bottom: 5px;
}

.resume-meta p {
    opacity: 0.8;
    margin-bottom: 15px;
}

.resume-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.resume-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resume-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}


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

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


footer {
    background-color: var(--card-bg);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        order: 2;
    }

    .hero-image-wrapper {
        order: 1;
        margin-bottom: 20px;
    }

    .greeting, .name, .role, .intro, .quick-facts, .cta-group {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .quick-facts {
        justify-content: center;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .resume-card {
        grid-template-columns: 1fr;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .name {
        font-size: 2.5rem !important; 
    }
    
    .role {
        font-size: 1.4rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--card-bg);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

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

    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-image {
        width: 280px;
        height: 280px;
    }

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

    .gallery-item.large,
    .gallery-item.wide {
        grid-row: span 1;
        grid-column: span 1;
    }

    .cta-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-group .btn {
        width: 100%;
        text-align: center;
    }
}
