/* ===== THEME PALETTE ===== */
:root {
    --accent: #2afc85;
    --accent-2: #1ed761;
    --accent-rgb: 42, 252, 133;
    --bg: #0c0f17;
    --bg-2: #151925;
    --bg-rgb: 12, 15, 23;
    --bg-2-rgb: 21, 25, 37;
    --card: #1a1f20;
    --card-2: #232838;
    --text: #e6e9f0;
    --text-dim: #c2c6d3;
    --text-dim-rgb: 194, 198, 211;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
    color: var(--text);
    min-height: 100vh;
    position: relative;
}

/* Structural safeguards: content may shrink inside every flex/grid track. */
html { overflow-x: clip; }
img, svg, video, canvas { max-inline-size: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
input, textarea { min-inline-size: 0; }
a, p, h1, h2, h3, h4, li, span { overflow-wrap: anywhere; }
section[id] { scroll-margin-top: 84px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}
.portfolio-intro {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    overflow: hidden;
}

.portfolio-intro.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}

.portfolio-intro:not(.hidden) {
    transition: none;
}

.intro-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.intro-greetings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.greeting {
    position: absolute;
    font-size: clamp(1.2rem, 3.5vw, 2rem);
    font-weight: 600;
    color: var(--text);
    text-align: center;
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.35s ease, transform 0.35s ease;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
    text-shadow: 0 0 25px rgba(var(--accent-rgb), 0.12);
    padding: 0 20px;
}

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

.greeting.exit {
    opacity: 0;
    transform: translateY(-16px) scale(1.02);
}

.intro-welcome {
    position: absolute;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    padding: 0 20px;
}

.intro-welcome.active {
    opacity: 1;
    transform: translateY(0);
}

.welcome-subtitle {
    font-size: clamp(0.85rem, 2vw, 1.2rem);
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.welcome-name {
    font-size: clamp(1.3rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.welcome-portfolio {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
    .greeting {
        transition: opacity 0.15s ease;
        transform: none !important;
    }

    .greeting.exit {
        transform: none !important;
    }
}

/* SCROLL PROGRESS BAR */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

/* ===== CUSTOM CURSOR ===== */
.cursor-glow {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.35);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, opacity 0.3s;
    opacity: 0.6;
    display: block !important;
    will-change: transform;
}

body:hover .cursor-glow {
    width: 40px;
    height: 40px;
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none !important;
    }
}

/* ===== DYNAMIC BACKGROUND ===== */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.4) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.3) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

/* ===== PARTICLES ===== */
.particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(var(--accent-rgb), 0.6);
    border-radius: 50%;
    animation: rise 15s linear infinite;
    opacity: 0;
}

@keyframes rise {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1);
    }
}


/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: clamp(15px, 3vw, 20px) clamp(20px, 5vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(var(--bg-rgb), 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}


/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    position: relative;
}

.logo-icon {
    color: var(--accent);
    font-size: 1.8rem;
}

.logo-text {
    background: linear-gradient(90deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    line-height: 1.2;
    vertical-align: middle;
}

.logo .kingdom-watermark {
    font-size: 0.65rem !important;
    color: rgba(var(--accent-rgb), 0.5) !important;
    letter-spacing: 8px !important;
    font-weight: 400 !important;
    margin: -2px 0 0 0 !important;
    text-transform: uppercase !important;
    display: block !important;
    opacity: 1 !important;
}


/* ===== NAVBAR ===== */
nav ul {
    display: flex;
    list-style: none;
    gap: clamp(20px, 3vw, 30px);
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
    display: inline-block;
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
    pointer-events: none;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    background: transparent;
    border: 0;
}

/* ===== RESPONSIVE LAYOUT FOUNDATION =====
   These rules keep the existing visual system while allowing each component to
   reflow continuously instead of relying on device-specific pixel patches. */
.container,
.hero,
.content,
.about-content-minimal,
.contact-content,
.skills-grid-minimal,
.projects-grid-minimal,
.certificate-card,
.project-card-minimal,
.skill-card-minimal,
.contact-form,
.certificate-info,
.chatbot-panel {
    min-inline-size: 0;
}

.container { width: min(100%, 1240px); }
.hero { width: min(100%, 1280px); }
.project-description { display: block; overflow: visible; }
.project-tags, .certificate-tags, .skill-tags { max-inline-size: 100%; }
.certificate-info, .project-content, .skill-card-minimal { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: clamp(2rem, 5vw, 3rem);
        min-height: 100dvh;
    }

    .content { max-width: 680px; }
    .cta-buttons, .social-icons { justify-content: center; }
}

@media (max-width: 768px) {
    nav ul { height: calc(100dvh - 65px); }
}

@media (min-width: 601px) and (max-width: 960px) {
    .about-content-minimal,
    .contact-content { grid-template-columns: 1fr; gap: 2.5rem; }

    .skills-grid-minimal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .skill-card-minimal:nth-child(n) { grid-column: auto; }
}

