/* =====================================================================
   RESET & BASE — Force light mode, no dark mode override
   ===================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color-scheme: light only !important;
}

:root {
    color-scheme: light only !important;
    --black: #1a1a1a;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #f8f9fa;
    --border: #e5e7eb;
}

html {
    color-scheme: light only !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    overflow-x: hidden;
    -webkit-color-scheme: light !important;
}

/* Force ALL elements to use light colors */
input, textarea, select, button {
    color-scheme: light only !important;
    -webkit-color-scheme: light !important;
    background-color: #fafafa !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
}

input::placeholder, textarea::placeholder {
    color: #aaaaaa !important;
    -webkit-text-fill-color: #aaaaaa !important;
    opacity: 1 !important;
}

/* Hide scrollbar */
body::-webkit-scrollbar { display: none; }
body { -ms-overflow-style: none; scrollbar-width: none; }

/* =====================================================================
   NAVBAR
   ===================================================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #1a1a1a;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.8s ease;
}

nav.visible { transform: translateY(0); }

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

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    overflow: visible;
    position: relative;
}

.o-bounce {
    display: inline-block;
    will-change: transform;
    pointer-events: none;
}

/* Hamburger toggle (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    background-color: transparent !important;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links {
    position: relative;
    display: flex;
    gap: 0;
    align-items: center;
}

.nav-links a {
    color: #ffffff !important;
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    z-index: 2;
}

.nav-highlight {
    position: absolute;
    bottom: 0;
    height: 100%;
    background: #ffffff;
    border-radius: 10px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

.nav-links a.active { color: #1a1a1a !important; }
.nav-links a.active-partial { color: #888 !important; }
.nav-links a:not(.active):not(.active-partial):hover { color: #cccccc !important; }

/* Mobile nav */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 0.5rem 0 0.75rem;
        gap: 0;
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 0.65rem 0.5rem;
        border-bottom: 1px solid #333;
        font-size: 0.95rem;
    }

    .nav-links a:last-child { border-bottom: none; }
    .nav-highlight { display: none; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background-color: #ffffff !important;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-left {
    transform: translateX(-60px);
    opacity: 0;
    transition: all 0.9s ease 0.2s;
}

.hero-left.visible {
    transform: translateX(0);
    opacity: 1;
}

.name {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #1a1a1a !important;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.role-container {
    font-size: clamp(1rem, 2.5vw, 1.7rem);
    color: #555555;
    height: 2.8rem;
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

#role-text {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.6rem;
    background-color: #1a1a1a;
    margin-left: 3px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.motto {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: #666666;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    max-width: 520px;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    color: #1a1a1a !important;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
    color: #555555 !important;
    transform: scale(1.15);
}

.quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #1a1a1a !important;
    padding: 0.45rem 0.75rem;
    border-radius: 50px;
    cursor: default;
    transition: transform 0.2s ease;
}

.stat-card:hover { transform: translateY(-2px); }
.stat-icon svg { stroke: #ffffff; flex-shrink: 0; }
.stat-content { display: flex; flex-direction: column; line-height: 1.15; }
.stat-title { font-weight: 700; font-size: 0.8rem; color: #ffffff !important; white-space: nowrap; }
.stat-sub { font-size: 0.6rem; color: #999999 !important; white-space: nowrap; }

/* Hero Right */
.hero-right {
    transform: translateX(60px);
    opacity: 0;
    transition: all 0.9s ease 0.4s;
    display: flex;
    justify-content: center;
}

.hero-right.visible {
    transform: translateX(0);
    opacity: 1;
}

.profile-container {
    position: relative;
    width: min(500px, 90vw);
    height: min(500px, 90vw);
}

.profile-photo-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.profile-bg {
    position: absolute;
    width: 250px;
    height: 250px;
    background-color: #1a1a1a;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.profile-photo {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.lang-icon {
    position: absolute;
    width: 46px;
    height: 46px;
    background-color: #1a1a1a;
    padding: 9px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 20;
}

.lang-icon:nth-child(2) { top: 12%; left: 18%; animation: float1 4s ease-in-out infinite; }
.lang-icon:nth-child(3) { top: 8%; left: 72%; animation: float2 5s ease-in-out infinite; }
.lang-icon:nth-child(4) { top: 42%; right: 4%; animation: float3 4.5s ease-in-out infinite; }
.lang-icon:nth-child(5) { top: 68%; left: 12%; animation: float4 5.5s ease-in-out infinite; }
.lang-icon:nth-child(6) { bottom: 8%; right: 18%; animation: float5 4.8s ease-in-out infinite; }
.lang-icon:nth-child(7) { bottom: 25%; left: 5%; animation: float1 5.2s ease-in-out infinite; }

@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(8px,-18px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-12px,14px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(10px,12px)} }
@keyframes float4 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-10px,-14px)} }
@keyframes float5 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(12px,-10px)} }

