
:root {
    --bg: #ffffff;
    --text: #111111;
    --muted: #666666;
    --border: #eaeaea;
    --accent: #2563eb;
    --sub-bg: #f9f9f9;
}

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

/* --- ENABLE SCROLL SNAPPING --- */
html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* --- SECTION SNAPPING --- */
section { 
    padding: 0 8%; 
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; 
    scroll-snap-align: start; 
    scroll-snap-stop: always;
}

/* --- Scroll Animation Styles --- */
.reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.8s ease-out; 
}
.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Navigation */
nav {
    padding: 0 8%;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    }

    .nav-logo {
    font-weight: 700;
    letter-spacing: -0.01em;
    font-size: 1.1rem;
    }

    .nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
    }

    .nav-tabs {
    display: flex;
    gap: 32px;
    }

    .nav-tabs a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    }

    .nav-tabs a:hover {
    opacity: 1;
    }

    .nav-socials {
    display: flex;
    gap: 20px;
    align-items: center;
    border-left: 1px solid var(--border);
    padding-left: 20px;
    }

    .nav-socials a {
    color: var(--text);
    opacity: 0.6;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    }

    .nav-socials a:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-1px);
    }
    .cv-btn { background: var(--text); color: white !important; padding: 8px 18px; border-radius: 6px; font-weight: 600; }

/* Mobile Menu Toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.menu-toggle span { width: 25px; height: 2px; background: var(--text); transition: 0.3s; }

/* Hero */
.hero h1 { font-size: 56px; max-width: 900px; font-weight: 600; letter-spacing: -0.02em; }
.hero h1 span { color: var(--accent); }
.hero p { margin-top: 24px; max-width: 640px; color: var(--muted); font-size: 17px; }

/* Journey */
.about { max-width: 820px; }
.ai-badge { 
    display: inline-block; margin: 20px 0; padding: 4px 12px; 
    background: #eff6ff; color: var(--accent); border-radius: 4px; 
    font-size: 13px; font-weight: 700; border: 1px solid #dbeafe;
}

/* Projects Grid (Each Project is its own full-screen section) */
.project {
    min-height: 100vh;
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center; 
    padding: 0 8%;
    scroll-snap-align: start;
}
.project:nth-child(even) { direction: rtl; }
.project:nth-child(even) > * { direction: ltr; }

.project-visual {
    border-radius: 18px; border: 1px solid var(--border); 
    /* height: 480px; */
    background: var(--sub-bg); position: relative; overflow: hidden;
}
.carousel-container { display: flex; height: 100%; transition: transform 0.5s ease; }
.carousel-item { min-width: 100%; 
    /* height: 100%;  */
}
.carousel-item img { width: 100%; height: 100%; object-fit: cover; }

.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; }
.prev { left: 15px; } .next { right: 15px; }

.tag { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; }
.tech-pill { display: inline-block; padding: 2px 10px; background: #eee; border-radius: 4px; font-size: 11px; font-weight: 700; margin: 0 5px 10px 0; }

.case-detail { margin-top: 24px; padding: 24px; background: #fafafa; border-radius: 12px; border-left: 4px solid var(--accent); }
.case-detail h4 { font-size: 13px; text-transform: uppercase; margin-bottom: 10px; }

/* Things I Share */
.blogs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; width: 100%; }
.blog-card { border: 1px solid var(--border); border-radius: 18px; padding: 32px; transition: 0.3s; background: white; }
.blog-card:hover { border-color: var(--accent); transform: translateY(-4px); }

/* Contact */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; width: 100%; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; }

footer { padding: 40px 8%; border-top: 1px solid var(--border); text-align: center; scroll-snap-align: end; }
.social-links { margin-bottom: 20px; display: flex; justify-content: center; gap: 20px; }
.social-links a { color: var(--text); text-decoration: none; font-weight: 600; }

@media (max-width: 900px) {
    html { scroll-snap-type: none; }
    .menu-toggle { display: flex; }
    .nav-tabs {
    position: fixed; top: 0; right: -100%; width: 70%; height: 100vh;
    background: white; flex-direction: column; justify-content: center;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1); transition: 0.4s; padding: 40px;
    }
    .nav-tabs.active { right: 0; }
    .project, .project:nth-child(even) { grid-template-columns: 1fr; direction: ltr; min-height: auto; padding: 80px 8%; }
    .hero h1 { font-size: 42px; }
    .contact-form { grid-template-columns: 1fr; }
    /* .project-visual { height: 350px; } */
    section { min-height: auto; padding: 80px 8%; }
}
/* --- MARQUEE STYLES TESTIMIONIALs --- */
/* Featured Card Layout */
.featured-testimonial {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 8%;
}

