@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --bg-main: #0c0d14;
    --bg-sidebar: #12131c;
    --bg-card: rgba(21, 22, 35, 0.55); /* Transparent for watermark visibility */
    --bg-card-hover: rgba(26, 27, 42, 0.85);
    
    --text-white: #ffffff;
    --text-muted: #8b8d9b;
    
    --gradient-primary: linear-gradient(135deg, #a745ff 0%, #ff5e8e 100%);
    --gradient-blue: linear-gradient(135deg, #4261ee 0%, #875afb 100%);
    
    --sidebar-width: 280px;
    --border-color: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    display: flex;
    min-height: 100vh;
    overflow: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #2a2b36;
    border-radius: 4px;
}

/* Typography & Utilities */
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
.text-gradient {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-purple {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-block {
    width: 100%;
}
.btn-gradient {
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: 30px;
}
.btn-gradient:hover {
    box-shadow: 0 10px 20px rgba(167, 69, 255, 0.3);
    transform: translateY(-2px);
}
.btn-white {
    background: var(--text-white);
    color: #4261ee;
}
.btn-outline-play {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    color: var(--text-white);
}
.btn-outline-play:hover {
    background: rgba(255,255,255,0.1);
}
.btn-outline-play i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    z-index: 100;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2.5rem;
}
.logo-icon {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-text h2 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-nav {
    margin-bottom: 2rem;
}
.sidebar-nav li {
    margin-bottom: 0.5rem;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.sidebar-nav a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.hire-card {
    background: var(--gradient-blue);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    text-align: center;
}
.hire-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.hire-card p {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 1.2rem;
}

.download-cv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    transition: 0.3s;
}
.download-cv:hover {
    border-color: rgba(255,255,255,0.2);
    color: var(--text-white);
}
.download-cv span i {
    margin-right: 8px;
    color: #a745ff;
}

.social-links {
    margin-top: auto;
}
.follow-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}
.social-links .icons {
    display: flex;
    gap: 15px;
}
.social-links a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: 0.3s;
}
.social-links a:hover {
    color: var(--text-white);
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem 4rem;
    max-width: calc(100vw - var(--sidebar-width));
    height: 100vh;
    overflow-y: auto;
}

/* Custom Slide Controller */
.main-content.snap-container {
    padding: 0;
    overflow: hidden; /* JS will handle internal scrolling */
    position: relative;
}

.slide-section {
    position: absolute;
    top: 0;
    left: 4rem; /* Match main content padding */
    width: calc(100% - 8rem);
    height: 100vh;
    overflow-y: auto; /* Internal scrolling for long content */
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 6rem 0; /* Top padding to clear UI */
}

/* First slide (Hero) should be centered */
#home-slide.slide-section {
    justify-content: center;
}

/* Fixed header slide layout */
.slide-section.fixed-header {
    overflow-y: hidden;
}
.fixed-header .section-header {
    flex-shrink: 0;
    margin-bottom: 2rem;
}
.internal-scroller {
    flex: 1;
    overflow-y: auto;
    padding-top: 1rem;
    padding-bottom: 3rem;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    scrollbar-width: thin;
}

.slide-section.active {
    opacity: 1;
    visibility: visible;
    z-index: 5;
}

/* Assemble / Disassemble Animations */
.slide-section h2, .slide-section .section-header, .slide-section .hero-content h1 {
    transform: translateY(-50px);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.slide-section p, .slide-section .hero-content h2, .slide-section .greeting {
    transform: translateX(-50px);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
}
.slide-section .service-card, .slide-section .timeline-item, .slide-section .skills-marquee-container, .slide-section .contact-section {
    transform: translateY(50px);
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

/* Trigger assemble when active */
.slide-section.active h2, .slide-section.active .section-header, .slide-section.active .hero-content h1,
.slide-section.active p, .slide-section.active .hero-content h2, .slide-section.active .greeting,
.slide-section.active .service-card, .slide-section.active .timeline-item, .slide-section.active .skills-marquee-container, .slide-section.active .contact-section {
    transform: translate(0, 0);
    opacity: 1;
}

/* Header */
header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 5rem;
}
.top-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}
.top-nav a:not(.btn) {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
}
.top-nav a:not(.btn):hover {
    color: var(--text-white);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 20px;
}
.lang-switcher a {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}
.lang-switcher a.active {
    color: var(--text-white) !important;
    font-weight: 700 !important;
}

/* Section Headers */
.section-header {
    margin-bottom: 2.5rem;
}
.section-header .subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.view-all {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: 0.3s;
}
.view-all:hover {
    color: var(--text-white);
}
.text-center {
    text-align: center;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    padding-top: 4rem;
    position: relative;
    min-height: 600px;
}
.hero-content {
    max-width: 55%;
    transform: translateY(-40px);
}
.greeting {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}
.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    font-weight: 700;
}
.hero-content h2 {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}
.hero-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    max-width: 90%;
}

