/* CSS Variables for theming */
:root {
    --bg-color: #1a1a2e;
    --text-main: #ffffff;
    --accent-glow: #ff9a9e; /* Warm Peach */
    --secondary-glow: #fecfef; /* Soft Pink */
    --cyan-pop: #00f2fe; /* Keeping a pop of cyan */
    --purple-accent: #bd39d1;
    --gold-accent: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Background Image with Blur Effect */
.bg-image {
    position: fixed;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px; /* Stretching out edges to prevent blurred cutoffs */
    background: url('assets/Beach.JPG') center/cover no-repeat;
    filter: blur(12px) brightness(0.6);
    z-index: -2;
}

/* Animated Gradient Background */
.animated-bg {
    /* Converted hex to transparent RGBA to let the blurred image show through */
    background: linear-gradient(-45deg, rgba(26, 26, 46, 0.8), rgba(255, 154, 158, 0.3), rgba(0, 242, 254, 0.2), rgba(26, 26, 46, 0.9));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    animation: slideDown 1s cubic-bezier(0.25, 1, 0.5, 1);
    text-shadow: 0 0 15px rgba(255, 154, 158, 0.5);
}

.hero h2 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    min-height: 40px; 
}

.typing-text {
    color: var(--accent-glow);
    border-right: 3px solid var(--accent-glow);
    animation: blinkCursor 0.75s step-end infinite;
}

@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-glow); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    font-size: 2rem;
    animation: float 2s ease-in-out infinite;
    cursor: pointer;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* ==================== SCROLL REVEAL ANIMATIONS ==================== */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Flip In */
@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

/* Zoom In Bounce */
@keyframes zoomInBounce {
    from {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Jump In From Far */
@keyframes jumpInFromFar {
    0% {
        opacity: 0;
        transform: translate3d(200px, -200px, -200px) scale(0.1) rotate(45deg);
    }
    60% {
        opacity: 1;
        transform: translate3d(-20px, 20px, 0) scale(1.1) rotate(-10deg);
    }
    80% {
        transform: translate3d(10px, -10px, 0) scale(0.95) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    }
}

/* Race and Brake */
@keyframes raceAndBrake {
    0% {
        opacity: 0;
        transform: translateX(150%) skewX(-30deg) scale(0.8);
    }
    40% {
        opacity: 1;
        transform: translateX(-15%) skewX(20deg) scale(1.1);
    }
    60% { transform: translateX(10%) skewX(-10deg) scale(0.95); }
    80% { transform: translateX(-5%) skewX(5deg) scale(1.02); }
    100% { opacity: 1; transform: translateX(0) skewX(0deg) scale(1); }
}

/* Rotate In */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-45deg) scale(0.7);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Pulse Glow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 154, 158, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 242, 254, 0.8), 0 0 60px rgba(255, 154, 158, 0.4);
    }
}

/* Wiggle */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

/* Bounce */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Ripple Effect */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* About Section */
.about-section {
    padding: 80px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(50px);
}

.about-text.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Awesome Story Layout */
.story-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 80px;
    opacity: 0;
}

.story-row.visible {
    animation: fadeInUp 0.9s ease-out forwards;
}

.story-row.visible .story-text-box {
    animation: slideInLeft 0.8s ease-out forwards;
}

.story-row.visible .story-image-box {
    animation: slideInRight 0.9s ease-out forwards;
    animation-delay: 0.2s;
}

.story-row.reverse.visible .story-text-box {
    animation: slideInRight 0.8s ease-out forwards;
}

.story-row.reverse.visible .story-image-box {
    animation: slideInLeft 0.9s ease-out forwards;
    animation-delay: 0.2s;
}

.story-row.reverse {
    flex-direction: row-reverse;
}

.story-text-box {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-text-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.15);
    border-color: rgba(255, 154, 158, 0.5);
}

.story-text-box.highlight-box {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.1) 0%, rgba(0, 242, 254, 0.1) 100%);
    border: 2px solid rgba(0, 242, 254, 0.5);
    position: relative;
    overflow: hidden;
}

.story-text-box.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, transparent 70%);
    animation: shine 6s linear infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.story-text-box h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent-glow);
}

.story-text-box p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #eaeaea;
}

.story-image-box {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Super Awesome Image Animations */
.framed-img {
    max-width: 100%;
    width: 350px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: floatSlow 6s ease-in-out infinite, pulseGlow 4s ease-in-out infinite;
    object-fit: cover;
    position: relative;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); /* Hardware acceleration to stop flicker */
    will-change: transform, box-shadow; /* Browser rendering hint */
}

