/* Color Palette - Modern Minimal */
:root {
    --bg-main: #FAFAFA;
    --bg-dark: #2A4035;
    --bg-card: #FFFFFF;
    --text-main: #111111;
    --text-light: #FFFFFF;
    --text-muted: #666666;
    --accent-primary: #F5A623;
    --accent-dark: #2A4035;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --section-padding: 80px 20px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Reusable Components */
.section {
    padding: var(--section-padding);
    max-width: var(--max-width);
    margin: 0 auto;
}

.dark-section {
    background-color: var(--bg-dark);
    color: var(--text-light);
    max-width: 100%;
}

.dark-section .section-title h2,
.dark-section .header-subtitle,
.dark-section .description-light {
    color: var(--text-light);
}

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

.yellow-text {
    color: var(--accent-primary) !important;
}

.highlight-yellow {
    color: var(--accent-primary);
}

.light-card {
    background: var(--bg-card);
    border: 1px solid #EEEEEE;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    gap: 10px;
}

.btn-primary {
    background: var(--bg-dark);
    color: #fff;
}
.btn-primary:hover {
    background: #1e2e26;
    transform: translateY(-2px);
}
.icon-circle {
    background: var(--accent-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}
.btn-secondary:hover {
    background: var(--text-main);
    color: #fff;
}

.btn-dark {
    background: var(--bg-dark);
    color: #fff;
    padding: 8px 20px;
}
.btn-dark:hover {
    background: #1e2e26;
}
.icon-circle-small {
    background: white;
    color: var(--bg-dark);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.btn-outline-yellow {
    border: 2px solid var(--accent-primary);
    color: var(--text-light);
    border-radius: 30px;
    padding: 12px 24px;
}
.btn-outline-yellow:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
}
.icon-circle-yellow {
    background: white;
    color: var(--accent-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 20px 0;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #EEE;
    padding: 15px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: var(--bg-dark);
    border-radius: 40px;
    padding: 10px 20px;
}

header.scrolled .nav-container {
    background: transparent;
    padding: 0 20px;
}
header.scrolled .nav-links, header.scrolled .logo {
    color: var(--text-main);
}
header.scrolled .btn-outline {
    border-color: var(--text-main);
    color: var(--text-main);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    font-family: var(--font-heading);
}

.logo-circle {
    background: var(--accent-primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links {
    color: #DDDDDD;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links:hover {
    color: var(--accent-primary);
}

.nav-links.btn-outline {
    background: white;
    color: var(--bg-dark);
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
}
.nav-links.btn-outline:hover {
    background: var(--accent-primary);
    color: white;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.3s;
}
header.scrolled .bar {
    background-color: var(--text-main);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hello-tag {
    display: inline-block;
    border: 1px dashed var(--accent-primary);
    padding: 8px 16px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
}
.corner {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
}
.top-left { top: -3px; left: -3px; }
.top-right { top: -3px; right: -3px; }
.bottom-left { bottom: -3px; left: -3px; }
.bottom-right { bottom: -3px; right: -3px; }

.hero .title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-weight: 800;
}

.hero .description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 90%;
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

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

.blob-bg {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--accent-primary);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: 1;
}

.portrait {
    position: relative;
    z-index: 2;
    width: 300px;
    height: 400px;
    background: transparent;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: #CCCCCC;
    overflow: hidden;
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.floating-badge {
    position: absolute;
    z-index: 3;
    right: 10%;
    top: 20%;
    background: var(--bg-dark);
    color: white;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 3px dashed var(--accent-primary);
    animation: float 4s ease-in-out infinite;
}
.badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    font-size: 0.8rem;
}
.badge-inner i {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.floating-tag {
    position: absolute;
    z-index: 3;
    background: var(--bg-dark);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.tag-1 {
    bottom: 20%;
    left: 10%;
    animation: float 5s ease-in-out infinite alternate;
}
.tag-2 {
    bottom: 10%;
    right: 20%;
    background: var(--accent-primary);
    color: var(--text-main);
    animation: float 6s ease-in-out infinite alternate-reverse;
}

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

/* Marquee Section */
.marquee-container {
    width: 100%;
    background: var(--accent-primary);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-top: 2px solid var(--bg-dark);
    border-bottom: 2px solid var(--bg-dark);
}
.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
}
.marquee-content span {
    margin: 0 30px;
}
.marquee-content i {
    font-size: 1rem;
    vertical-align: middle;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Services */
.section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}
.header-subtitle {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
}
.header-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-title h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.service-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.service-card h3 {
    font-size: 1.2rem;
    font-family: var(--font-heading);
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
}
.learn-more {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
}
.learn-more:hover {
    text-decoration: underline;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--section-padding);
}
.about-image {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blob-bg-yellow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--accent-primary);
    border-radius: 50%;
    z-index: 1;
}
.floating-pill {
    position: absolute;
    z-index: 3;
    background: var(--bg-dark);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}
.pill-1 { top: 20%; left: 0; }
.pill-2 { top: 40%; right: 0; background: var(--accent-primary); color: var(--text-main); border:none;}
.pill-3 { bottom: 30%; left: 10%; }
.pill-4 { bottom: 10%; right: 20%; }

.light-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}
.description-light {
    color: #DDDDDD;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.stats-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}
.stat-item h3 {
    font-size: 2rem;
    color: var(--accent-primary);
    font-family: var(--font-heading);
}
.stat-item p {
    font-size: 0.9rem;
    color: #DDDDDD;
}

.about-actions {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Timeline / Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
}
.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: #EAEAEA;
    top: 0;
    bottom: 0;
    left: 20px;
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border-radius: 50%;
    left: 13px;
    top: 20px;
    box-shadow: 0 0 0 4px var(--bg-main);
}
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}
.timeline-header h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}
.timeline-date {
    background: rgba(245, 166, 35, 0.1);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
}
.timeline-content .company {
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Tools */
.tool-circle {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.tool-circle:hover {
    transform: translateY(-5px);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.project-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 30px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 2px;
    -webkit-overflow-scrolling: touch;
}
.project-tabs::-webkit-scrollbar {
    display: none;
}
/* Centers the tabs when they fit, stays left-aligned and scrollable when they don't */
.project-tab:first-child { margin-left: auto; }
.project-tab:last-child { margin-right: auto; }
.project-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    background: var(--bg-card);
    color: var(--text-main);
    border: 2px solid #E5E5E5;
    border-radius: 30px;
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.project-tab:hover {
    border-color: var(--accent-primary);
}
.project-tab.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--text-main);
}
.project-tab:focus-visible,
.project-link:focus-visible {
    outline: 3px solid var(--bg-dark);
    outline-offset: 2px;
}
.project-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}
.project-card.visible {
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.3s ease;
}
.project-card.is-filtered {
    opacity: 0;
    transform: scale(0.95);
}
.project-card[hidden] {
    display: none;
}
.project-media {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4px;
}
.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-dark), #46685A);
}
.project-placeholder i {
    font-size: 2rem;
}
.project-placeholder span {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: 1px;
}
.project-placeholder.cat-erp-pos { background: linear-gradient(135deg, #1F3A4D, #3C6A82); }
.project-placeholder.cat-websites { background: linear-gradient(135deg, #3A2F4D, #6A5B87); }
.project-placeholder.cat-infra { background: linear-gradient(135deg, #3B3B3B, #6B6B6B); }
.project-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.project-badge.status-live { background: #DCFCE7; color: #166534; }
.project-badge.status-dev { background: #FEF3C7; color: #92400E; }
.project-badge.status-beta { background: #DBEAFE; color: #1E40AF; }
.project-badge.status-done { background: #F3F4F6; color: #374151; }
.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16A34A;
}
.project-card h3 {
    font-size: 1.15rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}
.project-subtitle {
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: -8px;
}
.project-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.project-meta strong {
    color: var(--text-main);
}
.project-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
}
.project-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.project-highlights li {
    position: relative;
    padding-left: 18px;
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.45;
}
.project-highlights li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-primary);
}
.project-role {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 0;
    border-top: 1px solid #EEE;
    width: 100%;
    margin-top: auto;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    background: #F0F0F0;
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bg-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 0;
    border-top: 1px solid #EEE;
    width: 100%;
    margin-top: auto;
}
.project-link:hover {
    color: var(--accent-primary);
}
/* Qualifications */
.qualifications-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    margin-top: 40px;
}
.qual-heading {
    font-family: var(--font-heading);
    margin-bottom: 25px;
    color: var(--text-main);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.qual-heading i {
    color: var(--accent-primary);
}
.qual-grid-1, .qual-grid-2 {
    display: grid;
    gap: 20px;
}
.qual-grid-1 {
    grid-template-columns: 1fr;
}
.qual-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.contact-card {
    text-decoration: none;
    text-align: center;
    padding: 40px 20px;
}
.contact-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}
.contact-card h3 {
    color: var(--text-main);
    margin-bottom: 10px;
}
.contact-card p {
    color: var(--text-muted);
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.1, 0.7, 0.1, 1);
}
.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes fadeIn {
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .about-grid, .qualifications-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .qual-heading {
        justify-content: center;
    }
    .hero-image {
        grid-row: 1;
    }
    .cta-buttons, .about-actions, .stats-grid {
        justify-content: center;
    }
    .header-title {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .services-grid, .projects-grid, .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        border-radius: 20px;
    }
    .nav-menu.active {
        left: 0;
    }
    .menu-toggle {
        display: flex;
    }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .hero .title { font-size: 2.5rem; }
    .light-title { font-size: 2.5rem; }
    .services-grid, .contact-grid, .qual-grid-2 {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        flex-direction: column;
        gap: 15px;
    }
}
/* Projects stay 2-up on tablets, single column on phones */
@media (max-width: 640px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
