@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --black: #000000;
    --prussian-blue: #14213d;
    --orange: #ca6702;
    --alabaster: #e5e5e5;
    --white: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--black);
    color: var(--alabaster);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ==================== */
/* General & Container  */
/* ==================== */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

section {
    padding: 100px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--alabaster);
    font-size: 1.1rem;
    padding: 0 15px;
}

/* ==================== */
/* Header & Navigation  */
/* ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: background 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

header.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--orange);
    text-decoration: none;
    animation: fadeInUp 0.6s ease-out forwards;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

nav a {
    color: var(--alabaster);
    text-decoration: none;
    font-size: 0.95rem;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 400;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--orange);
    transition: width 0.3s ease;
}

nav a:hover,
nav a.active {
    color: var(--white);
}

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

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

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

nav ul li:nth-child(1) {
    animation-delay: 0.1s;
}

nav ul li:nth-child(2) {
    animation-delay: 0.2s;
}

nav ul li:nth-child(3) {
    animation-delay: 0.3s;
}

nav ul li:nth-child(4) {
    animation-delay: 0.4s;
}

nav ul li:nth-child(5) {
    animation-delay: 0.5s;
}

nav ul li:nth-child(6) {
    animation-delay: 0.6s;
}

nav ul li:nth-child(7) {
    animation-delay: 0.7s;
}

/* ==================== */
/* Hamburger Menu       */
/* ==================== */
#hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

#hamburger-menu div {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px;
    transition: all 0.3s ease;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ==================== */
/* Hero Section         */
/* ==================== */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--black);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 140px 5% 0;
}

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

.hero-text {
    flex: 1;
    text-align: left;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.hero-text h3 {
    color: var(--alabaster);
    font-weight: 400;
    font-size: 1rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--white);
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--alabaster);
}

#typing-text {
    color: var(--orange);
    font-weight: 600;
}

.hero-social-links {
    margin-top: 25px;
}

.hero-social-links a {
    color: var(--alabaster);
    font-size: 1.4rem;
    margin-right: 20px;
    transition: color 0.3s ease;
}

.hero-social-links a:last-child {
    margin-right: 0;
}

.hero-social-links a:hover {
    color: var(--orange);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    opacity: 0;
}

.hero-image img {
    max-width: 320px;
    width: 100%;
    border-radius: 50%;
    border: 3px solid var(--orange);
    height: 320px;
    object-fit: cover;
}

/* ==================== */
/* Buttons              */
/* ==================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 6px;
    color: var(--black);
    background-color: var(--orange);
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.btn:hover {
    background-color: #e8950f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(252, 163, 17, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

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

.btn-secondary:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: transparent;
    box-shadow: none;
}

/* ==================== */
/* Cards (Shared)       */
/* ==================== */
.glass-card {
    background: var(--prussian-blue);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==================== */
/* About Me             */
/* ==================== */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid var(--orange);
    padding: 4px;
}

/* ==================== */
/* Scroll Reveal        */
/* ==================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== */
/* Skills               */
/* ==================== */
.skills-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

.skill-category {
    background: var(--prussian-blue);
    padding: 24px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease;
}

.skill-category:hover {
    border-color: rgba(202, 103, 2, 0.3);
}

.skill-category h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--orange);
    padding-bottom: 10px;
    color: var(--white);
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    margin-bottom: 10px;
    color: var(--alabaster);
    transition: color 0.3s ease;
}

.skill-category ul li i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.skill-category ul li:hover {
    color: var(--white);
}

.skill-category ul li:hover i {
    color: var(--orange);
}

/* Skill Icon Colors — original brand colors */
.icon-html {
    color: #E34F26;
}

.icon-css {
    color: #1572B6;
}

.icon-js {
    color: #F7DF1E;
}

.icon-python {
    color: #3776AB;
}

.icon-php {
    color: #777BB4;
}

.icon-sql {
    color: #c7c7c7;
}

.icon-react {
    color: #61DAFB;
}

.icon-node {
    color: #339933;
}

.icon-laravel {
    color: #FF2D20;
}

.icon-bootstrap {
    color: #7952B3;
}

.icon-filament {
    color: #FF2D20;
}

.icon-word {
    color: #2B579A;
}

.icon-excel {
    color: #1D6F42;
}

.icon-alpine {
    color: #8BC0D0;
}

.icon-comm,
.icon-team,
.icon-problem,
.icon-time,
.icon-adapt,
.icon-critical,
.icon-growth,
.icon-detail,
.icon-leader {
    color: var(--orange);
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--orange);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    right: -9px;
    background-color: var(--black);
    border: 3px solid var(--orange);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.timeline-item:nth-child(even)::after {
    left: -5px;
}

.timeline-item:hover::after {
    background-color: var(--orange);
}

.timeline-content {
    padding: 20px 25px;
    position: relative;
    background: var(--prussian-blue);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--orange);
}

.timeline-content h3 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 4px;
}

.timeline-content h4 {
    font-size: 0.9rem;
    color: var(--alabaster);
    font-weight: 400;
    margin-bottom: 8px;
}

.timeline-content .date {
    color: var(--orange);
    font-weight: 500;
    font-size: 0.85rem;
}