@media (max-width: 600px) {
    header {
        min-height: 64px;
        padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
    }

    .logo { gap: 7px; font-size: 1.25rem; }
    .logo-icon { font-size: 1.45rem; }
    .logo .kingdom-watermark { letter-spacing: 5px !important; font-size: 0.55rem !important; }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        color: var(--accent);
    }

    nav ul {
        top: 64px;
        left: 0;
        width: 100%;
        height: calc(100dvh - 64px);
        padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    nav ul.active { left: 0; transform: translateX(0); }
    nav a { min-height: 52px; padding: 14px 20px; font-size: 1.1rem; }
    body.menu-open { overflow: hidden; }

    .hero {
        padding: 88px 20px 40px;
        min-height: auto;
        gap: 2.25rem;
    }

    .hero h1 { font-size: clamp(1.85rem, 9vw, 2.45rem); line-height: 1.15; }
    .hero h2 { font-size: clamp(1.15rem, 5.5vw, 1.45rem); margin-bottom: 1rem; }
    .hero .content > p { font-size: 1rem; margin-bottom: 1.5rem; }
    .cta-buttons { width: 100%; margin-top: 1.75rem; gap: 0.75rem; }
    .cta-buttons .btn { width: min(100%, 320px); justify-content: center; }
    .social-icons { margin-top: 2rem; gap: 0.9rem; }
    .social-icons a { width: 48px; height: 48px; }

    .opportunity-badge {
        width: min(100%, 290px);
        white-space: normal;
        justify-content: center;
        text-align: center;
        top: -24px;
    }

    section { padding: 64px 16px; }
    .container { padding: 0; }
    .section-title { font-size: clamp(1.85rem, 9vw, 2.35rem); margin-bottom: 2.75rem; }
    .section-title::after { width: 72px; }
    .about-section, .skills-section, .projects-section, .certificates-section, .final-cta-section { padding: 64px 16px; }
    .about-content-minimal, .contact-content { gap: 2rem; }
    .about-timeline { padding-left: 24px; }
    .timeline-dot-simple { left: -29px; }
    .skills-grid-minimal, .featured-grid, .other-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .skill-card-minimal:nth-child(n) { grid-column: auto; }
    .skill-grid { grid-template-columns: minmax(0, 1fr); }
    .skill-card-minimal, .project-card-featured .project-content, .project-card-other .project-content { padding: 18px; }
    .project-image, .project-card-featured .project-image, .project-card-other .project-image { height: auto; aspect-ratio: 16 / 10; }
    .project-content { padding: 18px; }
    .project-title { font-size: 1.2rem; }
    .project-description { font-size: 0.95rem; }
    .btn-project-primary, .btn-certificate { min-height: 44px; max-width: 100%; align-self: stretch; }

    .certificate-card { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
    .certificate-image-wrapper { max-height: none; aspect-ratio: 4 / 3; }
    .certificate-meta { gap: 8px 14px; }
    .carousel-btn { width: 44px; height: 44px; }

    .contact-item { align-items: flex-start; }
    .contact-item > *:last-child { min-inline-size: 0; overflow-wrap: anywhere; }
    .contact-form { padding: 18px; border-radius: 14px; }
    .form-group input, .form-group textarea { font-size: 16px; }
    .contact-form .btn { min-height: 48px; }
    footer { padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); }
}

@media (max-height: 500px) and (max-width: 768px) {
    .hero { padding-top: 80px; }
    .profile-container { transform: scale(0.85); margin-block: -1.25rem; }
    .chatbot-panel { height: calc(100dvh - 92px); }
    .chatbot-header { padding: 10px 14px; }
    .chatbot-quick-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
    .quick-option { padding: 8px; font-size: 0.75rem; }
    .chatbot-input-area { padding: 8px; }
    .chatbot-messages { padding: 10px; }
}

/* The assistant is sized from the visible viewport and never from a fixed device width. */
.chatbot-container {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
}

.chatbot-panel {
    width: min(350px, calc(100vw - 32px));
    max-height: min(500px, calc(100dvh - 108px));
}

.chatbot-messages { min-height: 0; overflow-wrap: anywhere; }
.chatbot-toggle, .chatbot-close, .chatbot-send-btn, .quick-option, .suggestion-chip { touch-action: manipulation; }

@media (max-width: 600px) {
    .chatbot-panel { right: 0; width: min(350px, calc(100vw - 32px)); }
    .chatbot-toggle { width: 52px; height: 52px; }
    .chat-message { max-width: 100%; }
}


/* ===== HERO SECTION ===== */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(40px, 6vw, 60px);
    padding: clamp(90px, 12vh, 110px) clamp(20px, 5vw, 40px) clamp(30px, 5vh, 50px);
    min-height: 100vh;
}

.content {
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.5s;
}


/* ===== TEXT ===== */
h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

.hero-kingdom {
    font-size: 0.65rem;
    color: rgba(var(--accent-rgb), 0.4);
    letter-spacing: 8px;
    font-weight: 400;
    margin: -5px 0 15px 0;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    margin-bottom: 25px;
    color: var(--text-dim);
}

p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-dim);
}


/* ===== TYPING TEXT ===== */
.typing-text {
    position: relative;
    display: inline-block;
    color: var(--accent);
}

.typing-text::after {
    content: "|";
    position: absolute;
    right: -8px;
    animation: blink 0.7s infinite;
}


/* ===== OPPORTUNITY BADGE ===== */
.opportunity-badge {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(var(--bg-rgb), 0.9);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    z-index: 25;
    white-space: nowrap;
    animation: fadeInUp 1s ease forwards 1.0s;
    opacity: 0;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.8);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

.badge-text {
    color: var(--text);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* ===== BUTTONS ===== */
.cta-buttons {
    display: flex;
    gap: clamp(15px, 3vw, 20px);
    margin-top: 40px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards 0.8s;
}

.btn {
    padding: clamp(12px, 2vw, 15px) clamp(25px, 4vw, 35px);
    border-radius: 50px;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Button Ripple Effect */
.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.btn:hover::after {
    transform: scale(2);
}

/* Primary */
.btn-primary {
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    color: var(--bg);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.6);
}

.btn-primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Secondary */
.btn-secondary {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.2), transparent);
    transition: 0.5s;
}

.btn-secondary:hover {
    background: rgba(var(--accent-rgb), 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
}

.btn-secondary:hover::before {
    left: 100%;
}


/* ===== SOCIAL ICONS ===== */
.social-icons {
    display: flex;
    gap: clamp(15px, 3vw, 20px);
    margin-top: 50px;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.social-icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--card), var(--card-2));
    color: var(--accent);
    font-size: 1.3rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    color: var(--bg-2);
}

/* Icon Bounce Effect */
.social-icons a i {
    transition: transform 0.3s ease;
}