.long-form {
    width: 100%;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Marquee Container Adjustments */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.marquee-item {
    width: 450px; /* Fixed width to ensure 2 fit on screen nicely */
    flex-shrink: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pause on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

/* Glass Card Global Style */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 28px;
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* SKILLS MARQUEE */
.skill-marquee {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.skill-pill {
    padding: 12px 28px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Reverse direction for the first row */
.marquee-track.reverse {
    animation: scroll-reverse 50s linear infinite;
}

@keyframes scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* START:: Project detail :modal */

/* View Detail Button */
.view-detail-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.view-detail-btn:hover {
    background: var(--accent);
    color: white;
}

/* Modal Overlay */
.project-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    overflow-y: auto;
}

.modal-content {
    background: white;
    max-width: 900px;
    margin: 50px auto;
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 30px; right: 30px;
    font-size: 30px; cursor: pointer;
}

/* Modal Layout */
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 30px 0; }
.modal-column h4 { margin-bottom: 15px; color: var(--accent); }
.modal-column ul { list-style: none; }
.modal-column li { margin-bottom: 15px; font-size: 15px; }
.modal-footer-box { background: #f8fbff; padding: 25px; border-radius: 15px; border-left: 5px solid var(--accent); }


/* --- Apple Modal Overrides --- */
.apple-modal-header {
    text-align: center;
    padding: 40px 0 60px;
}

.apple-modal-header .eyebrow {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 13px;
    display: block;
    margin-bottom: 12px;
}

.apple-modal-header h2 {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #1d1d1f;
}

.apple-modal-header h2 span {
    color: #86868b; /* Apple's signature greyed-out text */
}

.apple-modal-header .lead-text {
    font-size: 21px;
    color: #424245;
    max-width: 600px;
    margin: 24px auto 0;
    line-height: 1.4;
}

.apple-intro-block {
    font-size: 19px;
    line-height: 1.5;
    color: #1d1d1f;
    margin-bottom: 60px;
    border-bottom: 1px solid #f5f5f7;
    padding-bottom: 40px;
}

/* Bento Grid Styling */
.apple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.apple-card {
    background: #f5f5f7; /* Apple's system grey */
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.apple-card.wide {
    grid-column: span 2;
}

.apple-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.apple-card ul {
    list-style: none;
    padding: 0;
}

.apple-card li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 16px;
    color: #424245;
}

.apple-card li:last-child { border: none; }

.card-footer-text {
    margin-top: 20px;
    font-size: 14px;
    color: #86868b;
    font-weight: 500;
}

/* --- MINIMALIST FOOTER --- */
footer {
    padding: 60px 8% 40px;
    /* border-top: 1px solid var(--border); */
    background: var(--bg);
    scroll-snap-align: end;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-logo {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: var(--text);
}

.footer-nav {
    display: flex;
    gap: 80px;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.footer-group a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 400;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.footer-group a:hover {
    opacity: 1;
    color: var(--accent);
}

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

.back-to-top {
    text-decoration: none;
    color: var(--muted);
    transition: color 0.2s;
}

.back-to-top:hover {
    color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    .footer-nav {
        gap: 40px;
        width: 100%;
        justify-content: space-between;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .apple-grid { grid-template-columns: 1fr; }
    .apple-card.wide { grid-column: span 1; }
    .apple-modal-header h2 { font-size: 32px; }
}
/* END:: Project detail :modal */

.journal-scroll-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.journal-scroll-container {
    -ms-overflow-style: none;  /* Hide scrollbar for IE/Edge */
    scrollbar-width: none;  /* Hide scrollbar for Firefox */
}

.journal-air-card:hover {
    transform: scale(1.02);
    background: #f0f0f2 !important;
}

#journal-peek h2 span {
    color: #d2d2d7; /* Soft gray for the second word */
}
/* Styling for the Quote Icon */
.quote-mark {
    display: block;
    color: var(--accent); /* Uses your blue/purple primary color */
    opacity: 0.3; /* Subtle look like Apple-style design */
    margin-bottom: 20px;
}

.quote-mark.small svg {
    width: 20px;
    height: 20px;
}

/* Ensure marquee items handle the icon well */
.marquee-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Featured card icon size */
.featured-testimonial .quote-mark svg {
    width: 45px;
    height: 45px;
}