.framed-img:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.3), 0 0 30px rgba(255, 154, 158, 0.4);
    filter: brightness(1.1);
}

.framed-img.tilt-left { animation-delay: 1s; }
.framed-img.tilt-left:hover { transform: scale(1.05) rotate(-3deg); }

.story-row.visible .framed-img {
    /* Sequence the jump-in first, then kick off the floating loop! */
    animation: jumpInFromFar 1.2s ease-out 0.2s both, floatSlow 6s ease-in-out infinite 1.4s, pulseGlow 4s ease-in-out infinite 1.4s;
}

.story-row.visible .framed-img.race-in {
    animation: raceAndBrake 1.2s ease-out 0.2s both, floatSlow 6s ease-in-out infinite 1.4s, pulseGlow 4s ease-in-out infinite 1.4s;
}

@keyframes floatSlow {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Hero Profile Blob Morph */
.blob-profile {
    width: 250px;
    height: 250px;
    background-image: url('assets/Peach.jpeg');
    background-size: cover;
    background-position: center;
    margin: 0 auto 30px auto;
    box-shadow: 0 0 30px rgba(255, 154, 158, 0.6);
    animation: morph 8s ease-in-out infinite, floatSlow 4s ease-in-out infinite;
    border: 3px solid rgba(255, 255, 255, 0.2);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes morph {
    0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

/* Image Card Styling */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Achievement Badge */
.achievement-badge {
    background: rgba(0, 242, 254, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 242, 254, 0.5);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    opacity: 0;
    animation: slideInRight 0.8s ease-out forwards, floatSlow 4s ease-in-out infinite;
    animation-delay: 0s, 0.8s;
}

.badge-icon {
    font-size: 4rem;
    animation: bounce 2s ease-in-out infinite;
}

.badge-text {
    flex: 1;
}

.badge-title {
    font-size: 1.5rem;
    color: var(--cyan-pop);
    font-weight: 700;
    margin-bottom: 8px;
}

.badge-desc {
    font-size: 1rem;
    color: var(--accent-glow);
    font-style: italic;
}

@media (max-width: 768px) {
    .achievement-badge {
        flex-direction: column;
        text-align: center;
    }
}

/* Bike Page Specific Styles */
.back-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 25px;
    font-size: 1.1rem;
    color: var(--accent-glow);
    text-decoration: none;
    border: 1px solid var(--accent-glow);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--cyan-pop);
    color: #000;
    box-shadow: 0 0 20px var(--cyan-pop);
    transform: scale(1.1);
}

.bike-image {
    width: 100%;
    max-width: 700px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(255, 154, 158, 0.3);
    animation: floatSlow 5s ease-in-out infinite;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0); /* Hardware acceleration to stop flicker */
    will-change: transform, box-shadow; /* Browser rendering hint */
}

/* Section Title */
.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    text-align: center;
    opacity: 0;
    color: var(--secondary-glow);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-glow), var(--cyan-pop));
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-title.visible {
    animation: fadeInDown 0.8s ease-out forwards;
}

/* ==================== JOURNEY STACK SECTION ==================== */
.journey-section {
    padding: 0 20px;
    max-width: 100%;
    margin: 50px auto;
    position: relative;
}

.horizontal-timeline-wrapper {
    width: 100%;
    overflow-x: auto;
    cursor: grab;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.horizontal-timeline-wrapper:active {
    cursor: grabbing;
}

.horizontal-timeline-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.horizontal-timeline {
    display: flex;
    padding: 180px 0; /* Space for cards above and below */
    position: relative;
}

.timeline-line-horizontal {
    position: absolute;
    top: 50%;
    left: 0;
    height: 4px;
    width: 100%; /* Stretches the full width of all items */
    background: linear-gradient(to right, var(--accent-glow), var(--cyan-pop));
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
    transform: translateY(-50%);
}

.timeline-item {
    width: 380px; /* Fixed width for each item */
    padding: 0 25px;
    position: relative;
    margin-bottom: 0; /* Reset from vertical */
    flex-shrink: 0; /* Prevent items from shrinking */
}

.timeline-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 4px solid var(--cyan-pop);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--cyan-pop);
    transition: transform 0.3s ease, background 0.3s ease;
}

.journey-card {
    width: 100%;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 15px;
    z-index: 1;
    position: relative;
}

/* Alternating cards above and below the timeline */
.timeline-item:nth-child(odd) .journey-card {
    bottom: 40px;
}