.social-icons a:hover i {
    transform: scale(1.2) rotate(10deg);
}

.social-icons a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--accent-2), var(--accent), var(--accent));
    opacity: 0;
    transition: 0.3s;
    z-index: -1;
}

.social-icons a:hover::before {
    opacity: 1;
}


/* ===== PROFILE ===== */
.profile-container {
    position: relative;
    width: clamp(250px, 35vw, 400px);
    height: clamp(250px, 35vw, 400px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: clamp(210px, 28vw, 340px);
    height: clamp(210px, 28vw, 340px);
    border-radius: 50%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 30px rgba(0,0,0,0.4);
    border: 6px solid var(--bg);
    z-index: 20;
    transition: all 0.4s ease;
    background: rgba(var(--bg-rgb), 0.9);
    padding: 10px;
}

.profile-img:hover {
    transform: translate(-50%, -50%) scale(1.03);
    box-shadow: 0 15px 50px rgba(var(--accent-rgb), 0.5);
    border-color: var(--accent);
}


/* ===== ANIMATIONS ===== */
@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0); }
}

@keyframes pulse {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
/* ===== RESPONSIVE DESIGN ===== */

/* ===== TABLET ===== */
@media (max-width: 992px) {

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        gap: clamp(30px, 5vh, 50px);
        padding: clamp(80px, 12vh, 100px) 20px clamp(30px, 5vh, 40px);
    }

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

    .social-icons {
        justify-content: center;
    }
}


/* ===== SMALL TABLET ===== */
@media (max-width: 768px) {

    header {
        padding: 15px 20px;
    }

    /* MOBILE NAV */
    .menu-toggle {
        display: block;
        cursor: pointer;
        padding: 8px;
        border-radius: 6px;
        transition: background 0.3s ease;
    }

    .menu-toggle:hover {
        background: rgba(var(--accent-rgb), 0.1);
    }

    .menu-toggle i {
        font-size: 1.5rem;
        color: var(--accent);
        transition: transform 0.3s ease;
    }

    nav ul {
        position: fixed;
        top: 65px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 65px);
        background: rgba(var(--bg-rgb), 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 0;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        z-index: 999;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
    }

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

    nav a {
        font-size: 1.3rem;
        padding: 20px 0;
        display: block;
        width: 100%;
        transition: all 0.3s ease;
        position: relative;
    }

    nav a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 100%;
        background: rgba(var(--accent-rgb), 0.05);
        transition: width 0.3s ease;
        z-index: -1;
    }

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

    nav a:hover,
    nav a.active {
        color: var(--accent);
        transform: translateX(5px);
    }

    /* TEXT */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1.1rem;
    }

    /* BUTTON */
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* PROFILE SIZE */
    .profile-container {
        width: clamp(220px, 60vw, 320px);
        height: clamp(220px, 60vw, 320px);
    }

    .profile-img {
        width: clamp(185px, 50vw, 270px);
        height: clamp(185px, 50vw, 270px);
    }

    .border-outer {
        width: clamp(220px, 60vw, 320px);
        height: clamp(220px, 60vw, 320px);
    }

    .border-middle {
        width: clamp(200px, 55vw, 290px);
        height: clamp(200px, 55vw, 290px);
    }

    .border-inner {
        width: clamp(185px, 50vw, 270px);
        height: clamp(185px, 50vw, 270px);
    }

    .border-container::after {
        width: clamp(170px, 46vw, 250px);
        height: clamp(170px, 46vw, 250px);
    }

    .pulse-ring {
        width: clamp(220px, 60vw, 320px);
        height: clamp(220px, 60vw, 320px);
    }

    .opportunity-badge {
        padding: 6px 12px;
        gap: 6px;
        top: -30px;
    }

    .badge-text {
        font-size: 0.6rem;
        letter-spacing: 0.4px;
    }

    .badge-dot {
        width: 6px;
        height: 6px;
    }
}


/* ===== MOBILE ===== */
@media (max-width: 480px) {

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* PROFILE SMALL */
    .profile-container {
        width: clamp(200px, 70vw, 280px);
        height: clamp(200px, 70vw, 280px);
    }

    .profile-img {
        width: clamp(165px, 58vw, 230px);
        height: clamp(165px, 58vw, 230px);
    }

    .border-outer {
        width: clamp(200px, 70vw, 280px);
        height: clamp(200px, 70vw, 280px);
    }

    .border-middle {
        width: clamp(180px, 63vw, 255px);
        height: clamp(180px, 63vw, 255px);
    }

    .border-inner {
        width: clamp(165px, 58vw, 230px);
        height: clamp(165px, 58vw, 230px);
    }

    .border-container::after {
        width: clamp(150px, 52vw, 215px);
        height: clamp(150px, 52vw, 215px);
    }

    .pulse-ring {
        width: clamp(200px, 70vw, 280px);
        height: clamp(200px, 70vw, 280px);
    }

    .opportunity-badge {
        padding: 5px 10px;
        gap: 5px;
        top: -25px;
    }

    .badge-text {
        font-size: 0.55rem;
        letter-spacing: 0.3px;
    }

    .badge-dot {
        width: 5px;
        height: 5px;
    }
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 10;
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(3px);
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1rem;
    animation: float 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.scroll-arrow i {
    animation: bounce 1.5s ease-in-out infinite;
}

.scroll-indicator:hover .scroll-arrow {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.35);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.2);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(3px);
    }
    60% {
        transform: translateY(2px);
    }
}

/* Hide scroll indicator on mobile */
@media (max-width: 768px) {
    .scroll-indicator {
        display: none;
    }

}


