/* 
   ==========================================================================
   PERSONAL PORTFOLIO MAIN STYLE SHEET (VANILLA CSS)
   ==========================================================================
*/

/* 1. Global Reset & Variables */
:root {
    --bg-main: #0b0f19;
    --bg-darker: #070910;
    --bg-card: rgba(22, 30, 49, 0.4);
    --bg-card-hover: rgba(22, 30, 49, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);
    
    --primary: #8b5cf6;
    --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
    --secondary-gradient: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    --accent: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* 2. Layout & Utility Classes */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-darker);
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Titles */
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: var(--border-color-hover);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* 3. Header / Navbar styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
}

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

.btn-contact {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary) !important;
    border: 1px solid rgba(139, 92, 246, 0.2);
    padding: 8px 20px;
    border-radius: 8px;
}

.btn-contact:hover {
    background: var(--primary-gradient);
    color: white !important;
    border-color: transparent;
}

.btn-contact::after {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.nav-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-smooth);
}

/* 4. Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hero-greeting {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 12px;
}

.hero-name {
    font-family: 'Outfit', sans-serif;
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-bio {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 550px;
    margin-bottom: 35px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-socials {
    display: flex;
    gap: 16px;
}

.hero-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.hero-socials a:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--primary);
    transform: translateY(-5px);
}

.hero-image-panel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-blob {
    width: 320px;
    height: 320px;
    background: var(--secondary-gradient);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-premium);
    animation: morph 8s ease-in-out infinite, rotateBlob 12s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-avatar-fallback {
    font-family: 'Outfit', sans-serif;
    font-size: 7rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Glow Effects */
.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.25;
}

.glow-1 {
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    top: 20%;
    left: 10%;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: #06b6d4;
    bottom: 10%;
    right: 5%;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%; }
    50% { border-radius: 60% 40% 50% 50% / 60% 60% 40% 40%; }
}

/* 5. About Section */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-img-card {
    display: flex;
    justify-content: center;
}

.about-img-border {
    width: 320px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: var(--shadow-premium);
    background: var(--bg-card);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.about-photo:hover {
    transform: scale(1.05);
}

.about-photo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    background: linear-gradient(135deg, rgba(22,30,49,0.5) 0%, rgba(7,9,16,0.5) 100%);
}

.about-details h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

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

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 35px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.about-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-val {
    font-weight: 600;
    font-size: 0.95rem;
}

/* 6. Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.3);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.service-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background: var(--primary-gradient);
    border-color: transparent;
}

.service-card:hover .service-icon-box svg {
    stroke: white;
}

.service-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 7. Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.skills-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
}

.skills-category-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--accent);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
}

.skill-name {
    color: var(--text-main);
}

.skill-percentage {
    color: var(--text-muted);
}

.skill-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* 8. Experience Timeline Section */
.timeline-container {
    max-width: 850px;
    margin: 0 auto;
    position: relative;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    width: 50%;
    padding: 0 40px;
    margin-bottom: 40px;
    position: relative;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    left: 100%;
    top: 24px;
    width: 16px;
    height: 16px;
    background-color: var(--bg-main);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 10;
    transform: translateX(-50%);
    transition: var(--transition-smooth);
}

.timeline-item.right .timeline-dot {
    left: 0;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-item:hover .timeline-card {
    border-color: rgba(139, 92, 246, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-item.left .timeline-card-header {
    flex-direction: row-reverse;
}

.timeline-type-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-work {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent);
}

.badge-edu {
    background: rgba(139, 92, 246, 0.12);
    color: var(--primary);
}

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

.timeline-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.timeline-card h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.text-current-active {
    color: #22c55e;
    font-weight: 600;
}

/* 9. Projects Section */
.portfolio-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    gap: 20px;
    flex-wrap: wrap;
}

.portfolio-search-box {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.portfolio-search-box input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.portfolio-search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(22, 30, 49, 0.6);
}

.portfolio-search-box .search-icon-svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.portfolio-tabs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.portfolio-tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.portfolio-tab-btn:hover, .portfolio-tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-item-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.3);
    background: var(--bg-card-hover);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.1);
}

.portfolio-item-img-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    background: rgba(7, 9, 16, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-item-card:hover .portfolio-item-img-container img {
    transform: scale(1.08);
}

.portfolio-item-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: rgba(255,255,255,0.06);
    background: linear-gradient(135deg, rgba(22,30,49,0.6) 0%, rgba(7,9,16,0.6) 100%);
    font-size: 2rem;
    text-transform: uppercase;
}

.portfolio-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 16, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-item-card:hover .portfolio-item-overlay {
    opacity: 1;
}

.portfolio-item-info {
    padding: 24px;
}

.portfolio-item-category {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.portfolio-item-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.portfolio-item-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 10. Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info-card p {
    color: var(--text-muted);
    margin-bottom: 35px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-val {
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a.detail-val:hover {
    color: var(--primary);
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.control-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(7, 9, 16, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    box-sizing: border-box;
}

.form-input-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: rgba(7, 9, 16, 0.8);
}

.textarea-control {
    resize: vertical;
    font-family: inherit;
}

#btnSubmitContact {
    width: 100%;
    border: none;
    padding: 14px;
}

/* Response Alert Styles */
.ajax-alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.ajax-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

.ajax-alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

/* 11. Modals Styling (Shared between Admin & Public) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background: rgba(7, 9, 16, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.modal-dialog {
    width: 100%;
    max-width: 500px;
    margin: 30px auto;
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.show .modal-dialog {
    transform: translateY(0);
}

.modal-lg {
    max-width: 800px;
}

.modal-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.preview-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.preview-val {
    color: var(--text-main);
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

/* 12. Footer */
.footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-logo span {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-login-link {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.admin-login-link:hover {
    color: var(--primary);
}

/* 13. Responsive Styles (Mobile & Tablet) */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 60px;
        gap: 60px;
    }
    
    .hero-content {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image-panel {
        order: 0;
    }
    
    .hero-bio {
        max-width: 600px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img-card {
        order: 0;
    }
    
    .about-details {
        order: 1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-info-grid {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: #0b0f19;
        flex-direction: column;
        padding: 40px 20px;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
        align-items: stretch;
        gap: 20px;
    }
    
    .nav-menu.show {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        text-align: center;
        padding: 12px;
        border-radius: 10px;
        background: rgba(255,255,255,0.02);
    }
    
    .btn-contact {
        text-align: center;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .hero-name {
        font-size: 2.8rem;
    }
    
    .hero-image-blob {
        width: 260px;
        height: 260px;
    }
    
    .timeline-line {
        left: 24px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 55px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item.left, .timeline-item.right {
        left: 0 !important;
    }
    
    .timeline-dot {
        left: 24px !important;
    }
    
    .timeline-card-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .portfolio-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
        gap: 8px;
    }
    
    .portfolio-search-box {
        max-width: 100%;
    }
    
    .modal-grid-mobile {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .contact-form-card {
        padding: 24px;
    }
}

/* Custom History Type Badge */
.badge-custom {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #818cf8 !important;
    border: 1px solid rgba(99, 102, 241, 0.25) !important;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.scroll-animate {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Slide Up */
.scroll-animate.fade-up {
    transform: translateY(40px);
}

/* Slide Left */
.scroll-animate.fade-left {
    transform: translateX(-40px);
}

/* Slide Right */
.scroll-animate.fade-right {
    transform: translateX(40px);
}

/* Zoom In / Pop */
.scroll-animate.zoom-in {
    transform: scale(0.9);
}

/* Active State (Shown in Viewport) */
.scroll-animate.active {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

