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

:root {
    --primary-color: #4e3f0c;
    --secondary-color: #b19911;
    --accent-color: #e76f51;
    --light-bg: #f7f7f7;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #ddd;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
}

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

nav.navbar {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        max-height: 300px;
        padding: 1rem 0;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .nav-links a:hover {
        background-color: rgba(177, 153, 17, 0.2);
    }
}

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    padding: 4rem 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    justify-content: center;
}

.profile-section {
    text-align: center;
    max-width: 500px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    animation: floatImage 4s ease-in-out infinite;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.profile-image:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
    animation-play-state: paused;
}

@keyframes floatImage {
    0% {
        transform: translateY(0px);
    }

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

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

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn.github {
    background-color: rgba(255, 255, 255, 0.2);
}

.social-btn.github:hover {
    background-color: #333;
    transform: translateY(-3px);
}

.social-btn.linkedin {
    background-color: rgba(255, 255, 255, 0.2);
}

.social-btn.linkedin:hover {
    background-color: #0077b5;
    transform: translateY(-3px);
}

.social-btn.whatsapp {
    background-color: rgba(255, 255, 255, 0.2);
}

.social-btn.whatsapp:hover {
    background-color: #25d366;
    transform: translateY(-3px);
}

.about {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
}

.about-text {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.skills {
    padding: 4rem 0;
    background-color: #ffffff;
}

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

.skill-category {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.category-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #ffffff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.skill-tag.ai-tag {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.certificates {
    padding: 4rem 0;
}

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

.certificate-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.6s ease;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(50px);
}

.certificate-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.certificate-card:nth-child(1) {
    transition-delay: 0s;
}

.certificate-card:nth-child(2) {
    transition-delay: 0.15s;
}

.certificate-card:nth-child(3) {
    transition-delay: 0.3s;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.cert-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 1.5rem;
}

.cert-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.institute {
    font-size: 0.9rem;
    opacity: 0.9;
    display: block;
}

.cert-details {
    padding: 1.5rem;
}

.cert-details p {
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.cert-details strong {
    color: var(--primary-color);
}

.cert-description {
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-light);
    line-height: 1.6;
}

.cert-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    background-color: var(--light-bg);
    font-size: 0.9rem;
    color: var(--text-light);
}

.contact {
    background-color: var(--light-bg);
    padding: 4rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    width: fit-content;
}

.contact-link:hover {
    background-color: var(--secondary-color);
    transform: translateX(5px);
}

.contact-form {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    min-height: 1.2em;
}

.form-status.success {
    color: #2e7d32;
}

.form-status.error {
    color: #c62828;
}

.footer {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .logo {
        font-size: 1.2rem;
    }
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .about {
        padding: 2rem 0;
    }

    .about-content {
        padding: 0 1rem;
    }

    .about-text {
        font-size: 0.95rem;
        text-align: left;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .skills {
        padding: 2rem 0;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.2rem;
        border-left-width: 3px;
    }

    .category-title {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .skill-tags {
        gap: 0.6rem;
    }

    .skill-tag {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-radius: 15px;
    }

    .certificates {
        padding: 2rem 0;
    }

    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certificate-card {
        margin: 0;
    }

    .cert-header {
        padding: 1.2rem;
    }

    .cert-header h3 {
        font-size: 1.1rem;
    }

    .cert-details {
        padding: 1.2rem;
    }

    .cert-details p {
        margin-bottom: 0.6rem;
        font-size: 0.9rem;
    }

    .cert-footer {
        font-size: 0.85rem;
        padding: 0.8rem 1.2rem;
    }

    .contact {
        padding: 2rem 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .contact-text {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .contact-links {
        gap: 0.8rem;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.2rem;
    }

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

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem 0.9rem;
        font-size: 0.95rem;
    }

    .form-group textarea {
        min-height: 100px;
    }

    .submit-btn {
        padding: 0.9rem;
        font-size: 0.95rem;
    }

    .footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about {
        padding: 3rem 0;
    }

    .skills {
        padding: 3rem 0;
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .category-title {
        font-size: 1rem;
    }

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

    .certificate-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .contact {
        padding: 3rem 0;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-links {
        gap: 0.8rem;
    }

    .contact-link {
        width: 100%;
        justify-content: center;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* ================== DESKTOP - 1200px+ ================== */
@media (min-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .hero {
        min-height: 600px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .skills-container {
        grid-template-columns: repeat(3, 1fr);
    }

    .certificate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}