/* ===== KINGDOM WATERMARK ===== */
.kingdom-watermark {
    position: absolute;
    bottom: -15px;
    right: 0;
    font-size: 0.55rem;
    color: rgba(var(--accent-rgb), 0.15);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
    pointer-events: none;
    user-select: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.kingdom-watermark:hover {
    opacity: 1;
    color: rgba(var(--accent-rgb), 0.4);
}

/* ===== MODAL POPUP ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--bg-rgb), 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-container {
    background: rgba(var(--bg-2-rgb), 0.95);
    border: 1px solid rgba(var(--accent-rgb), 0.12);
    border-radius: 16px;
    padding: 35px 30px 30px;
    max-width: 460px;
    width: 92%;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    transform: scale(0.96) translateY(-10px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    color: rgba(var(--text-dim-rgb), 0.6);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
}

.modal-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.35);
    border-radius: 50px;
    padding: 6px 14px;
    margin-bottom: 18px;
}

.modal-title {
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.modal-description {
    color: rgba(var(--text-dim-rgb), 0.8);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 22px;
}

.modal-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 24px;
}

.modal-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

.modal-status-text {
    color: rgba(var(--text-dim-rgb), 0.8);
    font-size: 0.82rem;
    font-weight: 500;
}

.modal-status-value {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.modal-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 26px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.modal-close-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.35);
}

.modal-loader {
    margin-top: 20px;
    height: 3px;
    background: rgba(var(--accent-rgb), 0.12);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active .modal-loader {
    opacity: 1;
}

.modal-loader-bar {
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: 10px;
    animation: loaderSlide 2.2s ease-in-out infinite;
}

@keyframes loaderSlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(260%);
    }
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.55;
    }
}

@media (max-width: 768px) {
    .modal-container {
        padding: 30px 20px 24px;
        width: 94%;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-description {
        font-size: 0.9rem;
    }
}

/* ===== RESPONSIVE FOR NEW SECTIONS ===== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 992px) {
    .about-content-minimal,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-timeline {
        margin-top: 30px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-items {
        align-items: center;
    }
    
    .contact-social {
        justify-content: center;
    }

    .skills-grid-minimal {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid-minimal {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-card-minimal:nth-child(1),
    .skill-card-minimal:nth-child(2),
    .skill-card-minimal:nth-child(3),
    .skill-card-minimal:nth-child(4),
    .skill-card-minimal:nth-child(5) {
        grid-column: auto;
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-image {
        height: 180px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-info p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .contact-item {
        font-size: 0.95rem;
    }
    
    .contact-item i {
        font-size: 1.3rem;
    }
    
    /* Better tap targets for mobile */
    .btn {
        padding: 15px 30px;
        min-height: 50px;
    }
    
    .social-icons a {
        width: 55px;
        height: 55px;
    }
    
    /* Reduce animation intensity */
    .gradient-orb {
        animation-duration: 30s;
    }
    
    .cursor-glow {
        display: none; /* Hide custom cursor on touch devices */
    }
    
    body {
        cursor: auto;
    }
    
    /* Projects grid mobile */
    .other-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .project-image {
        height: 160px;
    }
    
    .project-image-placeholder i {
        font-size: 3rem;
    }
    
    /* Skills grid mobile */
    .skills-grid-minimal {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-card-minimal:nth-child(1),
    .skill-card-minimal:nth-child(2),
    .skill-card-minimal:nth-child(3),
    .skill-card-minimal:nth-child(4),
    .skill-card-minimal:nth-child(5) {
        grid-column: auto;
    }

    .skill-card-minimal {
        padding: 20px;
    }
    
    /* About section mobile */
    .about-content-minimal {
        gap: 30px;
    }
    
    .about-lead {
        font-size: 1.1rem;
    }
    
    .about-description {
        font-size: 1rem;
    }
    
    /* Contact section mobile */
    .contact-content {
        gap: 30px;
    }
    
    .contact-items {
        gap: 15px;
    }
    
    .final-cta-heading {
        font-size: 2rem;
    }
    
    .final-cta-subtitle {
        font-size: 1rem;
    }
    
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-final-primary,
    .btn-final-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 15px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    /* Hero section mobile */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* About section small mobile */
    .about-section {
        padding: 60px 15px;
    }
    
    .about-lead {
        font-size: 1rem;
        padding-left: 15px;
    }
    
    .about-description {
        font-size: 0.95rem;
    }
    
    .highlight-item {
        padding: 10px 12px;
    }
    
    .highlight-item span {
        font-size: 0.9rem;
    }
    
    /* Timeline mobile */
    .timeline-content-simple {
        padding: 15px;
    }
    
    .timeline-content-simple h4 {
        font-size: 1rem;
    }
    
    .timeline-text {
        font-size: 0.9rem;
    }
    
    /* Skills section small mobile */
    .skills-section {
        padding: 60px 15px;
    }
    
    .skill-card-header h3 {
        font-size: 1.1rem;
    }
    
    .skill-info span:first-child {
        font-size: 0.9rem;
    }
    
    /* Projects section small mobile */
    .projects-section {
        padding: 60px 15px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-subtitle {
        font-size: 0.85rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .btn-project-primary {
        width: 100%;
    }
    
    /* Contact section small mobile */
    .contact-section {
        padding: 60px 15px;
    }
    
    .contact-info h3 {
        font-size: 1.4rem;
    }
    
    .contact-info p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .contact-form .btn {
        padding: 14px 25px;
        font-size: 1rem;
    }
    
    /* Social icons small mobile */
    .social-icons {
        gap: 15px;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Final CTA small mobile */
    .final-cta-section {
        padding: 60px 15px;
    }
    
    .final-cta-heading {
        font-size: 1.6rem;
    }
    
    .final-cta-subtitle {
        font-size: 0.95rem;
    }
    
    /* Chatbot mobile */
    .chatbot-panel {
        width: calc(100vw - 40px);
        right: -10px;
    }
    
    .chatbot-container {
        bottom: 20px;
        right: 20px;
    }
}

/* ===== PULSE RINGS ===== */
.pulse-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(250px, 35vw, 400px);
    height: clamp(250px, 35vw, 400px);
    border: 2px solid rgba(var(--accent-rgb), 0.6);
    box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.5), inset 0 0 15px rgba(var(--accent-rgb), 0.3);
    animation: pulse 2s ease-out infinite;
    z-index: 14;
}

.pulse-ring:nth-child(2) {
    animation-delay: 0.3s;
}

.pulse-ring:nth-child(3) {
    animation-delay: 0.6s;
}

/* ===== BORDER STYLES ===== */
.profile-container {
    position: relative;
}

.border-outer,
.border-middle,
.border-inner {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 25px rgba(var(--accent-rgb),0.6);
}

.border-outer {
    width: clamp(250px, 35vw, 400px);
    height: clamp(250px, 35vw, 400px);
    background: conic-gradient(rgba(var(--accent-rgb),0.9) 0deg, transparent 90deg);
    animation: rotate 4s linear infinite;
    z-index: 15;
    filter: drop-shadow(0 0 20px rgba(var(--accent-rgb), 0.8));
}

.border-middle {
    width: clamp(225px, 31vw, 360px);
    height: clamp(225px, 31vw, 360px);
    background: conic-gradient(rgba(var(--accent-rgb),0.9) 0deg, transparent 90deg);
    animation: rotate-reverse 3s linear infinite;
    z-index: 16;
    filter: drop-shadow(0 0 15px rgba(var(--accent-rgb), 0.7));
}

.border-inner {
    width: clamp(210px, 28vw, 340px);
    height: clamp(210px, 28vw, 340px);
    background: conic-gradient(rgba(var(--accent-rgb),0.9) 0deg, transparent 90deg);
    animation: rotate 2s linear infinite;
    z-index: 17;
    filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.6));
}

