@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --port-font-sans: 'Plus Jakarta Sans', sans-serif;
    --port-font-display: 'Outfit', sans-serif;
    --primary-color: #060D0c;
    --secondary-color: #F0EDE5;
    --accent-color: #5D54A4; /* Elegant royal indigo */
    --accent-light: rgba(93, 84, 164, 0.1);
    --card-bg: #FAF9F6; /* Lighter cream color for high contrast against sand background */
    --text-muted: #5C6261;
    --border-color: rgba(6, 13, 12, 0.1);
    --shadow-sm: 0 2px 8px rgba(6, 13, 12, 0.05);
    --shadow-md: 0 10px 30px rgba(6, 13, 12, 0.08);
    --shadow-lg: 0 20px 40px rgba(6, 13, 12, 0.12);
}

/* Base resets & styles for Portfolio */
body {
    height: auto !important;
    min-height: 100vh;
}

.portfolio-page {
    font-family: var(--port-font-sans);
    background-color: var(--secondary-color);
    color: var(--primary-color);
    line-height: 1.7;
    overflow-x: hidden;
}

.portfolio-page h1,
.portfolio-page h2,
.portfolio-page h3,
.portfolio-page h4,
.portfolio-page h5,
.portfolio-page h6 {
    font-family: var(--port-font-display);
    color: var(--primary-color);
    font-weight: 700;
}

/* Link override inside portfolio */
.portfolio-page a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Navigation Overrides (since header matches body) */
.header {
    font-family: var(--port-font-sans) !important;
    border: 1px solid var(--border-color);
}
.navbar-menu ul li a {
    font-family: var(--port-font-sans) !important;
}

/* Sections Styling */
.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

.section-title-wrap {
    margin-bottom: 60px;
}

.section-subtitle {
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
}

/* Hero Section */
.hero-sec {
    min-height: 100vh;
    padding-top: 140px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--secondary-color);
}

.hero-tag {
    background-color: var(--accent-light);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    border: 1px solid rgba(93, 84, 164, 0.15);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero-title span.text-highlight {
    background: linear-gradient(120deg, var(--accent-color), #8A7FD6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-custom {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.btn-primary-custom:hover {
    background-color: transparent;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

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

/* Floating Tech Visual on Right */
.hero-visual-container {
    position: relative;
    height: 480px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 20px;
    width: 380px;
    height: 280px;
    padding: 30px;
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.hero-main-card:hover {
    transform: translateY(-5px);
}

.card-header-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(6, 13, 12, 0.15);
}
.card-dot:nth-child(1) { background-color: #FF5F56; }
.card-dot:nth-child(2) { background-color: #FFBD2E; }
.card-dot:nth-child(3) { background-color: #27C93F; }

.code-line {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-muted);
}
.code-line .keyword { color: var(--accent-color); font-weight: bold; }
.code-line .string { color: #2e7d32; }
.code-line .variable { color: #c62828; }

/* Floating Tech Badges */
.floating-badge {
    position: absolute;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    z-index: 3;
    font-size: 14px;
    transition: transform 0.1s ease-out;
}

.badge-html5 { top: 10%; left: 10%; animation: floatSlow 6s ease-in-out infinite alternate; }
.badge-php { bottom: 12%; left: 8%; animation: floatSlow 8s ease-in-out infinite alternate-reverse; }
.badge-css3 { top: 15%; right: 5%; animation: floatSlow 7s ease-in-out infinite alternate; }
.badge-js { bottom: 15%; right: 10%; animation: floatSlow 9s ease-in-out infinite alternate-reverse; }

.floating-badge i {
    font-size: 18px;
}
.badge-html5 i { color: #E34F26; }
.badge-php i { color: #777BB4; }
.badge-css3 i { color: #1572B6; }
.badge-js i { color: #F7DF1E; }

@keyframes floatSlow {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(3deg); }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-sec {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .hero-visual-container {
        height: 380px;
        margin-top: 40px;
    }
    .hero-main-card {
        width: 320px;
        height: 240px;
    }
}

/* Stats Counter Row */
.stats-sec {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 50px 0;
    border-radius: 24px;
    margin: 0 20px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 10;
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-family: var(--port-font-display);
    line-height: 1;
}

.stat-number span {
    color: var(--accent-color);
}

.stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(240, 237, 229, 0.7);
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-sec {
        margin: 0 10px;
        padding: 40px 0;
    }
    .stat-item {
        margin-bottom: 30px;
    }
    .stat-item:last-child {
        margin-bottom: 0;
    }
}

/* About Section */
.about-grid-content {
    padding-left: 20px;
}

.about-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-feat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.about-feat-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.about-feat-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent-light);
    color: var(--accent-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 16px;
}

.about-feat-card h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.about-feat-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 576px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* Projects Showcase */
.project-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 8px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(93, 84, 164, 0.3);
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.08);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 13, 12, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.project-link-icon:hover {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.project-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--accent-color);
    background-color: var(--accent-light);
    padding: 3px 10px;
    border-radius: 4px;
}

.project-tag.tag-in-progress {
    color: #e53935;
    background-color: rgba(229, 57, 53, 0.1);
    border: 1px solid rgba(229, 57, 53, 0.15);
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.15);
    color: var(--accent-color);
}

.skill-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
}

.skill-level {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Contact Section */
.contact-container {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 24px;
    padding: 60px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .contact-container {
        padding: 40px 20px;
    }
}

.contact-info-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.contact-info-desc {
    color: rgba(240, 237, 229, 0.7);
    margin-bottom: 40px;
}

.contact-details {
    margin-bottom: 40px;
}

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

.contact-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(240, 237, 229, 0.08);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.contact-text h5 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    color: rgba(240, 237, 229, 0.5);
}

.contact-text p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.contact-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(240, 237, 229, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color) !important;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-card {
    background: rgba(240, 237, 229, 0.04);
    border: 1px solid rgba(240, 237, 229, 0.1);
    border-radius: 16px;
    padding: 30px;
}

.form-group-custom {
    margin-bottom: 25px;
    position: relative;
}

.form-control-custom {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1.5px solid rgba(240, 237, 229, 0.2);
    padding: 10px 0;
    color: var(--secondary-color);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-control-custom:focus {
    border-color: var(--secondary-color);
}

.form-label-custom {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 15px;
    color: rgba(240, 237, 229, 0.6);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-control-custom:focus ~ .form-label-custom,
.form-control-custom:not(:placeholder-shown) ~ .form-label-custom {
    top: -12px;
    font-size: 12px;
    color: rgba(240, 237, 229, 0.8);
    font-weight: 600;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000),
                transform 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

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

.reveal.fade-in {
    transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
