/* ===== CSS Variables - Sophisticated Light Theme ===== */
:root {
    --primary: #2d6a4f;
    --primary-light: #40916c;
    --primary-dark: #1b4332;
    --secondary: #bc6c25;
    --accent: #dda15e;
    --dark: #fefae0;
    --dark-light: #f5f1e3;
    --dark-lighter: #ebe7d9;
    --light: #283618;
    --gray: #606c38;
    --gradient-1: linear-gradient(135deg, #2d6a4f 0%, #40916c 50%, #52b788 100%);
    --gradient-2: linear-gradient(135deg, #bc6c25 0%, #dda15e 100%);
    --shadow-sm: 0 1px 3px rgba(40, 54, 24, 0.08);
    --shadow-md: 0 4px 12px rgba(40, 54, 24, 0.1);
    --shadow-lg: 0 10px 30px rgba(45, 106, 79, 0.12);
    --shadow-xl: 0 25px 50px rgba(45, 106, 79, 0.15);
    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

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

/* ===== Cursor Glow ===== */
.cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(45, 106, 79, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(254, 250, 224, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(40, 54, 24, 0.08);
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-full);
    transition: var(--transition);
    color: var(--gray);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(45, 106, 79, 0.08);
}

.nav-link.active {
    color: white;
    background: var(--primary);
}

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

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
    background: linear-gradient(180deg, #fefae0 0%, #f5f1e3 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    animation: float 15s ease-in-out infinite;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -150px;
}

.sphere-2 {
    width: 450px;
    height: 450px;
    background: var(--secondary);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.02);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    background: rgba(45, 106, 79, 0.1);
    border: 1px solid rgba(45, 106, 79, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
    animation: fadeInUp 0.6s ease;
    color: var(--primary);
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.hero-title {
    margin-bottom: 1.25rem;
}

.title-line {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray);
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.6s ease 0.1s both;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.title-name {
    display: block;
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--light);
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.6s ease 0.3s both;
    font-weight: 600;
}

.hero-description {
    color: var(--gray);
    font-size: 1.05rem;
    max-width: 480px;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.4s both;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
    animation: fadeInUp 0.6s ease 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(45, 106, 79, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 106, 79, 0.35);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== Hero Stats ===== */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.25rem;
}

/* ===== Hero Image ===== */
.hero-image {
    position: relative;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.image-wrapper {
    position: relative;
}

.image-frame {
    width: 360px;
    height: 360px;
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(45, 106, 79, 0.2);
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--dark);
    border-radius: calc(var(--radius-lg) - 4px);
}

.profile-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 4px);
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: white;
    border: 1px solid rgba(45, 106, 79, 0.15);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--light);
    animation: cardFloat 4s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(40, 54, 24, 0.1);
}

.floating-card i {
    font-size: 1.15rem;
}

.card-1 {
    top: 12%;
    left: -15px;
    animation-delay: 0s;
}

.card-1 i {
    color: #e34c26;
}

.card-2 {
    top: 45%;
    right: -25px;
    animation-delay: -1.5s;
}

.card-2 i {
    color: #264de4;
}

.card-3 {
    bottom: 12%;
    left: 5px;
    animation-delay: -3s;
}

.card-3 i {
    color: #f0db4f;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ===== Section Styles ===== */
section {
    padding: 6rem 0;
}

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

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(45, 106, 79, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--light);
    letter-spacing: -0.5px;
}

/* ===== About Section ===== */
.about {
    background: var(--dark-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-placeholder {
    width: 100%;
    aspect-ratio: 1;
    max-width: 380px;
    background: var(--gradient-1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 auto;
    box-shadow: 0 25px 50px rgba(45, 106, 79, 0.15);
}

.experience-badge {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: var(--gradient-2);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 15px 40px rgba(188, 108, 37, 0.25);
    color: white;
}

.exp-number {
    font-size: 1.75rem;
    font-weight: 700;
    display: block;
}

.exp-text {
    font-size: 0.8rem;
    opacity: 0.95;
}

.about-text h3 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: var(--light);
    font-weight: 600;
}

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

.about-info {
    margin-bottom: 1.75rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(45, 106, 79, 0.1);
}

.info-label {
    color: var(--gray);
    min-width: 75px;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: var(--light);
    font-size: 0.9rem;
}

/* ===== Skills Section ===== */
.skills {
    background: var(--dark);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(45, 106, 79, 0.1);
    transition: var(--transition);
}

.skill-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(45, 106, 79, 0.12);
}

.skill-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.25rem;
}

.skill-card h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--light);
    font-weight: 600;
}

.skill-bar {
    height: 6px;
    background: var(--dark-lighter);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1s ease;
}

/* ===== Projects Section ===== */
.projects {
    background: var(--dark-light);
}

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

.project-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(45, 106, 79, 0.08);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(45, 106, 79, 0.1);
    border-color: var(--primary);
}

.project-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-placeholder {
    height: 200px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.4);
}

.project-info {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(45, 106, 79, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--light);
    font-weight: 600;
}

.project-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

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

.project-tech span {
    padding: 0.3rem 0.7rem;
    background: var(--dark-lighter);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--light);
    font-weight: 500;
}

/* ===== Contact Section ===== */
.contact {
    background: var(--dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--light);
    font-weight: 600;
}

.contact-info>p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    color: var(--light);
    font-size: 0.95rem;
}

.contact-item i {
    width: 44px;
    height: 44px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid rgba(45, 106, 79, 0.15);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(45, 106, 79, 0.1);
    box-shadow: 0 10px 30px rgba(40, 54, 24, 0.05);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--dark);
    border: 1px solid rgba(45, 106, 79, 0.15);
    border-radius: var(--radius-sm);
    color: var(--light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

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

.form-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-wa {
    flex: 1;
    min-width: 180px;
    background: #25D366;
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-wa:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-email {
    flex: 1;
    min-width: 180px;
    background: var(--gradient-1);
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.3);
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-light);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(45, 106, 79, 0.1);
}

.footer p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 8px 25px rgba(45, 106, 79, 0.25);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {

    .hero-container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .about-text,
    .contact-info {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 6rem 2rem;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

    .floating-card {
        display: none;
    }

    .hero-stats {
        gap: 2rem;
    }
}