.border-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(210px, 28vw, 340px);
    height: clamp(210px, 28vw, 340px);
    border-radius: 50%;
    background: rgba(var(--bg-rgb), 0.85);
    border: 3px solid var(--accent);
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.5);
    z-index: 18;
}

.border-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(195px, 26vw, 320px);
    height: clamp(195px, 26vw, 320px);
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.1);
    box-shadow: inset 0 0 20px rgba(var(--accent-rgb), 0.2);
}

/* ===== ENHANCED PROFILE RINGS ===== */
@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.profile-container .pulse-ring {
    animation: pulse 2s ease-out infinite, breathe 3s ease-in-out infinite;
}

/* ===== GLASSMORPHISM EFFECTS ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--accent-rgb), 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== SECTIONS COMMON STYLES ===== */
section {
    padding: clamp(60px, 10vh, 100px) clamp(15px, 3vw, 20px);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 20px);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(90deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
}

.projects-note {
    text-align: center;
    color: var(--text-dim);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    margin: 25px auto 35px;
    max-width: 600px;
    line-height: 1.6;
    opacity: 0.9;
}

/* ===== ABOUT SECTION - MINIMAL DESIGN ===== */
.about-section {
    background: rgba(var(--bg-rgb), 0.5);
    padding: 80px 20px;
}

.about-content-minimal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
}

/* LEFT SIDE */
.about-left {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.6s ease;
}

.about-left.show {
    opacity: 1;
    transform: translateY(0);
}

.about-intro {
    margin-bottom: 30px;
}

.about-lead {
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    color: var(--accent);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

.about-description {
    color: var(--text-dim);
    line-height: 1.8;
    font-size: clamp(1rem, 2vw, 1.05rem);
    margin-bottom: 0;
}

/* HIGHLIGHTS */
.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(var(--accent-rgb), 0.03);
    border-radius: 8px;
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(var(--accent-rgb), 0.08);
    border-color: rgba(var(--accent-rgb), 0.2);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.1);
}

.highlight-icon {
    color: var(--accent);
    font-size: 1.2rem;
    min-width: 20px;
}

.highlight-item span {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* RIGHT SIDE - TIMELINE */
.about-timeline {
    position: relative;
    padding-left: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.2s;
}

.about-timeline.show {
    opacity: 1;
    transform: translateY(0);
}

.about-timeline::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(to bottom, 
        rgba(var(--accent-rgb), 0.05) 0%, 
        rgba(var(--accent-rgb), 0.15) 15%, 
        rgba(var(--accent-rgb), 0.2) 50%, 
        rgba(var(--accent-rgb), 0.15) 85%, 
        rgba(var(--accent-rgb), 0.05) 100%
    );
}

.timeline-item-simple {
    position: relative;
    margin-bottom: 30px;
}

.timeline-item-simple:last-child {
    margin-bottom: 0;
}

.timeline-dot-simple {
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.6);
    z-index: 1;
}

.timeline-content-simple {
    background: rgba(var(--accent-rgb), 0.03);
    padding: 18px 20px;
    border-radius: 8px;
    border-left: 2px solid rgba(var(--accent-rgb), 0.3);
    transition: all 0.3s ease;
}

.timeline-content-simple:hover {
    background: rgba(var(--accent-rgb), 0.06);
    border-left-color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.08);
}

