/* Root Variables */
:root {
    --primary: #6c63ff;
    --secondary: #ff6584;
    --dark: #1a1833;
    --light: #ffffff;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --space-gradient: linear-gradient(180deg, #0a0a1a 0%, #1a1a3a 50%, #2a1a4a 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Space Background - Enhanced Galaxy Theme */
.space-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at bottom, #1a0933 0%, #0a0014 100%);
    overflow: hidden;
}

/* Multiple Star Layers for Depth */
.stars-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: transparent;
}

.stars-small {
    background-image:
        radial-gradient(1px 1px at 20px 30px, white, transparent),
        radial-gradient(1px 1px at 60px 70px, white, transparent),
        radial-gradient(1px 1px at 50px 100px, white, transparent),
        radial-gradient(1px 1px at 130px 40px, white, transparent),
        radial-gradient(1px 1px at 160px 120px, white, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: moveStars 120s linear infinite;
    opacity: 0.8;
}

.stars-medium {
    background-image:
        radial-gradient(2px 2px at 40px 60px, #fff, transparent),
        radial-gradient(2px 2px at 110px 90px, #a8c0ff, transparent),
        radial-gradient(2px 2px at 170px 30px, #fff, transparent),
        radial-gradient(2px 2px at 80px 140px, #3f51b5, transparent);
    background-repeat: repeat;
    background-size: 250px 250px;
    animation: moveStars 180s linear infinite;
    opacity: 0.6;
}

.stars-large {
    background-image:
        radial-gradient(3px 3px at 90px 80px, #fff, transparent),
        radial-gradient(3px 3px at 140px 50px, #ff6b9d, transparent),
        radial-gradient(3px 3px at 30px 120px, #c3cfe2, transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: moveStars 240s linear infinite;
    opacity: 0.4;
}

/* Nebula Cloud Effect */
.nebula-layer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 60%, rgba(72, 61, 139, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(75, 0, 130, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(106, 90, 205, 0.08) 0%, transparent 50%);
    animation: nebulaDrift 60s ease-in-out infinite alternate;
    opacity: 0.6;
}

/* Galaxy Spiral Effect */
.galaxy-layer {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(147, 112, 219, 0.15) 0%, rgba(106, 90, 205, 0.1) 25%, rgba(72, 61, 139, 0.05) 50%, transparent 70%);
    border-radius: 50%;
    animation: galaxyRotate 100s linear infinite, galaxyPulse 8s ease-in-out infinite;
    opacity: 0.5;

}



/* Aurora Borealis Effect */
.aurora-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 255, 170, 0.05) 30%, rgba(138, 43, 226, 0.08) 50%, rgba(0, 191, 255, 0.06) 70%, transparent 100%);
    animation: auroraWave 15s ease-in-out infinite alternate;
    opacity: 0.4;
    pointer-events: none;

}



/* Distant Planets */
.distant-planets {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;

}

.distant-planets::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 182, 193, 0.3), rgba(176, 196, 222, 0.2) 40%, transparent 70%);
    box-shadow: 0 0 20px rgba(255, 182, 193, 0.3), inset -10px -10px 20px rgba(0, 0, 0, 0.3);
    animation: planetFloat 30s ease-in-out infinite, planetGlow 6s ease-in-out infinite;

}

.distant-planets::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 8%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(135, 206, 250, 0.25), rgba(70, 130, 180, 0.18) 45%, transparent 70%);
    box-shadow: 0 0 30px rgba(135, 206, 250, 0.25), inset -15px -15px 25px rgba(0, 0, 0, 0.4);
    animation: planetFloat 40s ease-in-out infinite reverse, planetGlow 8s ease-in-out infinite;

}

/* Shooting Stars / Comets */
.comet {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    box-shadow:
        0 0 6px 2px rgba(255, 255, 255, 0.8),
        0 0 12px 4px rgba(138, 43, 226, 0.6),
        0 0 20px 6px rgba(106, 90, 205, 0.4);
    animation: shootingStar 3s linear infinite;
    opacity: 0;
}

.comet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(138, 43, 226, 0.6) 50%,
            transparent 100%);
    transform: translateX(-100px) translateY(1px);
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.9);
    animation: shootAcross 2s linear infinite;
    opacity: 0;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, white, transparent);
    transform: translateX(-80px);
}

/* Animations */
@keyframes moveStars {
    0% {
        transform: translateY(0) translateX(0);
    }

    100% {
        transform: translateY(-200px) translateX(-200px);
    }
}

@keyframes nebulaDrift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 30px) rotate(10deg);
    }
}

@keyframes galaxyRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes galaxyPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(-45deg);
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(300px) translateY(300px) rotate(-45deg);
    }
}

@keyframes shootAcross {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(0) rotate(-30deg);
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(500px) translateY(250px) rotate(-30deg);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes auroraWave {
    0% {
        transform: translateX(0) scaleY(1);
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateX(100px) scaleY(1.1);
        opacity: 0.3;
    }
}

@keyframes planetFloat {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-30px) translateX(20px);
    }
}