.timeline-item:nth-child(even) .journey-card {
    top: 40px;
}

/* Arrow pointing to the timeline dot */
.journey-card::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-width: 15px;
    border-style: solid;
    z-index: -1;
}

.timeline-item:nth-child(odd) .journey-card::after {
    top: 100%; /* Arrow at the bottom of the card */
    border-color: rgba(255, 154, 158, 0.4) transparent transparent transparent;
}

.timeline-item:nth-child(even) .journey-card::after {
    bottom: 100%; /* Arrow at the top of the card */
    border-color: transparent transparent rgba(0, 242, 254, 0.4) transparent;
}

.journey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.15);
}

.journey-card.highlight-box {
    background-color: rgba(20, 20, 35, 0.98);
    background-image: linear-gradient(135deg, rgba(255, 154, 158, 0.15) 0%, rgba(0, 242, 254, 0.15) 100%);
    border: 2px solid rgba(255, 154, 158, 0.4);
    position: relative;
    overflow: hidden;
}

.journey-card.highlight-box:nth-child(even) {
    border-color: rgba(0, 242, 254, 0.4);
}

.journey-card.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.05) 0%, transparent 70%);
    animation: shine 6s linear infinite;
    pointer-events: none;
}

.journey-card.highlight-box:nth-child(even)::before {
    background: radial-gradient(circle, rgba(255, 154, 158, 0.05) 0%, transparent 70%);
}

.journey-date {
    font-size: 1.2rem;
    color: var(--cyan-pop);
    font-weight: 700;
    background: rgba(0, 242, 254, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
    display: inline-block;
}

.journey-content h3 {
    font-size: 2rem;
    color: var(--accent-glow);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 154, 158, 0.4);
}

.journey-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #eaeaea;
    max-width: 100%;
    margin: 0;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(189, 57, 209, 0.1) 0%, rgba(0, 242, 254, 0.05) 100%);
    margin: 50px 0;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1.1rem;
    color: #ddd;
    margin-bottom: 40px;
    opacity: 0;
}

.contact-text.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.contact-method {
    background: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
    cursor: pointer;
}

.contact-method.visible {
    animation: zoomInBounce 0.7s ease-out forwards;
}

.contact-method:hover {
    background: rgba(0, 242, 254, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.2);
    border-color: rgba(0, 242, 254, 0.6);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    animation: bounce 2s ease-in-out infinite;
}

.contact-method:hover .contact-icon {
    animation: rotateIn 0.6s ease-out;
}

.contact-label {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 8px;
}

.contact-link {
    font-size: 1.1rem;
    color: var(--accent-glow);
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-all;
}

.contact-link:hover {
    color: var(--cyan-pop);
    text-decoration: underline;
}

.contact-cta {
    margin-top: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-glow), var(--cyan-pop));
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3);
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.cta-button.visible {
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 242, 254, 0.5);
}

/* ==================== SALESFORCE SPECIFIC ==================== */
.sf-hero-logo-container {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 0 40px rgba(0, 161, 224, 0.6);
    animation: floatSlow 4s ease-in-out infinite, pulseGlow 4s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sf-hero-logo {
    width: 200px;
    object-fit: contain;
}

/* ==================== PROJECTS STACK (FILE FOLDER EFFECT) ==================== */
.projects-stack {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 40px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.stacked-card {
    position: sticky;
    height: auto;
    min-height: 380px;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--cyan-pop);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 -25px 50px rgba(0, 0, 0, 0.8);
    transform-origin: top center;
    opacity: 0;
    transition: transform 0.1s linear, filter 0.1s linear, opacity 0.8s ease-out;
    display: flex;
    flex-direction: column;
}

.stacked-card.visible {
    opacity: 1;
}

.stacked-card-header {
    display: flex;
    align-items: center;
    gap: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.company-logo-box {
    width: 70px;
    height: 70px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 242, 254, 0.3);
}

.company-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stacked-card-title {
    font-size: 2rem;
    color: var(--accent-glow);
    margin-bottom: 5px;
}

.stacked-card-role {
    font-size: 1.1rem;
    color: var(--cyan-pop);
    font-weight: 500;
}

.stacked-card-body {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #eaeaea;
    flex-grow: 1;
}

.project-tech {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    font-size: 0.8rem;
    padding: 5px 12px;
    background: rgba(255, 154, 158, 0.1);
    color: var(--accent-glow);
    border-radius: 20px;
    border: 1px solid rgba(255, 154, 158, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Tech Tag Motion Hover */
.tech-tag:hover {
    transform: translateY(-5px) scale(1.15);
    box-shadow: 0 8px 15px rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.2);
    border-color: var(--cyan-pop);
    color: #fff;
}

/* ==================== CERTIFICATIONS GRID ==================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 20px;
}

.cert-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 242, 254, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    cursor: pointer;
}

.cert-card.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Radical 3D Tilt & Glow Hover for Certifications */
.cert-card:hover {
    transform: perspective(800px) rotateX(10deg) rotateY(-10deg) scale(1.08) translateY(-10px);
    box-shadow: -10px 15px 35px rgba(0, 161, 224, 0.3), 10px -15px 35px rgba(255, 154, 158, 0.3);
    border-color: var(--cyan-pop);
    background: linear-gradient(135deg, rgba(0, 161, 224, 0.15) 0%, rgba(255, 154, 158, 0.1) 100%);
    z-index: 5;
}

.cert-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.4));
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