.timeline-content-simple h4 {
    color: var(--text);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-content-simple h4 i {
    color: var(--accent);
    font-size: 1rem;
}

.timeline-text {
    color: var(--text-dim);
    font-size: clamp(0.9rem, 2vw, 0.95rem);
    line-height: 1.6;
    margin: 0;
}

.timeline-year {
    color: var(--accent);
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 5px;
    font-weight: 500;
}

/* ===== SKILLS SECTION - MINIMAL DESIGN ===== */
.skills-section {
    background: rgba(var(--bg-2-rgb), 0.5);
    padding: 80px 20px;
}

.skills-grid-minimal {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card-minimal:nth-child(1) { grid-column: span 2; }
.skill-card-minimal:nth-child(2) { grid-column: span 2; }
.skill-card-minimal:nth-child(3) { grid-column: span 2; }
.skill-card-minimal:nth-child(4) { grid-column: 2 / span 2; }
.skill-card-minimal:nth-child(5) { grid-column: 4 / span 2; }

.skill-card-minimal {
    background: rgba(var(--accent-rgb), 0.03);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    transition: all 0.3s ease;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.skill-card-minimal.show {
    opacity: 1;
    transform: translateY(0);
}

.skill-card-minimal:hover {
    background: rgba(var(--accent-rgb), 0.06);
    border-color: rgba(var(--accent-rgb), 0.15);
    box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.08);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
}

.skill-icon {
    color: var(--accent);
    font-size: 1.5rem;
}

.skill-card-header h3 {
    color: var(--text);
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    font-weight: 600;
    margin: 0;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 600;
}

.skill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.skill-bar .bar {
    width: 100%;
    height: 10px;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.skill-bar .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    width: 0;
    transition: width 1.5s ease;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(var(--accent-rgb), 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--accent-rgb), 0.3);
}

/* ===== PROJECTS SECTION - MINIMAL DESIGN ===== */
.projects-section {
    background: rgba(var(--bg-rgb), 0.5);
    padding: 50px 20px;
}

.projects-section .section-title {
    margin-bottom: 35px;
}

.projects-grid-minimal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card-minimal {
    background: rgba(var(--accent-rgb), 0.03);
    border-radius: 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card-minimal.show {
    opacity: 1;
    transform: translateY(0);
}

.project-card-minimal:hover {
    background: rgba(var(--accent-rgb), 0.06);
    border-color: rgba(var(--accent-rgb), 0.2);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.1);
}

.project-image {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
}

.project-image-placeholder i {
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.project-card-minimal:hover .project-image-placeholder i {
    opacity: 1;
    transform: scale(1.1);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.35s ease;
}

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

.project-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-title {
    color: var(--text);
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
    text-align: center;
}

.project-subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 16px;
    text-align: center;
    opacity: 0.8;
}

.project-description {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.tag-minimal {
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    transition: all 0.3s ease;
}

.tag-minimal:hover {
    background: rgba(var(--accent-rgb), 0.15);
    transform: translateY(-2px);
}

.btn-project-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: auto;
    align-self: flex-start;
}

.btn-project-primary:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.35);
}

/* ===== PROJECTS SECTION LAYOUT ===== */
.projects-featured-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    opacity: 0.9;
}

.featured-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.project-card-featured {
    background: rgba(var(--accent-rgb), 0.03);
    border-radius: 16px;
    border: 1px solid rgba(var(--accent-rgb), 0.08);
}

.project-card-featured .project-image {
    height: 220px;
}

.project-card-featured .project-content {
    padding: 24px;
}

.project-card-featured .project-title {
    font-size: clamp(1.3rem, 2.8vw, 1.6rem);
}

.project-card-featured .project-subtitle {
    font-size: 1rem;
    margin-bottom: 18px;
}

.project-card-featured .project-description {
    font-size: 1rem;
    margin-bottom: 20px;
}

.other-projects-header {
    text-align: center;
    margin-bottom: 16px;
}

.other-projects-heading {
    color: var(--text);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: 0.5px;
}

.other-projects-subtitle {
    color: var(--text-dim);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    margin: 0;
    opacity: 0.8;
}

.view-more-projects {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 20px;
    padding: 12px 28px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.view-more-projects:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15);
    transform: translateY(-2px);
}

.view-more-icon {
    transition: transform 0.35s ease;
}

.view-more-projects.expanded .view-more-icon {
    transform: rotate(180deg);
}

.other-projects-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.35s ease-out, opacity 0.3s ease;
}

.other-projects-wrapper.open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.other-projects-inner {
    overflow: hidden;
    min-height: 0;
}

.other-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card-other {
    background: rgba(var(--accent-rgb), 0.03);
    border-radius: 16px;
    border: 1px solid rgba(var(--accent-rgb), 0.08);
}

.project-card-other .project-image {
    height: 220px;
}

.project-card-other .project-content {
    padding: 24px;
}

.project-card-other .project-title {
    font-size: clamp(1.3rem, 2.8vw, 1.6rem);
}

.project-card-other .project-subtitle {
    font-size: 1rem;
    margin-bottom: 18px;
}

.project-card-other .project-description {
    font-size: 1rem;
    margin-bottom: 20px;
}

@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-grid .project-card-minimal:last-child {
        grid-column: span 2;
        max-width: 50%;
        justify-self: center;
    }

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

    .project-card-featured .project-image,
    .project-card-other .project-image {
        height: 200px;
    }
}

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

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-grid .project-card-minimal:last-child {
        grid-column: auto;
        max-width: none;
        justify-self: auto;
    }

    .other-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-card-featured .project-image,
    .project-card-other .project-image {
        height: 180px;
    }

    .project-image-placeholder i {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .projects-featured-label {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .other-projects-heading {
        font-size: 1.4rem;
    }

    .project-card-featured .project-image,
    .project-card-other .project-image {
        height: 160px;
    }
}

/* ===== CERTIFICATES SECTION ===== */
.certificates-section {
    background: rgba(var(--bg-rgb), 0.5);
    padding: 50px 20px;
}

.certificates-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.certificates-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.certificate-slide {
    min-width: 100%;
    padding: 0 5px;
}

.certificate-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    background: rgba(var(--accent-rgb), 0.03);
    border: 1px solid rgba(var(--accent-rgb), 0.08);
    border-radius: 16px;
    padding: 25px;
    align-items: flex-start;
}

.certificate-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    aspect-ratio: 4/3;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
    box-sizing: border-box;
}

.certificate-mock {
    text-align: center;
    padding: 20px;
    width: 100%;
}

.certificate-header {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 2px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(var(--accent-rgb), 0.3);
    padding-bottom: 10px;
}

.certificate-body {
    margin-top: 15px;
}