.timeline-content p {
    color: var(--alabaster);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* ==================== */
/* Projects             */
/* ==================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--prussian-blue);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.project-header {
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.project-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--white);
}

/* Status Badge */
.status-badge {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-online {
    background-color: rgba(22, 163, 74, 0.15);
    color: #4ade80;
}

.status-badge.status-offline {
    background-color: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

/* Project Info Icon */
.project-info-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.2rem;
    color: var(--orange);
    cursor: help;
}

/* Project Image */
.project-image-placeholder {
    width: 100%;
    height: 170px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

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

.project-card p {
    flex-grow: 1;
    margin-bottom: 20px;
    color: var(--alabaster);
    font-size: 0.9rem;
}

.project-card p small {
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(252, 163, 17, 0.08);
    border-radius: 5px;
    border-left: 3px solid var(--orange);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

/* Certification Image */
.cert-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
}

.cert-btn {
    margin-top: auto;
}

/* ==================== */
/* Modal                */
/* ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    background: var(--prussian-blue);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    border-radius: 12px;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.close-button {
    color: var(--alabaster);
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: var(--orange);
    text-decoration: none;
    cursor: pointer;
}

#modal-title {
    margin-top: 0;
    color: var(--white);
    font-size: 1.8rem;
}

.modal-separator {
    width: 100%;
    height: 2px;
    background: var(--orange);
    margin: 15px 0;
    border-radius: 1px;
}

#modal-description {
    color: var(--alabaster);
    font-size: 1rem;
    line-height: 1.7;
}

.modal-content h4 {
    color: var(--white);
    margin-top: 20px;
    margin-bottom: 10px;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tools-list .tool-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--alabaster);
    transition: background-color 0.2s ease;
}

.tools-list .tool-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.tools-list .tool-item i {
    font-size: 1.3rem;
}

/* Tool icon brand colors */
.tools-list .tool-item .fa-html5 {
    color: #E34F26;
}

.tools-list .tool-item .fa-css3-alt {
    color: #1572B6;
}

.tools-list .tool-item .fa-js-square {
    color: #F7DF1E;
}

.tools-list .tool-item .fa-react {
    color: #61DAFB;
}

.tools-list .tool-item .fa-bootstrap {
    color: #7952B3;
}

.tools-list .tool-item .fa-php {
    color: #777BB4;
}

.tools-list .tool-item .fa-laravel {
    color: #FF2D20;
}

.tools-list .tool-item .fa-network-wired {
    color: #4FC3F7;
}

.tools-list .tool-item .fa-cogs {
    color: #90A4AE;
}

.tools-list .tool-item .fa-wrench {
    color: #FF8F00;
}

.tools-list .tool-item .fa-palette {
    color: #0052CC;
}

.tools-list .tool-item .fa-database {
    color: #4479A1;
}

.tools-list .tool-item .devicon-mysql-plain-wordmark {
    color: #4479A1;
}

.tools-list .tool-item .devicon-express-original {
    color: #68A063;
}

.tools-list .tool-item .devicon-tailwindcss-plain {
    color: #38B2AC;
}

.tools-list .tool-item .devicon-postgresql-plain {
    color: #336791;
}

/* ==================== */
/* Contact Section      */
/* ==================== */
.contact-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.contact-info,
.contact-form-wrapper {
    flex: 1;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--orange);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--orange);
    width: 25px;
    text-align: center;
}

.contact-item a {
    color: var(--alabaster);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--orange);
}

#contact-form {
    max-width: 700px;
    width: 100%;
    margin: 0;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--orange);
    opacity: 0.6;
}

.input-group:last-of-type i {
    top: 20px;
    transform: none;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 14px 14px 14px 45px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--orange);
}

#contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

#contact-form button {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* Form Status */
#form-status {
    display: none;
    padding: 12px;
    margin-top: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
}

#form-status.success {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

#form-status.error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==================== */
/* Footer               */
/* ==================== */
footer {
    text-align: center;
    padding: 40px;
    background: var(--prussian-blue);
}

footer p {
    color: var(--alabaster);
    font-size: 0.85rem;
    margin-top: 15px;
}

.social-links a {
    color: var(--alabaster);
    font-size: 1.5rem;
    margin: 0 12px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--orange);
}

/* ==================== */
/* Responsive           */
/* ==================== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        animation: none;
        opacity: 1;
    }

    .hero-image {
        margin-top: 40px;
        animation: none;
        opacity: 1;
    }

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

    .hero-social-links {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .contact-info,
    .contact-form-wrapper {
        width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        background: rgba(0, 0, 0, 0.9);
    }

    nav ul {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 1000;
    }

    nav ul.nav-active {
        transform: translateX(0);
    }

    nav ul li {
        margin: 20px 0;
        opacity: 0;
    }

    @keyframes navLinkFadeMobile {
        from {
            opacity: 0;
            transform: translateX(40px);
        }

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

    .nav-active li {
        animation: navLinkFadeMobile 0.4s ease forwards;
    }

    .nav-active li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-active li:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-active li:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-active li:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-active li:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-active li:nth-child(6) {
        animation-delay: 0.6s;
    }

    .nav-active li:nth-child(7) {
        animation-delay: 0.7s;
    }

    #hamburger-menu {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-image img {
        max-width: 250px;
        height: 250px;
    }

    section h2 {
        font-size: 2rem;
    }

    .timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 22px;
    }

    .timeline-item:nth-child(even)::after {
        left: 22px;
    }

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

    .modal-content {
        width: 90%;
        max-width: 90%;
        padding: 20px;
        max-height: 90vh;
    }

    #modal-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}