.lang-icon:hover { transform: scale(1.2) !important; }
.icon-damage { background-color: #555 !important; transform: scale(1.1) rotate(-10deg) !important; }

/* Ripple */
.ripple-wave {
    position: fixed;
    border-radius: 50%;
    background: rgba(0,0,0,0.12);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.8s ease-out forwards;
    z-index: 9999;
}
@keyframes ripple { to { opacity: 0; transform: translate(-50%, -50%) scale(12); } }

/* Hero Responsive */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2rem 1.25rem;
    }

    .hero-left { order: 1; }
    .hero-right { order: 2; }

    .profile-container {
        width: 300px;
        height: 300px;
    }

    .profile-photo { width: 180px; height: 180px; }
    .profile-bg { width: 190px; height: 190px; }
    .lang-icon { width: 36px; height: 36px; padding: 8px; }
}

@media (max-width: 480px) {
    .quick-stats { gap: 0.4rem; }
    .stat-card { padding: 0.4rem 0.6rem; }
    .profile-container { width: 260px; height: 260px; }
    .profile-photo { width: 155px; height: 155px; }
    .profile-bg { width: 165px; height: 165px; }
}

/* =====================================================================
   MARQUEE
   ===================================================================== */
.marquee-divider {
    width: 100%;
    overflow: hidden;
    margin-top: 4rem;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    padding: 12px 0;
    width: fit-content;
}