.certificate-org {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.certificate-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.4;
}

.certificate-date {
    font-size: 0.9rem;
    color: var(--text-dim);
    opacity: 0.8;
}

.certificate-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--bg-rgb), 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.certificate-image-wrapper:hover .certificate-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    max-width: 90%;
}

.overlay-content h4 {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.overlay-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.overlay-content li {
    color: var(--text-dim);
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.1);
    position: relative;
    padding-left: 20px;
}

.overlay-content li:last-child {
    border-bottom: none;
}

.overlay-content li::before {
    content: 'Ã¢â‚¬Â¢';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.certificate-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 5px;
}

.certificate-org-name {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.org-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.certificate-title {
    color: var(--text);
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.certificate-description {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.certificate-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.meta-item i {
    color: var(--accent);
    font-size: 0.9rem;
}

.certificate-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.cert-tag {
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(var(--accent-rgb), 0.15);
}

.btn-certificate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--bg);
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    margin-top: 10px;
    align-self: flex-start;
}

.btn-certificate:hover {
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.35);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    color: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.4);
    box-shadow: 0 4px 15px rgba(var(--accent-rgb), 0.2);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.2);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.5);
}

.dot:hover {
    background: rgba(var(--accent-rgb), 0.4);
}

@media (max-width: 992px) {
    .certificate-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .certificate-image-wrapper {
        aspect-ratio: 16/9;
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .certificates-section {
        padding: 60px 15px;
    }
    
    .certificate-card {
        padding: 20px;
        gap: 15px;
    }
    
    .certificate-image-wrapper {
        aspect-ratio: 16/9;
        max-height: 250px;
    }
    
    .certificate-title {
        font-size: 1.1rem;
    }
    
    .carousel-btn {
        width: 38px;
        height: 38px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    background: rgba(var(--bg-2-rgb), 0.5);
}

.contact-info h3 {
    color: var(--text);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-dim);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dim);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.contact-social {
    margin-top: 30px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: rgba(var(--accent-rgb), 0.05);
    padding: clamp(20px, 4vw, 40px);
    border-radius: 20px;
    border: 1px solid rgba(var(--accent-rgb), 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: clamp(12px, 2vw, 15px) clamp(15px, 3vw, 20px);
    background: rgba(var(--bg-rgb), 0.5);
    border: 2px solid rgba(var(--accent-rgb), 0.1);
    border-radius: 10px;
    color: var(--text);
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.2);
}

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

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

/* ===== FOOTER ===== */
footer {
    background: rgba(var(--bg-rgb), 0.95);
    padding: 40px 20px;
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.4), transparent);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.copyright-text {
    color: rgba(var(--text-dim-rgb), 0.6);
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.footer-kingdom {
    color: rgba(var(--text-dim-rgb), 0.4);
    font-size: clamp(0.7rem, 1.8vw, 0.75rem);
    margin: 8px 0 0 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.kingdom-signature {
    color: rgba(var(--accent-rgb), 0.5);
    letter-spacing: 2px;
    font-weight: 500;
}

/* ===== FINAL CTA SECTION ===== */
.final-cta-section {
    background: rgba(var(--bg-rgb), 0.8);
    padding: 100px 20px;
    text-align: center;
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
}

.final-cta-content {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.final-cta-content.show {
    opacity: 1;
    transform: translateY(0);
}

.final-cta-heading {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 700;
    background: linear-gradient(90deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.final-cta-subtitle {
    color: var(--text-dim);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 35px;
}

.final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-final-primary,
.btn-final-secondary {
    padding: 14px 32px;
    background: rgba(var(--accent-rgb), 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-final-primary::before,
.btn-final-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--accent-rgb), 0.15),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-final-primary:hover::before,
.btn-final-secondary:hover::before {
    left: 100%;
}

.btn-final-primary:hover,
.btn-final-secondary:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.35);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.2);
}

/* ===== FLOATING CHATBOT ===== */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(var(--accent-rgb), 0.3);
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.2);
}

.chatbot-toggle:hover {
    background: rgba(var(--accent-rgb), 0.25);
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(var(--accent-rgb), 0.3);
}

.chatbot-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: rgba(var(--bg-rgb), 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.chatbot-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: rgba(var(--accent-rgb), 0.08);
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.15);
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
}

.chatbot-title i {
    font-size: 1.2rem;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.chatbot-close:hover {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 250px;
}

.chat-message {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 85%;
}

.bot-message {
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    color: var(--text);
    margin-right: auto;
}

.user-message {
    background: rgba(var(--accent-rgb), 0.2);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    color: var(--text);
    margin-left: auto;
    text-align: right;
}

.chatbot-quick-options {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(var(--accent-rgb), 0.03);
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
}

.quick-option {
    padding: 12px 16px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.15);
    border-radius: 10px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.quick-option:hover {
    background: rgba(var(--accent-rgb), 0.15);
    border-color: rgba(var(--accent-rgb), 0.3);
    transform: translateX(5px);
}

.chatbot-input-area {
    padding: 15px;
    background: rgba(var(--accent-rgb), 0.03);
    border-top: 1px solid rgba(var(--accent-rgb), 0.1);
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.suggestion-chip {
    padding: 6px 12px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 20px;
    color: var(--text-dim);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.suggestion-chip:hover {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.35);
}

.chat-input-row {
    display: flex;
    gap: 8px;
}

.chatbot-input {
    flex: 1;
    padding: 10px 14px;
    background: rgba(var(--bg-rgb), 0.6);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.chatbot-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.15);
}

.chatbot-input::placeholder {
    color: rgba(var(--text-dim-rgb), 0.5);
}

.chatbot-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(var(--accent-rgb), 0.15);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    background: rgba(var(--accent-rgb), 0.25);
    border-color: rgba(var(--accent-rgb), 0.4);
}