/* 180 Degree Icon Flip on Hover */
.cert-card:hover .cert-icon {
    transform: scale(1.3) rotateY(180deg);
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

.cert-title {
    font-size: 1.15rem;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.4;
    text-shadow: 0 0 5px rgba(0, 242, 254, 0.3);
    transition: color 0.4s ease;
}

.cert-card:hover .cert-title {
    color: var(--gold-accent);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-pop);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.social-icon:hover {
    background: var(--cyan-pop);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.3);
}

/* ==================== ABOUT ME GALLERY ==================== */
.photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    margin-top: 60px;
    padding: 20px;
}

.gallery-img {
    width: 240px;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.gallery-img:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 20px 50px rgba(0, 242, 254, 0.6), 0 0 30px rgba(255, 154, 158, 0.4);
    border-color: var(--cyan-pop);
    z-index: 10;
    filter: brightness(1.1);
    animation-play-state: paused !important;
}

/* 7 Distinct Continuous Animations for the 7 Photos */
.anim-1 { animation: galleryFloatRotate 6s ease-in-out infinite; }
.anim-2 { animation: galleryPulse 5s ease-in-out infinite; }
.anim-3 { animation: pendulumSwing 7s ease-in-out infinite; }
.anim-4 { animation: bounceTilt 6s ease-in-out infinite; }
.anim-5 { animation: galleryMorph 8s ease-in-out infinite, floatSlow 5s infinite; }
.anim-6 { animation: gentleWobble 6s ease-in-out infinite; }
.anim-7 { animation: revvingFloat 4s ease-in-out infinite; }

@keyframes galleryFloatRotate {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(4deg); }
}
@keyframes galleryPulse {
    0%, 100% { transform: scale(1) translateY(0); box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
    50% { transform: scale(1.05) translateY(-10px); box-shadow: 0 20px 45px rgba(255, 154, 158, 0.5); }
}
@keyframes pendulumSwing {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(6deg) translateY(-15px); }
}
@keyframes bounceTilt {
    0%, 100% { transform: perspective(600px) rotateX(0deg) translateY(0); }
    50% { transform: perspective(600px) rotateX(15deg) translateY(-20px); }
}
@keyframes galleryMorph {
    0% { border-radius: 20px; }
    50% { border-radius: 50px 20px 50px 20px; border-color: rgba(255,154,158,0.5); }
    100% { border-radius: 20px; }
}
@keyframes gentleWobble {
    0%, 100% { transform: translateX(0) rotate(0deg) translateY(0); }
    25% { transform: translateX(-8px) rotate(-3deg) translateY(-10px); }
    75% { transform: translateX(8px) rotate(3deg) translateY(-10px); }
}
@keyframes revvingFloat {
    0%, 100% { transform: translateY(0) skewX(0deg); }
    20% { transform: translateY(-5px) skewX(-2deg); }
    50% { transform: translateY(-15px) skewX(0deg); }
    80% { transform: translateY(-5px) skewX(2deg); }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .story-row, .story-row.reverse {
        flex-direction: column;
    }

    .framed-img {
        width: 100%;
        max-width: 300px;
    }

    /* On mobile, horizontal timeline is still usable with scroll, just make items smaller */
    .horizontal-timeline {
        padding: 120px 0;
    }
    .timeline-item {
        width: 320px;
        padding: 0 10px;
    }
    .journey-card {
        padding: 25px;
    }
    .journey-content h3 {
        font-size: 1.5rem;
    }
}