.hero-image-container {
    position: relative;
    width: 650px;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Make only the badge clickable */
.experience-badge {
    pointer-events: auto;
}


.gradient-circle {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--gradient-primary);
    filter: blur(40px);
    opacity: 0.4;
    z-index: 1;
}
.hero-image {
    position: relative;
    z-index: 2;
    width: 650px;
    height: auto;
    object-fit: contain;
    transform: translateX(0);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    pointer-events: none;
    transition: filter 1.5s ease;
}

/* Duplicate Fading Background Photo */
.bg-photo-duplicate {
    position: fixed;
    right: -10vw;
    bottom: -50px;
    height: 120vh;
    width: auto;
    max-width: 650px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.bg-photo-duplicate .hero-image {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: grayscale(85%) contrast(1.2);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}
body.scrolled-state .bg-photo-duplicate {
    opacity: 0.25;
}

/* Limit width for Portfolio and Contact to avoid overlapping photo */
.contact-section {
    max-width: 400px;
    flex-direction: column;
}
.experience-badge {
    position: absolute;
    right: 20px;
    bottom: 40px;
    background: rgba(30, 31, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 15px 20px;
    border-radius: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
}
.experience-badge h3 {
    font-size: 1.8rem;
    font-weight: 700;
}
.experience-badge p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Trusted By */
.trusted-by {
    margin-bottom: 6rem;
}
.trusted-by p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.logos {
    display: flex;
    gap: 3rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 600;
}
.logos i {
    font-size: 1.8rem;
    margin-right: 5px;
}

/* Services */
.services {
    margin-bottom: 6rem;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.service-card {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    transition: 0.3s;
    border: 1px solid transparent;
}
.service-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}
.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.icon-wrapper.bg-blue {
    background: var(--gradient-blue);
}
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}
.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.learn-more {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}
.service-card:hover .learn-more {
    color: var(--text-white);
}

/* Portfolio */
.portfolio {
    margin-bottom: 6rem;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.portfolio-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}
.portfolio-card:hover {
    transform: translateY(-5px);
}
.img-wrapper {
    height: 200px;
    overflow: hidden;
}
.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.portfolio-card:hover .img-wrapper img {
    transform: scale(1.05);
}
.card-info {
    padding: 1.5rem;
}
.category {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: inline-block;
    margin-bottom: 0.8rem;
}
.card-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}
.card-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Stats Banner */
.stats-banner {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6rem;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.stat-item i {
    font-size: 2.5rem;
    opacity: 0.8;
}
.stat-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
}
.stat-text p {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonials {
    margin-bottom: 6rem;
}
.testimonials-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    flex: 1;
}
.testimonial-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
}
.quote-icon {
    font-size: 1.5rem;
    color: #a745ff;
    margin-bottom: 1rem;
}
.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}
.client-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.client-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.client-info h4 {
    font-size: 0.95rem;
}
.client-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-section {
    display: flex;
    gap: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 4rem;
}
.contact-cta {
    background: transparent;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    flex: 1;
}
.contact-cta i {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.contact-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.contact-cta p {
    font-size: 0.9rem;
    opacity: 0.9;
}
.contact-form-container {
    flex: 2;
    padding: 1rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group-row {
    display: flex;
    gap: 1.5rem;
}
.form-group {
    flex: 1;
}
input, textarea {
    width: 100%;
    background: rgba(12, 13, 20, 0.5); /* Transparent input fields */
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 12px;
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}
input:focus, textarea:focus {
    border-color: #a745ff;
}
.btn-submit {
    align-self: flex-end;
}
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem;
    justify-content: center;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.info-item i {
    font-size: 1.2rem;
    color: var(--text-muted);
}
.info-item p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}
.info-item a, .info-item span {
    font-size: 0.95rem;
    font-weight: 500;
}
.info-item a:hover {
    color: #a745ff;
}

/* Responsive (Basic) */
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-card:last-child { display: none; }
}
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; gap: 3rem; }
    .hero-content { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-content p { margin: 1.5rem auto; }
    .contact-section { flex-direction: column; }
    .stats-banner { flex-wrap: wrap; gap: 2rem; justify-content: center; }
}
/* Timeline */
.timeline { position: relative; max-width: 600px; margin: 0; padding: 20px 0; }
.timeline::before { content: ''; position: absolute; top: 0; left: 20px; height: 100%; width: 2px; background: rgba(255, 255, 255, 0.1); }
.timeline-item { position: relative; margin-bottom: 3rem; padding-left: 60px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: 14px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--gradient-primary); box-shadow: 0 0 10px rgba(167, 69, 255, 0.5); }
.timeline-content { background: var(--bg-card); padding: 2rem; border-radius: 16px; border: 1px solid transparent; transition: 0.3s; }
.timeline-content:hover { background: var(--bg-card-hover); border-color: rgba(255, 255, 255, 0.05); transform: translateY(-3px); }
.timeline-content h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 5px; color: var(--text-white); }
.timeline-content h4 { font-size: 1rem; font-weight: 500; color: #a745ff; margin-bottom: 1rem; }
.timeline-date { display: inline-block; padding: 4px 12px; background: rgba(255, 255, 255, 0.05); border-radius: 20px; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.timeline-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.timeline-content strong { color: var(--text-white); }
.timeline-item-split { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.timeline-text { flex: 1; }
.timeline-logo { width: 140px; height: 140px; flex-shrink: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.timeline-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 576px) { .timeline-item-split { flex-direction: column-reverse; align-items: flex-start; gap: 1rem; } }
:root { --border-color: rgba(255, 255, 255, 0.1); }
/* Portfolio Detailed Cards */
.detailed-card { padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--border-color); }
.detailed-card h4.company { font-size: 0.9rem; color: #a745ff; margin-bottom: 0.5rem; font-weight: 500; }
.detailed-card h3 { font-size: 1.4rem; margin-bottom: 1rem; line-height: 1.3; }
.detailed-card p.summary { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem; }
.view-details-btn { margin-top: auto; align-self: flex-start; padding: 10px 20px; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: var(--text-white); border-radius: 20px; transition: 0.3s; }
.view-details-btn:hover { background: rgba(255,255,255,0.1); border-color: #a745ff; }

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(5px); z-index: 1000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.3s ease; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: var(--bg-card); width: 90%; max-width: 700px; max-height: 85vh; border-radius: 20px; padding: 3rem; position: relative; overflow-y: auto; border: 1px solid rgba(255,255,255,0.1); transform: translateY(20px); transition: 0.3s ease; }
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.05); border: none; color: var(--text-white); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.3s; }
.modal-close:hover { background: #ff5e8e; }
.modal-category { font-size: 0.85rem; padding: 5px 12px; border-radius: 20px; background: rgba(255,255,255,0.05); display: inline-block; margin-bottom: 1rem; color: var(--text-muted); }
.modal-body h2 { font-size: 2rem; margin-bottom: 0.5rem; line-height: 1.2; }
.modal-company { font-size: 1.1rem; color: #a745ff; font-weight: 500; margin-bottom: 2rem; }
.modal-section { margin-bottom: 2rem; }
.modal-section h3 { font-size: 1.2rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.modal-section h3 i { color: #4261ee; }
.modal-section p { color: var(--text-muted); line-height: 1.7; font-size: 1rem; }
.modal-section ul { list-style: disc; padding-left: 1.5rem; color: var(--text-muted); }
.modal-section ul li { margin-bottom: 0.8rem; line-height: 1.6; }
.result-section { background: rgba(167, 69, 255, 0.05); padding: 1.5rem; border-radius: 12px; border-left: 4px solid #a745ff; }
.result-section h3 i { color: #a745ff; }
.result-section p strong { color: var(--text-white); }

/* NEW STRUCTURAL CHANGES */
.no-header { padding-top: 2rem !important; }

/* Sidebar Bottom Navigation */
.sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }
.lang-switcher-sidebar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; background: rgba(255,255,255,0.05); border-radius: 12px; margin-bottom: 0.5rem; }
.lang-switcher-sidebar a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: 0.3s; }
.lang-switcher-sidebar a:hover { color: var(--text-white); }
.lang-switcher-sidebar a.active { color: #a745ff; font-weight: 700; }
.lang-switcher-sidebar .divider { color: rgba(255,255,255,0.2); }
.social-links { margin-top: 0 !important; }

/* Hero Animated Background Text */
.hero { position: relative; overflow: hidden; }
.hero-bg-text { 
    position: absolute; 
    top: 35%; 
    left: 0; 
    transform: translateY(-50%); 
    width: 100%; 
    z-index: 1; 
    pointer-events: none; 
    overflow: hidden; 
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 45%, black 65%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 45%, black 65%, black 100%);
}
.hero-bg-text-inner { 
    display: inline-block; 
    font-size: 7rem; 
    font-weight: 900; 
    font-family: 'Outfit', sans-serif; 
    color: rgba(255, 255, 255, 0.04); 
    animation: heroMarquee 30s linear infinite; 
}
@keyframes heroMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Ensure text is visible in the duplicate faded background */
.bg-photo-duplicate .hero-bg-text-inner {
    color: rgba(255, 255, 255, 0.2); 
}

/* Make sure hero content sits above bg text */
.hero-content, .hero-image-container { position: relative; z-index: 2; }

/* Skills Marquee (Infinite Slider) */
.skills-marquee-container { width: 70%; padding: 1.5rem 0; background: transparent; border: none; overflow: hidden; margin-top: -100px; margin-bottom: 6rem; display: flex; position: relative; z-index: 1; -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%); }
.skills-marquee { display: flex; gap: 3rem; align-items: center; white-space: nowrap; animation: skillsMarquee 30s linear infinite; }
.skills-marquee span { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 600; color: var(--text-muted); transition: 0.3s; }
.skills-marquee span i { font-size: 1.4rem; color: #a745ff; }
.skills-marquee span:hover { color: var(--text-white); transform: scale(1.05); }
@keyframes skillsMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Portfolio Highlight */
.portfolio-highlight { text-align: center; padding: 4rem 2rem; background: var(--bg-card); border-radius: 20px; border: 1px solid var(--border-color); margin-bottom: 6rem; }
.portfolio-highlight .section-header { margin-bottom: 1.5rem; }
.portfolio-highlight p { color: var(--text-muted); max-width: 600px; margin: 0 auto 2rem auto; line-height: 1.6; }
.btn-lg { padding: 15px 35px; font-size: 1.1rem; }

/* Dummy Image Placeholder */
.dummy-image { width: 100%; height: 350px; background: rgba(255,255,255,0.05); border: 2px dashed rgba(255,255,255,0.1); border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); margin: 2rem 0; text-align: center; }
.dummy-image i { font-size: 3rem; margin-bottom: 1rem; color: rgba(255,255,255,0.2); }
.project-section { background: var(--bg-card); padding: 3rem; border-radius: 20px; border: 1px solid var(--border-color); margin-bottom: 3rem; }
.project-section h2 { font-size: 2rem; margin-bottom: 0.5rem; color: var(--text-white); }
.project-section h4 { font-size: 1.1rem; color: #a745ff; margin-bottom: 2rem; font-weight: 500; }
.project-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 992px) { .project-content { grid-template-columns: 1fr; } }
/* Growth Bar Chart Animation */
.growth-chart { display: flex; align-items: flex-end; gap: 1rem; height: 150px; margin-top: 1rem; padding-top: 1rem; border-bottom: 2px solid rgba(255,255,255,0.1); }
.chart-bar-container { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 10px; }
.chart-bar { width: 100%; max-width: 60px; background: var(--gradient-primary); border-radius: 6px 6px 0 0; height: 0%; animation: growBar 1.5s ease-out forwards; animation-delay: 0.5s; position: relative; }
.chart-bar.secondary { background: var(--gradient-blue); }
.chart-bar span { position: absolute; top: -25px; left: 50%; transform: translateX(-50%); font-size: 0.85rem; font-weight: 700; color: var(--text-white); opacity: 0; animation: fadeIn 0.5s ease-out forwards; animation-delay: 1.8s; }
.chart-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
@keyframes growBar { from { height: 0%; } to { height: var(--target-height); } }
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Skills Used Tags */
.skills-used-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 2rem; }
.skills-used-tags span { background: rgba(167, 69, 255, 0.1); color: #a745ff; border: 1px solid rgba(167, 69, 255, 0.2); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

/* Sidebar Updates */
.sidebar-nav a.btn-contact {
    display: block;
    margin-top: 1rem;
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: 0.3s;
}
.sidebar-nav a.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(167, 69, 255, 0.3);
}

/* Education Split Layout */
.education-item-split {
    display: flex;
    gap: 3rem;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    align-items: center;
}
.education-text { flex: 1; }
.education-photo {
    flex: 0 0 350px;
    height: 250px;
}
@media (max-width: 992px) {
    .education-item-split { flex-direction: column; }
    .education-photo { flex: none; width: 100%; }
}

/* Experience Gallery Grid */
.gallery-section { margin-top: 3rem; }
.gallery-section h3 { margin-bottom: 1.5rem; color: var(--text-white); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}
.gallery-item {
    height: 200px;
    border-radius: 12px;
}

/* Light Theme */
[data-theme="light"] {
    --bg-main: #f4f6f9;
    --bg-sidebar: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    
    --text-white: #0f172a;
    --text-muted: #64748b;
    
    --border-color: rgba(0, 0, 0, 0.08);
}

.theme-switcher {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.theme-toggle-btn:hover {
    color: var(--text-white);
    background: var(--bg-card-hover);
}

/* Specific light theme tweaks */
[data-theme="light"] .lang-switcher-sidebar {
    background: rgba(0,0,0,0.04);
}
[data-theme="light"] .lang-switcher-sidebar .divider {
    color: rgba(0,0,0,0.15);
}
[data-theme="light"] .experience-badge {
    background: rgba(255, 255, 255, 0.9);
}
[data-theme="light"] .modal-close {
    background: rgba(0,0,0,0.05);
}
[data-theme="light"] .timeline::before {
    background: rgba(0,0,0,0.1);
}
[data-theme="light"] .timeline-date {
    background: rgba(0,0,0,0.05);
}
[data-theme="light"] .category {
    background: rgba(0,0,0,0.05);
}
[data-theme="light"] .modal-category {
    background: rgba(0,0,0,0.05);
}
[data-theme="light"] .nav-btn {
    background: var(--bg-card);
}
[data-theme="light"] .skills-marquee-container {
    background: #ffffff;
}
[data-theme="light"] .portfolio-highlight {
    background: #ffffff;
}
[data-theme="light"] .project-section {
    background: #ffffff;
}
[data-theme="light"] .education-item-split {
    background: #ffffff;
}
[data-theme="light"] .hero-bg-text-inner {
    color: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] input, [data-theme="light"] textarea {
    background: #ffffff;
}
[data-theme="light"] .timeline-content h3 {
    color: var(--text-white);
}
[data-theme="light"] .timeline-content strong {
    color: var(--text-white);
}
[data-theme="light"] .result-section p strong {
    color: var(--text-white);
}

/* =========================================================================
   PORTFOLIO CATALOG STYLES
   ========================================================================= */

/* Hero Slider */
.portfolio-hero {
    position: relative;
    width: 100%;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.portfolio-hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}
.portfolio-hero-slide.active { opacity: 1; }

.portfolio-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(12,13,20,0.95) 0%, rgba(12,13,20,0.6) 50%, rgba(12,13,20,0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
    z-index: 2;
}

.portfolio-hero-overlay h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 0px;
    line-height: 1.1;
}

.portfolio-hero-overlay .brush-font {
    font-family: 'Caveat', cursive;
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: rotate(-3deg);
    display: inline-block;
    margin-top: -10px;
    margin-bottom: 1.5rem;
}

/* Animated Growth Chart Overlay */
.hero-chart-overlay {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    z-index: 2;
    height: 120px;
}

.hero-bar {
    width: 25px;
    background: var(--gradient-blue);
    border-radius: 4px 4px 0 0;
    animation: bounceBar 3s infinite ease-in-out alternate;
    box-shadow: 0 0 15px rgba(66, 97, 238, 0.5);
}
.hero-bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.hero-bar:nth-child(2) { height: 50%; animation-delay: 0.2s; }
.hero-bar:nth-child(3) { height: 75%; animation-delay: 0.4s; }
.hero-bar:nth-child(4) { height: 100%; animation-delay: 0.6s; background: var(--gradient-primary); box-shadow: 0 0 15px rgba(255, 94, 142, 0.6); }

@keyframes bounceBar {
    0% { transform: scaleY(0.8); transform-origin: bottom; }
    100% { transform: scaleY(1.1); transform-origin: bottom; }
}

/* Filter Bar */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 3rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.03);
    padding: 5px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.filter-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.filter-btn:hover { color: var(--text-white); background: rgba(255,255,255,0.05); }
.filter-btn.active { background: var(--gradient-primary); color: white; box-shadow: 0 5px 15px rgba(167,69,255,0.3); }

/* Gallery Items */
.gallery-item {
    transition: 0.4s ease;
    animation: fadeIn 0.5s forwards;
}
.gallery-item.hide {
    display: none;
}
.gallery-card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.gallery-card:hover { transform: translateY(-10px); border-color: #a745ff; box-shadow: 0 15px 30px rgba(0,0,0,0.5); }
.gallery-img { width: 100%; height: 180px; object-fit: cover; border-bottom: 1px solid rgba(255,255,255,0.05); }
.gallery-content { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.gallery-tags { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.g-tag { font-size: 0.75rem; padding: 4px 10px; border-radius: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.t-company { background: rgba(66, 97, 238, 0.1); color: #4261ee; border: 1px solid rgba(66, 97, 238, 0.2); }
.t-skill { background: rgba(167, 69, 255, 0.1); color: #a745ff; border: 1px solid rgba(167, 69, 255, 0.2); }
.t-roas { background: rgba(0, 210, 255, 0.1); color: #00d2ff; border: 1px solid rgba(0, 210, 255, 0.2); }

.gallery-content h3 { font-size: 1.3rem; margin-bottom: 10px; line-height: 1.3; }
.gallery-content p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 20px; flex: 1; }
.gallery-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 15px; }
.gallery-link { color: #fff; font-weight: 600; font-size: 0.9rem; transition: 0.3s; text-decoration: none; }
.gallery-link:hover { color: #ff5e8e; }
.gallery-link i { margin-left: 5px; }

/* =========================================================================
   PORTFOLIO BLOG STYLE LAYOUT (NEW)
   ========================================================================= */

.portfolio-blog-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 5rem;
}

.blog-style-item {
    transition: 0.4s ease;
    animation: fadeIn 0.5s forwards;
    width: 100%;
}
.blog-style-item.hide {
    display: none;
}

.blog-style-card {
    display: flex;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 280px;
}

.blog-style-card:hover {
    transform: translateY(-8px);
    border-color: rgba(167, 69, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(167, 69, 255, 0.1);
}

.blog-img-wrapper {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
    overflow: hidden;
}

.blog-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

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

.blog-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(12, 13, 20, 0.9));
    z-index: 1;
}

[data-theme="light"] .blog-img-overlay {
    background: linear-gradient(to right, transparent, rgba(244, 246, 249, 0.9));
}

.blog-content {
    flex: 1;
    padding: 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    background: linear-gradient(to left, var(--bg-card) 80%, transparent);
}

.blog-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.blog-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.blog-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

[data-theme="light"] .blog-footer {
    border-top: 1px solid rgba(0,0,0,0.05);
}

.blog-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    background: rgba(255,255,255,0.05);
    padding: 10px 20px;
    border-radius: 30px;
}

.blog-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

[data-theme="light"] .blog-link {
    color: var(--text-white);
    background: rgba(0,0,0,0.05);
}

[data-theme="light"] .blog-link:hover {
    color: white;
}

/* Responsive adjustments for Blog Layout */
@media (max-width: 992px) {
    .blog-style-card {
        flex-direction: column;
    }
    .blog-img-wrapper {
        flex: none;
        max-width: 100%;
        height: 250px;
    }
    .blog-img-overlay {
        background: linear-gradient(to top, rgba(12, 13, 20, 0.95), transparent);
    }
    [data-theme="light"] .blog-img-overlay {
        background: linear-gradient(to top, rgba(244, 246, 249, 0.95), transparent);
    }
    .blog-content {
        padding: 2rem;
        background: none;
    }
}

/* =========================================================================
   ASTROVERSE STYLE LAYOUT (FOR META ADS SECTION)
   ========================================================================= */

.astro-section {
    padding: 3rem;
    background: radial-gradient(circle at center, rgba(167, 69, 255, 0.08) 0%, transparent 70%);
    border-radius: 30px;
    margin-top: 4rem;
    position: relative;
    border: 1px solid rgba(167, 69, 255, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
}

.astro-section::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(167, 69, 255, 0.8), transparent);
    border-radius: 50%;
    filter: blur(2px);
}

.astro-content {
    flex: 1;
    min-width: 300px;
}

.astro-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a745ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.astro-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.astro-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(167, 69, 255, 0.1);
    border: 1px solid rgba(167, 69, 255, 0.3);
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.astro-badge:hover {
    background: rgba(167, 69, 255, 0.2);
    box-shadow: 0 0 20px rgba(167, 69, 255, 0.3);
}

.astro-badge i {
    font-size: 1.5rem;
    color: #a745ff;
    text-shadow: 0 0 10px rgba(167, 69, 255, 0.8);
}

.astro-badge span {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.astro-mockup-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-width: 300px;
}

/* Phone Mockup Frame */
.astro-phone-mockup {
    width: 280px;
    height: 570px;
    background: #000;
    border-radius: 40px;
    padding: 12px;
    position: relative;
    border: 3px solid #2a2a35;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 50px rgba(167, 69, 255, 0.2);
    transition: transform 0.4s ease;
    cursor: pointer;
}

.astro-phone-mockup:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 70px rgba(0,0,0,0.7), 0 0 80px rgba(167, 69, 255, 0.4);
    border-color: rgba(167, 69, 255, 0.5);
}

/* The Notch */
.astro-phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

/* Screen Area */
.astro-phone-screen {
    width: 100%;
    height: 100%;
    background: #12131c;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

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

/* Floating Elements (like in AstroVerse ref) */
.astro-float-card {
    position: absolute;
    background: rgba(20, 15, 30, 0.8);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(167, 69, 255, 0.3);
    padding: 15px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 5;
    animation: float 4s ease-in-out infinite alternate;
}

.astro-float-card.top-left {
    top: 20px;
    left: -30px;
}

.astro-float-card.top-right {
    top: 20px;
    right: -30px;
    animation-delay: 0.5s;
}

.astro-float-card.bottom-right {
    bottom: 20px;
    right: -30px;
    animation-delay: 1s;
}

.astro-float-card.bottom-left {
    bottom: 20px;
    left: -30px;
    animation-delay: 1.5s;
}

.astro-float-card i {
    background: linear-gradient(135deg, #a745ff, #4261ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
}

.astro-float-card div {
    display: flex;
    flex-direction: column;
}

.astro-float-card strong {
    color: white;
    font-size: 0.9rem;
}

.astro-float-card span {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
}

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

[data-theme="light"] .astro-section {
    background: radial-gradient(circle at center, rgba(167, 69, 255, 0.05) 0%, transparent 70%);
}
[data-theme="light"] .astro-phone-mockup {
    border-color: #d1d5db;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1), 0 0 50px rgba(167, 69, 255, 0.1);
}
[data-theme="light"] .astro-phone-mockup::before {
    background: #d1d5db;
}
[data-theme="light"] .astro-float-card {
    background: rgba(255,255,255,0.9);
    border-color: rgba(167, 69, 255, 0.2);
}
[data-theme="light"] .astro-float-card strong {
    color: #000;
}

/* =========================================================================
   SOCIAL MEDIA FEED LAYOUT (NEW)
   ========================================================================= */

.social-feed-container {
    max-width: 650px;
    margin-left: auto;
    margin-right: 5%; /* Agak mepet kanan */
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.social-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.social-post-card:hover {
    border-color: rgba(167, 69, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.social-post-header {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.social-post-header .company-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.social-post-header .post-meta {
    display: flex;
    flex-direction: column;
}

.social-post-header .post-meta h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.social-post-header .post-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.social-post-image {
    width: 100%;
    background: #000;
}

.social-post-image img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.social-post-actions {
    display: flex;
    gap: 15px;
    padding: 1rem 1.5rem 0.5rem;
    font-size: 1.4rem;
}

.social-post-actions i {
    cursor: pointer;
    transition: 0.2s;
    color: var(--text-white);
}

.social-post-actions i:hover {
    color: #a745ff;
    transform: scale(1.1);
}

.social-post-caption {
    padding: 0.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-white);
}

.social-post-caption strong {
    font-weight: 700;
    margin-right: 5px;
}

.post-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tags .hashtag {
    color: #4261ee;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

.post-tags .hashtag:hover {
    color: #a745ff;
    text-decoration: underline;
}

/* Light Theme Adjustments */
[data-theme="light"] .social-post-actions i {
    color: #12131c;
}
[data-theme="light"] .social-post-caption {
    color: #12131c;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none; 
    position: fixed; 
    z-index: 9999; 
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}
.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: #a745ff;
    text-decoration: none;
    cursor: pointer;
}
@keyframes zoomIn {
    from {transform:scale(0.9)} 
    to {transform:scale(1)}
}

/* Before & After Grid */
.before-after-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}
.ba-img-wrapper {
    position: relative;
    width: 100%;
}
.ba-img-wrapper img {
    width: 100%;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.ba-img-wrapper img:hover {
    transform: scale(1.02);
}
.ba-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
}

/* Updated Avatar and Header */
.company-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a1b2a;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 2px solid rgba(167, 69, 255, 0.2);
}
.company-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: white; /* for transparent pngs */
}
.post-meta h4 {
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.post-meta span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}
[data-theme="light"] .post-meta span {
    color: rgba(0, 0, 0, 0.6);
}

/* =========================================
   PINTEREST-STYLE GALLERY & MODAL
========================================= */

/* Instagram-Style Feed Grid (3 Columns everywhere without cropping) */
.pinterest-grid {
    column-count: 3;
    column-gap: 15px;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .pinterest-grid {
        column-gap: 5px;
    }
}

.pinterest-item {
    break-inside: avoid;
    margin-bottom: 15px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .pinterest-item {
        margin-bottom: 5px;
        border-radius: 8px;
    }
}

.pinterest-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pinterest-item-details {
    display: none !important; /* Hide details for IG feed look */
}

.pinterest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(167, 69, 255, 0.2);
}

.pinterest-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pinterest-item:hover img {
    transform: scale(1.05);
}

.pinterest-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.pinterest-item:hover .pinterest-overlay {
    opacity: 1;
}

.pinterest-overlay h4 {
    color: white;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.pinterest-overlay span {
    color: #a745ff;
    font-size: 0.9rem;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.pinterest-item:hover .pinterest-overlay h4,
.pinterest-item:hover .pinterest-overlay span {
    transform: translateY(0);
}

/* Pinterest Style Modal */
.pinterest-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    overflow-y: auto;
    padding: 2rem 1rem;
    align-items: center;
    justify-content: center;
}

.pinterest-modal.active {
    display: flex;
}

.pm-content {
    background: var(--bg-card);
    width: 95%;
    max-width: 1400px;
    border-radius: 16px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pm-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.pm-close:hover {
    background: #a745ff;
    transform: rotate(90deg);
}

.pm-media {
    flex: 2.5;
    background: #000;
    position: relative;
    display: block;
    text-align: center;
    min-height: 400px;
    overflow: hidden;
}

.pm-media::before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.pm-media img {
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.pm-info {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow-y: auto;
}

.pm-info::-webkit-scrollbar {
    width: 6px;
}
.pm-info::-webkit-scrollbar-thumb {
    background: rgba(167, 69, 255, 0.3);
    border-radius: 10px;
}

.pm-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    line-height: 1.2;
}

.pm-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Charts & Stats */
.pm-stats {
    background: rgba(167, 69, 255, 0.05);
    border: 1px solid rgba(167, 69, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: auto;
}

.pm-stat-item {
    margin-bottom: 1rem;
}

.pm-stat-item:last-child {
    margin-bottom: 0;
}

.pm-stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-white);
}

.pm-stat-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.pm-stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4261ee, #a745ff);
    width: 0; /* Animated via JS */
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Carousel Controls */
.pm-carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.pm-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pm-dot.active {
    background: #a745ff;
    transform: scale(1.2);
}

.pm-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.3s;
}

.pm-nav-btn:hover {
    background: #a745ff;
}

.pm-nav-prev { left: 15px; }
.pm-nav-next { right: 15px; }

@media (max-width: 768px) {
    .pm-content {
        flex-direction: column;
    }
    .pm-media {
        min-height: 250px;
    }
    .pm-info {
        padding: 1.5rem;
    }
}




/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 10;
    pointer-events: none;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* =========================================================================
   MOBILE SIDEBAR FIXES
   ========================================================================= */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    font-size: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.mobile-nav-toggle:hover {
    background: var(--gradient-primary);
    border-color: transparent;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
        overflow-y: auto;
        padding-bottom: 5rem;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }
    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
        max-width: 100vw;
    }
    .slide-section {
        left: 0;
        width: 100%;
        padding: 5rem 1.5rem 2rem 1.5rem;
    }
    #home-slide.slide-section {
        padding-top: 5rem;
    }
    .hero-image-container {
        width: 100%;
        height: auto;
        min-height: 300px;
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    .hero-image {
        width: 100%;
        max-width: 350px;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .bg-photo-duplicate {
        opacity: 0;
        width: 100vw;
        height: 100vh;
        right: 0;
        bottom: 0;
        justify-content: center;
        align-items: center;
        transition: opacity 1.5s ease-in-out;
    }
    body.scrolled-state .bg-photo-duplicate {
        opacity: 0.15;
    }
    .bg-photo-duplicate .hero-image {
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center top;
        -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    }
    .hero {
        min-height: 100vh;
        flex-direction: column;
        justify-content: center;
    }
}


.company-logo-large { 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    margin-bottom: 1.5rem; 
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important;
} 
.company-logo-large img { 
    max-width: 200px; 
    max-height: 80px; 
    object-fit: contain; 
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    padding: 0 !important; 
    transition: filter 0.3s ease;
}

[data-theme="light"] .company-logo-large img {
    filter: invert(1) brightness(0);
}


.pinterest-item[data-type="video"] { width: 75% !important; margin-left: auto !important; margin-right: auto !important; }

/* =========================================================================
   COMPREHENSIVE MOBILE RESPONSIVE FIXES
   ========================================================================= */
@media (max-width: 768px) {
    /* Typography Fixes */
    .hero-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
        margin: 0.5rem 0;
    }
    .hero-content h1 .profile-name-display {
        font-size: inherit !important;
    }
    .hero-content h2 {
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem;
    }
    .hero-content p {
        font-size: 0.95rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Layout & Spacing Fixes */
    .hero {
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 5rem !important;
        padding-bottom: 0 !important;
        min-height: 100vh !important;
        height: 100vh;
        overflow: hidden;
    }
    .hero-image {
        height: 100%;
        width: 100%;
        max-width: none; /* Let it grow to fill height */
        object-fit: contain;
        object-position: bottom center; /* Anchor to bottom */
    }
    .hero-content {
        max-width: 100%;
        transform: translateY(0);
        padding: 0 1rem;
        flex: 0 0 auto; /* Do not grow */
        z-index: 2;
    }
    .hero-actions {
        display: flex;
        flex-direction: row; /* Side-by-side buttons */
        justify-content: center;
        gap: 10px;
        margin-top: 1rem;
        width: 100%;
    }
    .hero-actions .btn {
        flex: 1; /* Equal width */
        padding: 12px 5px !important; /* Less padding to fit */
        font-size: 0.95rem !important;
        white-space: nowrap;
        text-align: center;
    }
    
    /* Centering Images */
    .hero-image-container {
        margin: 1rem auto 0 auto !important;
        display: flex;
        justify-content: center;
        align-items: flex-end !important; /* Stick to bottom */
        position: relative;
        flex: 1 1 auto; /* Take up all remaining height */
        width: 100%;
        min-height: 0;
        z-index: 1;
    }
    .experience-badge {
        bottom: 5% !important;
        right: 5% !important;
        transform: scale(0.8);
    }
    .timeline-logo {
        margin: 1.5rem auto 0 auto;
        display: flex;
        justify-content: center;
    }
    .education-photo {
        margin: 1.5rem auto 0 auto;
        display: flex;
        justify-content: center;
    }
    
    /* Ensure Names Don't Get Cut Off (Sidebar Only) */
    .logo-text h2, .logo-text .profile-name-display {
        font-size: 1rem;
        word-wrap: break-word;
        white-space: normal;
    }
    
    /* Grid Layout Fixes */
    .portfolio-grid, 
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Skills Grid (2 Columns) */
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    .service-card {
        padding: 1rem !important;
    }
    .service-card h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem;
    }
    .service-card p {
        font-size: 0.8rem !important;
        line-height: 1.4;
    }
    .service-card .icon-wrapper {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
        margin-bottom: 0.8rem;
    }
    
    /* Stats & Contact sections */
    .stats-banner, 
    .contact-section {
        flex-direction: column;
        padding: 1.5rem;
    }
    .stat-item {
        margin-bottom: 1rem;
    }
    
    /* Form Fixes */
    .form-group-row {
        flex-direction: column;
        gap: 1rem;
    }
    /* Portfolio Fixes */
    .portfolio-hero {
        height: 220px !important;
        margin-bottom: 2rem !important;
    }
    .portfolio-hero-overlay h1 {
        font-size: 2.2rem !important;
    }
    .hero-chart-overlay {
        height: 70px !important;
    }
    .hero-bar {
        width: 15px !important;
    }
    
    /* Other Elements */
    .experience-badge {
        position: absolute !important;
        right: 10px !important;
        bottom: 20px !important;
        margin: 0 !important;
        transform: scale(0.85);
        transform-origin: bottom right;
    }
    
    /* Timeline Fixes */
    .timeline-item-split {
        display: grid !important;
        grid-template-columns: 1fr 60px;
        column-gap: 1rem;
        row-gap: 0.2rem;
        text-align: left;
    }
    .timeline-text {
        display: contents;
    }
    .timeline-text > * {
        grid-column: 1 / -1; /* All text elements span full width by default */
    }
    .timeline-text h3, 
    .timeline-text .timeline-date {
        grid-column: 1 / 2; /* Keep name and date on the left side of the logo */
    }
    .timeline-logo {
        grid-column: 2 / 3;
        grid-row: 1 / 3; /* Place logo spanning the first two rows (h3 and date) */
        width: 60px !important;
        height: 60px !important;
        margin: 0 !important;
        align-self: center;
    }
    
    /* Education Fixes */
    .education-item-split {
        flex-direction: column;
        text-align: left;
    }

    /* Logos Section */
    .logos {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-bg-text-inner {
        font-size: 2.5rem !important;
        white-space: nowrap;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.4rem !important;
    }
    .hero-content h2 {
        font-size: 1.2rem !important;
    }
    .section-header h2 {
        font-size: 1.6rem;
    }
    .main-content {
        padding: 1rem;
    }
    .slide-section {
        padding: 4rem 1rem 1rem 1rem;
    }
}