/* Responsive Chatbot */
@media (max-width: 768px) {
    .chatbot-panel {
        width: 300px;
        right: -20px;
    }
    
    .chatbot-container {
        bottom: 20px;
        right: 20px;
    }
    
    .chat-suggestions {
        gap: 6px;
    }
    
    .suggestion-chip {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .chatbot-input {
        font-size: 0.85rem;
        padding: 9px 12px;
    }
    
    .chatbot-send-btn {
        width: 36px;
        height: 36px;
    }
}

/* ===== FINAL RESPONSIVE CASCADE ===== */
.container, .hero, .content, .about-content-minimal, .contact-content,
.skills-grid-minimal, .projects-grid-minimal, .certificate-card,
.project-card-minimal, .skill-card-minimal, .contact-form, .certificate-info,
.chatbot-panel { min-inline-size: 0; }

.container { width: min(100%, 1240px); }
.hero { width: min(100%, 1280px); }
.project-description { display: block; overflow: visible; }
.project-tags, .certificate-tags, .skill-tags { max-inline-size: 100%; }
.certificate-info, .project-content, .skill-card-minimal { overflow-wrap: anywhere; }
.chatbot-container {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
}
.chatbot-panel {
    width: min(350px, calc(100vw - 32px));
    max-height: min(500px, calc(100dvh - 108px));
}
.chatbot-messages { min-height: 0; overflow-wrap: anywhere; }
.chatbot-toggle, .chatbot-close, .chatbot-send-btn, .quick-option, .suggestion-chip { touch-action: manipulation; }

@media (max-width: 1100px) {
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: clamp(2rem, 5vw, 3rem);
        min-height: 100dvh;
    }
    .content { max-width: 680px; }
    .cta-buttons, .social-icons { justify-content: center; }
}

@media (min-width: 601px) and (max-width: 960px) {
    .about-content-minimal, .contact-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .skills-grid-minimal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
    .skill-card-minimal:nth-child(n) { grid-column: auto; }
}

@media (max-width: 600px) {
    header {
        min-height: 64px;
        padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
    }
    .logo { gap: 7px; font-size: 1.25rem; }
    .logo-icon { font-size: 1.45rem; }
    .logo .kingdom-watermark { letter-spacing: 5px !important; font-size: 0.55rem !important; }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        color: var(--accent);
    }
    nav ul {
        top: 64px;
        left: 0;
        width: 100%;
        height: calc(100dvh - 64px);
        padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    nav ul.active { left: 0; transform: translateX(0); }
    nav a { min-height: 52px; padding: 14px 20px; font-size: 1.1rem; }
    body.menu-open { overflow: hidden; }
    .hero { padding: 88px 20px 40px; min-height: auto; gap: 2.25rem; }
    .hero h1 { font-size: clamp(1.85rem, 9vw, 2.45rem); line-height: 1.15; }
    .hero h2 { font-size: clamp(1.15rem, 5.5vw, 1.45rem); margin-bottom: 1rem; }
    .hero .content > p { font-size: 1rem; margin-bottom: 1.5rem; }
    .cta-buttons { width: 100%; margin-top: 1.75rem; gap: 0.75rem; }
    .cta-buttons .btn { width: min(100%, 320px); justify-content: center; }
    .social-icons { margin-top: 2rem; gap: 0.9rem; }
    .social-icons a { width: 48px; height: 48px; }
    .opportunity-badge {
        width: min(100%, 290px);
        white-space: normal;
        justify-content: center;
        text-align: center;
        top: -24px;
    }
    section { padding: 64px 16px; }
    .container { padding: 0; }
    .section-title { font-size: clamp(1.85rem, 9vw, 2.35rem); margin-bottom: 2.75rem; }
    .section-title::after { width: 72px; }
    .about-section, .skills-section, .projects-section, .certificates-section, .final-cta-section { padding: 64px 16px; }
    .about-content-minimal, .contact-content { gap: 2rem; }
    .about-timeline { padding-left: 24px; }
    .timeline-dot-simple { left: -29px; }
    .skills-grid-minimal, .featured-grid, .other-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .skill-card-minimal:nth-child(n) { grid-column: auto; }
    .skill-grid { grid-template-columns: minmax(0, 1fr); }
    .skill-card-minimal, .project-card-featured .project-content, .project-card-other .project-content { padding: 18px; }
    .project-image, .project-card-featured .project-image, .project-card-other .project-image { height: auto; aspect-ratio: 16 / 10; }
    .project-content { padding: 18px; }
    .project-title { font-size: 1.2rem; }
    .project-description { font-size: 0.95rem; }
    .btn-project-primary, .btn-certificate { min-height: 44px; max-width: 100%; align-self: stretch; }
    .certificate-card { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 16px; }
    .certificate-image-wrapper { max-height: none; aspect-ratio: 4 / 3; }
    .certificate-meta { gap: 8px 14px; }
    .carousel-btn { width: 44px; height: 44px; }
    .contact-item { align-items: flex-start; }
    .contact-item > *:last-child { min-inline-size: 0; overflow-wrap: anywhere; }
    .contact-form { padding: 18px; border-radius: 14px; }
    .form-group input, .form-group textarea { font-size: 16px; }
    .contact-form .btn { min-height: 48px; }
    footer { padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); }
    .chatbot-panel { right: 0; width: min(350px, calc(100vw - 32px)); }
    .chatbot-toggle { width: 52px; height: 52px; }
    .chat-message { max-width: 100%; }
}

@media (max-height: 500px) and (max-width: 768px) {
    .hero { padding-top: 80px; }
    .profile-container { transform: scale(0.85); margin-block: -1.25rem; }
    .chatbot-panel { height: calc(100dvh - 92px); }
    .chatbot-header { padding: 10px 14px; }
    .chatbot-quick-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
    .quick-option { padding: 8px; font-size: 0.75rem; }
    .chatbot-input-area { padding: 8px; }
    .chatbot-messages { padding: 10px; }
}