.marquee-top { background-color: #000000; color: #ffffff; animation: mLeft 25s linear infinite; }
.marquee-bottom { background-color: #ffffff; color: #000000; border-top: 2px solid #000; border-bottom: 2px solid #000; animation: mRight 25s linear infinite; }

@keyframes mLeft { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes mRight { 0%{transform:translateX(-50%)} 100%{transform:translateX(0)} }

@media (max-width: 480px) {
    .marquee-track { font-size: 0.9rem; padding: 8px 0; }
}

/* =====================================================================
   ABOUT
   ===================================================================== */
.about-section {
    padding: 60px 0;
    background-color: #f8f9fa !important;
}

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

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1a1a1a !important;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-title.animate { opacity: 1; transform: translateY(0); }

.about-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-photo {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.about-photo.animate { opacity: 1; transform: translateX(0); }

.about-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.about-info { display: flex; flex-direction: column; gap: 1.5rem; }

.info-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.info-card {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.info-card.animate { opacity: 1; transform: translateX(0); }
.info-card:nth-child(1) { transition-delay: 0.3s; }
.info-card:nth-child(2) { transition-delay: 0.45s; }

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.6rem;
}

.card-header h3 { font-size: 0.95rem; font-weight: 700; color: #1a1a1a !important; }

.icon-box {
    width: 34px;
    height: 34px;
    background-color: #1a1a1a !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-box svg { width: 18px; height: 18px; stroke: #ffffff; }

.info-card p { font-size: 0.82rem; color: #666666 !important; line-height: 1.65; }

.personal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.75rem;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.info-item.animate { opacity: 1; transform: scale(1); }
.info-item:nth-child(1) { transition-delay: 0.5s; }
.info-item:nth-child(2) { transition-delay: 0.6s; }
.info-item:nth-child(3) { transition-delay: 0.7s; }
.info-item:nth-child(4) { transition-delay: 0.8s; }
.info-item:nth-child(5) { transition-delay: 0.9s; }
.info-item:nth-child(6) { transition-delay: 1.0s; }
.info-item:nth-child(7) { transition-delay: 1.1s; }

.info-item:hover {
    background-color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-2px) !important;
}

.info-item .icon-box { width: 36px; height: 36px; border-radius: 9px; }
.info-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.label { font-size: 0.7rem; color: #999999 !important; font-weight: 600; }
.value { font-size: 0.82rem; color: #1a1a1a !important; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 900px) {
    .about-content { grid-template-columns: 1fr; }
    .about-photo { max-width: 260px; margin: 0 auto; }
    .info-row { grid-template-columns: 1fr; }
    .personal-info { grid-template-columns: 1fr; }
}

/* =====================================================================
   SKILLS
   ===================================================================== */
.skills-section {
    padding: 60px 1.5rem;
    background-color: #ffffff !important;
}

.skills-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: #1a1a1a !important;
    margin-bottom: 2rem;
    opacity: 1 !important;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
}

.skill-card {
    background-color: #ffffff !important;
    border-radius: 8px;
    padding: 1.25rem;
    border: 2px solid #1a1a1a;
    box-shadow: 5px 5px 0px #1a1a1a;
    position: relative;
    opacity: 0;
    transform: rotateY(80deg);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid #1a1a1a;
    border-radius: 5px;
    pointer-events: none;
}

.skill-card.animate {
    animation: flipIn 0.55s ease forwards;
}

.skill-card.exiting {
    animation: flipOut 0.35s ease forwards !important;
    pointer-events: none;
}

@keyframes flipIn { to { opacity: 1; transform: rotateY(0deg); } }
@keyframes flipOut { to { opacity: 0; transform: rotateY(-80deg); } }

.skill-card:not(.animate):not(.exiting) { opacity: 0; transform: rotateY(80deg); }

.skill-card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0px #1a1a1a; }
.skill-card.animate:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0px #1a1a1a; }

.wide-card { grid-column: 1 / -1; }

.skill-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.skill-logo, .skill-logo-svg { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }
.skill-title { font-size: 1rem; font-weight: 600; color: #1a1a1a !important; }

.skill-items { display: flex; flex-direction: column; gap: 0.6rem; }

.skill-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem;
    background-color: #fafafa !important;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: background 0.2s, transform 0.2s;
}

.skill-item:hover { background-color: #f3f4f6 !important; transform: translateX(3px); }

.item-icon { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; margin-top: 2px; }
.item-content { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.item-name { font-size: 0.82rem; color: #1a1a1a !important; font-weight: 500; line-height: 1.3; }

.item-level {
    padding: 0.12rem 0.45rem;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    align-self: flex-start;
    white-space: nowrap;
}

.item-level.advanced { background-color: #dcfce7 !important; color: #166534 !important; }
.item-level.intermediate { background-color: #dbeafe !important; color: #1e40af !important; }
.item-level.foundation { background-color: #fef3c7 !important; color: #92400e !important; }

.tech-stack-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.4rem;
    background-color: #fafafa !important;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: background 0.2s, transform 0.2s;
    text-align: center;
}

.tech-item:hover { background-color: #f3f4f6 !important; transform: translateY(-3px); }
.tech-icon { width: 30px; height: 30px; object-fit: contain; aspect-ratio: 1/1; }
.tech-name { font-size: 0.72rem; font-weight: 600; color: #1a1a1a !important; line-height: 1.2; }

.sec-tool-item { flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.7rem 0.4rem; }
.sec-tool-item:hover { background-color: #fff5f5 !important; border-color: #fca5a5 !important; }

.tool-badge {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

.tool-badge.recon { background-color: #dbeafe !important; color: #1e40af !important; }
.tool-badge.exploit { background-color: #fee2e2 !important; color: #991b1b !important; }
.tool-badge.web { background-color: #fef3c7 !important; color: #92400e !important; }

@media (max-width: 768px) {
    .skills-grid { grid-template-columns: 1fr; }
    .wide-card { grid-column: 1; }
    .tech-stack-items { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================================
   PORTFOLIO
   ===================================================================== */
.portfolio-section {
    padding: 60px 0;
    background-color: #ffffff !important;
}

.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.tab-navigation.animate { opacity: 1; transform: translateY(0); }

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.25rem;
    background-color: #ffffff !important;
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a !important;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1a1a1a;
    transform: translateX(-101%);
    transition: transform 0.25s ease;
    z-index: 0;
}

.tab-btn span, .tab-btn svg { position: relative; z-index: 1; }

.tab-btn:hover::before, .tab-btn.active::before { transform: translateX(0); }
.tab-btn:hover, .tab-btn.active { color: #888888 !important; }

.tab-content { min-height: 500px; }

.tab-pane { display: none; animation: slideIn 0.5s ease; }
.tab-pane.active { display: block; }

@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.project-card {
    background-color: #ffffff !important;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit !important;
    box-shadow: 4px 4px 0 #1a1a1a;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    transform: translateY(20px);
}

.project-card.animate { animation: cardUp 0.5s ease forwards; }
.project-card.exiting { animation: cardDown 0.3s ease forwards !important; pointer-events: none; }
.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.12s; }
.project-card:nth-child(3) { animation-delay: 0.19s; }
.project-card:nth-child(4) { animation-delay: 0.26s; }
.project-card:nth-child(5) { animation-delay: 0.33s; }

@keyframes cardUp { to { opacity: 1; transform: translateY(0); } }
@keyframes cardDown { to { opacity: 0; transform: translateY(15px); } }

.project-card:not(.placeholder):hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 #1a1a1a; }
.project-card.placeholder { cursor: default; }

.project-image {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
    background-color: #f5f5f5 !important;
}

.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-image img { transform: scale(1.05); }

.project-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem 1rem 0.75rem;
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

.project-card:hover .project-overlay { transform: translateY(0); }
.view-project { color: #ffffff; font-weight: 600; font-size: 0.9rem; }

.project-info { padding: 1rem; }
.project-title { font-size: 0.95rem; font-weight: 700; color: #1a1a1a !important; margin-bottom: 0.4rem; }
.project-desc { font-size: 0.78rem; color: #666666 !important; line-height: 1.55; margin-bottom: 0.65rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { padding: 0.25rem 0.6rem; background-color: #1a1a1a !important; color: #ffffff !important; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }

.coming-soon { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: #666666; gap: 0.75rem; }
.coming-soon svg { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Certificates */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.certificate-card {
    background-color: #ffffff !important;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 4px 4px 0 #1a1a1a;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    opacity: 0;
    transform: scale(0.93);
}

.certificate-card.animate { animation: certIn 0.5s ease forwards; }
.certificate-card.exiting { animation: certOut 0.3s ease forwards !important; pointer-events: none; }
.certificate-card:nth-child(1) { animation-delay: 0.05s; }
.certificate-card:nth-child(2) { animation-delay: 0.12s; }

@keyframes certIn { to { opacity: 1; transform: scale(1); } }
@keyframes certOut { to { opacity: 0; transform: scale(0.93); } }

.certificate-card:hover { transform: translate(-2px, -2px) scale(1.01); box-shadow: 6px 6px 0 #1a1a1a; }
.certificate-image { height: 190px; overflow: hidden; background-color: #f5f5f5 !important; }
.certificate-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.certificate-card:hover .certificate-image img { transform: scale(1.05); }
.certificate-name { padding: 0.75rem 1rem; text-align: center; background-color: #ffffff !important; }
.certificate-name span { font-size: 0.82rem; font-weight: 600; color: #1a1a1a !important; }

.hidden-cert { display: none; }
.hidden-cert.show { display: block; }

.show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 180px;
    margin: 0 auto;
    padding: 0.65rem 1.25rem;
    background-color: #ffffff !important;
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a !important;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.show-more-btn:hover { background-color: #1a1a1a !important; color: #ffffff !important; }
.show-more-btn svg { transition: transform 0.3s ease; }

/* Timeline */
.timeline { position: relative; padding: 1.5rem 0; }
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 2px;
    background: #1a1a1a;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-30px);
}

.timeline-item.animate { animation: timeIn 0.5s ease forwards; }
.timeline-item.exiting { animation: timeOut 0.3s ease forwards !important; pointer-events: none; }
.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.15s; }
.timeline-item:nth-child(3) { animation-delay: 0.25s; }
.timeline-item:nth-child(4) { animation-delay: 0.35s; }

@keyframes timeIn { to { opacity: 1; transform: translateX(0); } }
@keyframes timeOut { to { opacity: 0; transform: translateX(-20px); } }

.timeline-item:nth-child(odd) .timeline-content { margin-right: calc(50% + 28px); margin-left: 0; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { margin-left: calc(50% + 28px); margin-right: 0; }

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 2px;
    width: 16px;
    height: 16px;
    background: #1a1a1a;
    border: 3px solid #ffffff;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 3px #1a1a1a;
}

.timeline-content {
    background-color: #ffffff !important;
    padding: 1rem 1.25rem;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    box-shadow: 3px 3px 0 #1a1a1a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content:hover { transform: translateY(-3px); box-shadow: 5px 5px 0 #1a1a1a; }
.timeline-year { display: inline-block; padding: 0.25rem 0.65rem; background-color: #1a1a1a !important; color: #ffffff !important; border-radius: 20px; font-size: 0.78rem; font-weight: 600; margin-bottom: 0.6rem; }
.timeline-title { font-size: 1rem; font-weight: 700; color: #1a1a1a !important; margin-bottom: 0.3rem; }
.timeline-subtitle { font-size: 0.85rem; color: #666666 !important; margin-bottom: 0.45rem; }
.timeline-desc { font-size: 0.82rem; color: #666666 !important; line-height: 1.55; }

/* Portfolio responsive */
@media (max-width: 900px) {
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .certificates-grid { grid-template-columns: 1fr 1fr; }
    .tab-navigation { gap: 0.5rem; }
}

@media (max-width: 600px) {
    .projects-grid { grid-template-columns: 1fr; }
    .certificates-grid { grid-template-columns: 1fr; }
    .tab-navigation { flex-direction: column; align-items: stretch; }
    .tab-btn { justify-content: center; }
    .timeline::before { left: 16px; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content { margin-left: 40px; margin-right: 0; text-align: left; }
    .timeline-marker { left: 16px; }
}

/* Certificate Modal */
.certificate-modal { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; }
.certificate-modal.active { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); }

.modal-content {
    position: relative;
    background-color: #ffffff !important;
    border: 3px solid #1a1a1a;
    border-radius: 14px;
    max-width: 860px;
    width: 92%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 1.75rem;
    z-index: 1;
    animation: slideUp 0.35s ease;
}

@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background-color: #1a1a1a !important;
    border: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease;
    z-index: 2;
}

.modal-close:hover { transform: rotate(90deg); }
.modal-close svg { stroke: #ffffff; }
.modal-info { margin-bottom: 1.5rem; }
.modal-info h3 { font-size: 1.6rem; font-weight: 700; color: #1a1a1a !important; margin-bottom: 0.6rem; }
.modal-info p { font-size: 0.9rem; color: #666666 !important; margin-bottom: 0.35rem; }
.modal-image { border: 2px solid #1a1a1a; border-radius: 10px; overflow: hidden; }
.modal-image img { width: 100%; height: auto; display: block; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact-divider { margin-top: 0; }

.contact-section {
    padding: 60px 0;
    background-color: #f8f9fa !important;
}

.contact-title { opacity: 1 !important; transform: none !important; }

.contact-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #666666 !important;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 0.85rem; }

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background-color: #ffffff !important;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    box-shadow: 3px 3px 0 #1a1a1a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.contact-info-card.animate { opacity: 1; transform: translateX(0); }
.contact-info-card:nth-child(1) { transition-delay: 0.05s; }
.contact-info-card:nth-child(2) { transition-delay: 0.15s; }
.contact-info-card:nth-child(3) { transition-delay: 0.25s; }
.contact-info-card:nth-child(4) { transition-delay: 0.35s; }

.contact-info-card:hover { transform: translate(-2px, -2px) !important; box-shadow: 5px 5px 0 #1a1a1a; }

.contact-icon {
    width: 46px; height: 46px;
    background-color: #1a1a1a !important;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg { stroke: #ffffff; }
.contact-info-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-info-label { font-size: 0.68rem; color: #999999 !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.contact-info-value { font-size: 0.87rem; color: #1a1a1a !important; font-weight: 500; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-info-value:hover { color: #555555 !important; }

.availability-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background-color: #dcfce7 !important;
    border: 2px solid #166534;
    border-radius: 50px;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #166534 !important;
    opacity: 0;
    animation: fadeInLeft 0.5s ease forwards 0.45s;
}

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

.availability-dot {
    width: 9px; height: 9px;
    background: #16a34a;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0.4); }
    50% { box-shadow: 0 0 0 5px rgba(22,163,74,0); }
}

.contact-form-wrapper {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.contact-form-wrapper.animate { opacity: 1; transform: translateX(0); }

.contact-form {
    background-color: #ffffff !important;
    border: 2px solid #1a1a1a;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 5px 5px 0 #1a1a1a;
}

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

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a1a1a !important;
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1a1a1a !important;
    background-color: #fafafa !important;
    font-family: inherit;
    outline: none;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-text-fill-color: #1a1a1a !important;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #1a1a1a !important;
    background-color: #ffffff !important;
    box-shadow: 2px 2px 0 #1a1a1a;
}

.contact-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 2px solid #1a1a1a;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 3px 3px 0 #555;
    -webkit-text-fill-color: #ffffff !important;
}

.contact-submit-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 #555; }
.contact-submit-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #555; }
.contact-submit-btn.sending { opacity: 0.65; cursor: not-allowed; }

@media (max-width: 900px) {
    .contact-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form { padding: 1.25rem; }
}

/* Toast */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 99999;
    transform: translateY(80px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    max-width: 90vw;
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background-color: #166534 !important; }
.toast.error { background-color: #991b1b !important; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background-color: #1a1a1a !important; color: #ffffff !important; }

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

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid #333333;
}

.footer-logo { font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 0.6rem; color: #ffffff !important; }
.footer-logo span { color: #666666 !important; }
.footer-desc { font-size: 0.85rem; color: #888888 !important; line-height: 1.6; max-width: 280px; }

.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.footer-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: #666666 !important; font-weight: 700; margin-bottom: 0.85rem; }
.footer-col a { display: block; color: #aaaaaa !important; text-decoration: none; font-size: 0.85rem; margin-bottom: 0.45rem; transition: color 0.2s, transform 0.2s; }
.footer-col a:hover { color: #ffffff !important; transform: translateX(3px); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.8rem; color: #666666 !important; }
.footer-tech { font-family: monospace; font-size: 0.75rem !important; color: #444444 !important; }

@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 1.75rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