@keyframes planetGlow {

    0%,
    100% {
        filter: brightness(1);
        opacity: 0.6;
    }

    50% {
        filter: brightness(1.3);
        opacity: 0.8;
    }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Back Button */
.back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    background: rgba(108, 99, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(108, 99, 255, 0.4);
    color: var(--light);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    background: rgba(108, 99, 255, 0.4);
    transform: translateX(-5px);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1833;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.glitch {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    }

    50% {
        text-shadow: 0 0 40px rgba(102, 126, 234, 0.8);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    font-weight: 300;
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.detail-item i {
    color: var(--secondary);
    font-size: 1.3rem;
}

.scroll-indicator-anim {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Section Title */
.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--light) !important;
    display: block;
    width: 100%;
    text-shadow: 0 2px 10px rgba(108, 99, 255, 0.5);
    position: relative;
    z-index: 1;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

/* Story Section */
.story-section {
    padding: 6rem 0;
}

.story-content {
    max-width: 1200px;
    margin: 0 auto;
}

.story-card {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.story-card.reverse {
    flex-direction: row-reverse;
}

.story-image-container {
    flex: 1;
    min-width: 0;
}

.story-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    border: 2px solid rgba(108, 99, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.story-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.4);
}

.image-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.story-text {
    flex: 1;
    min-width: 0;
}

.story-text p {
    font-size: 1.15rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.highlight-text {
    font-size: 1.3rem !important;
    font-weight: 500;
    color: var(--light) !important;
    line-height: 1.8 !important;
    border-left: 4px solid var(--primary);
    padding-left: 2rem;
    margin-bottom: 3rem !important;
}

/* Project Showcase */
.project-showcase {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(255, 101, 132, 0.15));
    border-radius: 20px;
    padding: 2.5rem 3rem 1.5rem 3rem;
    margin: 1.5rem 0 2rem 0;
    border: 2px solid rgba(108, 99, 255, 0.3);
}

.showcase-title {
    font-size: 2.2rem;
    text-align: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.project-hero {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.project-info {
    flex: 1;
}

.project-info h4 {
    font-size: 2rem;
    color: #ffd700;
    margin-bottom: 1rem;
}

.project-subtitle {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
}

.project-image-container {
    flex: 1;
}

/* Technical Section */
.technical-section {
    margin: 3rem 0 0.5rem 0;
}

.tech-title {
    font-size: 2.2rem;
    text-align: center;
    color: var(--light);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 1.2rem;
    margin-top: 3rem;
    text-shadow: 0 2px 10px rgba(108, 99, 255, 0.3);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-card {
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    background: rgba(108, 99, 255, 0.15);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.3);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.tech-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--light);
}

.tech-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

/* Achievement Section */
.achievement-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.3);
}

.achievement-banner {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border: 2px solid rgba(108, 99, 255, 0.3);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.achievement-icon {
    font-size: 6rem;
    color: #ffd700;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.achievement-text h2 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffd700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.achievement-text>p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.team-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.team-info h4 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.team-members span {
    background: rgba(108, 99, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.achievement-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.ceremony-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 15px;
    border: 2px solid rgba(108, 99, 255, 0.4);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.3);
}

.image-caption-center {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.4);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 24, 51, 0.95), transparent);
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.image-overlay p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Reflection Section */
.reflection-section {
    padding: 6rem 0;
    background: rgba(45, 43, 85, 0.3);
}

.takeaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.takeaway-card {
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.takeaway-card:hover {
    transform: translateY(-5px);
    background: rgba(108, 99, 255, 0.15);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.3);
}

.takeaway-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.takeaway-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.takeaway-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
}

/* Certificates Section */
.certificates-section {
    padding: 6rem 0;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(255, 101, 132, 0.2));
    border: 2px solid rgba(108, 99, 255, 0.3);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}

.certificate-card:hover::before {
    left: 100%;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.4);
    border-color: var(--primary);
}

.cert-icon {
    font-size: 3.5rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
}

.certificate-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

.certificate-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.view-cert {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

/* LinkedIn Section */
.linkedin-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
}

.linkedin-cta {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.linkedin-cta i {
    font-size: 4rem;
    color: #0077b5;
    margin-bottom: 1.5rem;
}

.linkedin-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.linkedin-cta>p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.linkedin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #0077b5;
    color: var(--light);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    line-height: 1;
}

.linkedin-btn:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

.linkedin-btn i {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
}

.gratitude-section {
    max-width: 900px;
    margin: 3rem auto 0;
    text-align: center;
    padding: 2.5rem;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.gratitude-section h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.gratitude-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.gratitude-text strong {
    color: #ffd700;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glitch {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .event-details {
        flex-direction: column;
        gap: 1rem;
    }

    .story-card,
    .story-card.reverse {
        flex-direction: column;
    }

    .project-hero {
        flex-direction: column;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .achievement-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .achievement-icon {
        font-size: 4rem;
    }

    .achievement-text h2 {
        font-size: 2.5rem;
    }

    .achievement-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .story-text p {
        font-size: 1rem;
        text-align: left;
    }

    .highlight-text {
        font-size: 1.1rem !important;
        padding-left: 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .back-btn {
        top: 1rem;
        left: 1rem;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .takeaways-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1rem;
    }

    .badge {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .linkedin-cta h2 {
        font-size: 1.8rem;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .project-showcase {
        padding: 2rem;
    }

    .showcase-title {
        font-size: 1.8rem;
    }
}

/* --- Perfect Responsiveness Patches --- */
html,
body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

img,
canvas,
video,
svg {
    max-width: 100%;
}

@media (max-width: 576px) {

    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    .story-text p,
    .project-description,
    .takeaway-card p,
    .gratitude-text {
        text-align: justify !important;
        text-justify: inter-word;
    }

    .section-title,
    .showcase-title,
    .tech-title,
    .achievement-text h2,
    .linkedin-cta h2,
    .sub-title {
        text-align: center !important;
    }

    .container {
        padding: 0 1rem;
        overflow-x: hidden;
    }
}