/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

/* Global Variables */
:root {
    --primary-color: #21A84B;   /* Better Green */
    --secondary-color: #141E30; /* Dark Blue */
    --accent-color: #7A1FA2;    /* Bright Pink (More Contrast) */
    --text-color: #e2e4e2;      /* Light Gray */
    --bg-gradient: linear-gradient(135deg, #0A0E14, #1A2533); /* Enhanced Dark Theme */
}


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', 'Montserrat Alternates', sans-serif;
    scroll-behavior: smooth;
}

    body {
        background: linear-gradient(135deg, #0a0f1a, #1a1f2b);
        color: var(--text-color);
    }
    

/* Navbar - Transparent & Sticky */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 15px 30px;
    box-shadow: none;
    transition: 0.3s ease-in-out;
    z-index: 1000;
}

.navbar.scrolled {
    background: var(--secondary-color);
    box-shadow: 0px 4px 15px rgba(44, 195, 72, 0.5); /* Green glow */
}


.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section - Left Aligned Text */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Left align */
    height: 100vh;
    text-align: left;
    padding-left: 10%;
    background: url(./assets/gradient_1.jpg);
    background-position: center;
    background-size: cover;
}

/* Hero Heading */
.hero h1 {
    font-size: 3rem;
    font-weight: 400;
    color: var(--primary-color);
    animation: fadeIn 1s ease-in-out;
}

.hero h2 {
    font-size: 4rem;
    font-weight: bold;
    color: var(--primary-color);
    animation: fadeIn 1.2s ease-in-out;
}

/* Fix Span Text Alignment */
.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    margin-top: 10px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero p span {
    margin-left: 5px;
    font-weight: bold;
    color: var(--accent-color);
}

/* Social Media Icons */
.social-icons {
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.social-icons a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 30px;
    margin-right: 25px;
    transition: color 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}


/* Section Styling */
section {
    padding: 80px 15%;
    text-align: center;
    background: linear-gradient(135deg, #0d1117, #1a1f2b);

}
/* About Me Section (Without Background) */
#about {
    padding: 80px 10%;
    color: white;
}

/* About Me Content */
.about-container {
    display: flex;
    justify-content: center;
    text-align: left;
}

.about-text {
    max-width: 800px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #bbbbbb;
}

/* CV Button */
.about-text .btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s ease-in-out;
}

.about-text .btn:hover {
    background: var(--accent-color);
    border-radius: 50px;
}
.btn, .view-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    transition: 0.3s ease-in-out;
}

.btn:hover, .view-btn:hover {
    background: var(--accent-color);
    box-shadow: 0px 0px 15px rgba(186, 42, 157, 0.8); /* Pink Glow */
}

/* Interest Section */
.interest-heading {
    text-align: left;
    display: flex;
    justify-content: center;
    font-size: 2rem;
    margin-top: 10px;
    color: white;
    gap: 10px;
}
.interests-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.interest-box {
    width: 20%; /* Adjust this if needed */
    max-width: 200px; /* Limit width */
    height: 200px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Prevent text overflow */
}
/* Responsive Fix */
/* Mobile View Fix */
@media (max-width: 768px) {
    .interest-box {
        width: 45%; /* 2 per row */
    }
}

@media (max-width: 480px) {
    .interest-box {
        width: 100%; /* Full width */
    }
}
.interest-box h3 {
    font-size: 16px;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Flip Effect */
.interest-box .flip-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.4s ease-in-out;
}

/* Flip on Hover */
.interest-box:hover .flip-container {
    transform: rotateY(180deg);
}

/* Front & Back Common Styles */
.interest-box .interest-front, 
.interest-box .interest-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 10px;
    text-align: center;
}

/* Front Side */
.interest-box .interest-front {
    background: var(--bg-gradient);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.interest-box img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}



/* Back Side */
.interest-box .interest-back {
    background: var(--bg-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transform: rotateY(180deg);
    border-radius: 10px;
}
/* Section Title */

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: auto;
}

/* Timeline Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

/* Timeline Item */
.timeline-item {
    padding: 20px;
    position: relative;
    background: var(--secondary-color);
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    width: 50%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

/* Hover Effect */
.timeline-item:hover {
    transform: scale(1.05);
}

/* Alternate Positioning */
.timeline-item:nth-child(even) {
    left: 0;
    transform: translateX(0%);
}

.timeline-item:nth-child(odd) {
    left: 50%;
    transform: translateX(-50%);
}

/* Timeline Logo - Now Perfectly Fit */
.timeline-logo {
    width: 100px;
    height: 100px;
    margin-right: 25px;
    border-radius: 60%;
    background: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.timeline-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Timeline Content */
.timeline-content {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: #fff;
}

.timeline-content p {
    font-size: 1rem;
    color: #ddd;
}

.year, .percentage {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color:var(--bg-gradient);
    margin-top: 5px;
}
/* Internship Section */
#internship-section {
    padding: 100px 0;
    background: var(--bg-gradient);
    color: white;
    text-align: center;
    position: relative;
}


/* Section Title */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Flip Card Container */
.flip-card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 50px;
}

/* Flip Card */
.flip-card {
    width: 300px;
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

/* Inner Flip Effect */
.flip-card-inner {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
@keyframes glowing-border {
    0% { box-shadow: 0 0 5px #0f0, 0 0 10px #0f0, 0 0 15px #f0f; }
    50% { box-shadow: 0 0 10px #f0f, 0 0 20px #0f0, 0 0 25px #f0f; }
    100% { box-shadow: 0 0 5px #0f0, 0 0 10px #f0f, 0 0 15px #0f0; }
}

.flip-card:hover {
    animation: glowing-border 1s infinite alternate;
}

/* Flip Card Front & Back */
.flip-card-front,
.flip-card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 10px;
    padding: 20px;
    font-size: 18px;
}

/* Front Side */
.flip-card-front {
    background: var(--bg-gradient);
    color: white;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* Back Side */
.flip-card-back {
    background: var(--secondary-color);
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* View Certificate Button */
.view-btn {
    background: var(--primary-color);
    border: var(--secondary-color);
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
}

/* Hover Effect: Oval to Rectangle */
.view-btn:hover {
    border-radius: 5px;
    background: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .flip-card-container {
        flex-direction: column;
        align-items: center;
    }
}
/* Skills Section */
.skills-section {
    text-align: center;
    padding: 100px 0;
    background: var(--bg-gradient);
    color: white;
    overflow: hidden;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 50px;
    text-transform: uppercase;
    color: var(--text-color);
    letter-spacing: 2px;
   
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.skill-card {
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0px 0px 15px rgba(0, 255, 153, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.skill-card img {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease-in-out;
}

.skill-card i {
    font-size: 42px;
    color: #3EFF8B;
    transition: transform 0.3s ease-in-out;
}

.skill-card:hover i {
    transform: scale(1.2);
}

.skill-card span {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
}

/* Hover Effects */
.skill-card:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0px 0px 20px rgba(0, 255, 153, 0.8); /* Green Neon Glow */
}


.skill-card:hover img {
    transform: scale(1.2);
}

/* Neon Glow Animation */
@keyframes glow {
    0% { box-shadow: 0px 0px 10px rgba(0, 255, 153, 0.5); }
    50% { box-shadow: 0px 0px 20px rgba(255, 0, 255, 0.7); }
    100% { box-shadow: 0px 0px 10px rgba(0, 255, 153, 0.5); }
}

.skill-card:hover {
    animation: glow 1.5s infinite alternate;
}

/* Responsive Design */
@media (max-width: 768px) {
    .skill-card {
        width: 120px;
        height: 120px;
    }
    
    .skill-card img {
        width: 50px;
        height: 50px;
    }

    .section-title {
        font-size: 2rem;
    }
}
#projects {
    text-align: center;
    padding: 100px 20px;
    background: var(--bg-gradient);
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    margin-bottom: 40px;
}

.projects-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.project-mail {
    width: 360px;
    height: 240px;
    background: rgba(20, 20, 20, 0.9);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0px 0px 20px rgba(0, 255, 120, 0.8);
    transition: transform 0.4s, box-shadow 0.4s;
}
.project-mail:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0px 0px 20px rgba(0, 255, 153, 0.8); /* Green Neon Glow */
}
.mail-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.project-mail:hover .project-image {
    transform: scale(1.2);
}

.mail-details {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    padding: 15px;
    text-align: center;
    transition: bottom 0.4s ease-in-out;
}

.project-mail:hover .mail-details {
    bottom: 0;
}

.mail-details h3 {
    color: #3EFF8B;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.mail-details p {
    color: #ddd;
    font-size: 1rem;
}

.view-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s;
}

.view-btn:hover {
    transform: scale(1.1);
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.skill {
    background: var(--primary-color);
    color: var(--bg-color);
    padding: 10px 20px;
    margin: 10px;
    border-radius: 20px;
    font-size: 16px;
    transition: 0.3s;
}

.skill:hover {
    background: var(--accent-color);
}
/* Certifications Section */
#certifications {
    background: var(--bg-gradient);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    color:var(--text-color);
    text-transform: uppercase;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Certificate Container */
.cert-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Certification Card */
.cert-card {
    width: 250px;
    height: 300px;
    background: var(--bg-gradient);
    border-radius: 10px;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0px 0px 10px rgba(0, 255, 120, 0.3);
}

/* Card Image */
.cert-card img {
    width: 100px;
    height: 150px;
    object-fit: contain;
    border-radius: 10px;
}

/* Card Text */
.cert-card p {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
}

/* Hover Effect */
.cert-card:hover {
    transform: scale(1.1);
    animation: glow 1.5s infinite alternate;
}



.cert-card {
    perspective: 1000px;
    cursor: pointer;
    display: inline-block;
        transform-style: preserve-3d;
        will-change: transform;

    
}

.cert-card img {
    transition: transform 0.4s ease-in-out;
}

.cert-card:active img {
    transform: scale(1.2) rotateY(10deg) rotateX(10deg);
}

/* Fullscreen Image Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.fullscreen-img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.4s ease-in-out;
}

.fullscreen-modal:hover .fullscreen-img {
    transform: scale(1.05);
}
/* Rewind & Relive — beige timeline with blooming dots */
#rewind-relive {
    text-align: center;
    padding: 120px 20px 160px;
}

.rewind-subtitle {
    color: #3EFF8B;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    margin-top: 8px;
    letter-spacing: 0.5px;
    opacity: 0.85;
}

.rewind-gallery {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 70px;
    max-width: 1100px;
    margin: 90px auto 0;
    padding: 0 30px;
    overflow: visible;
}

/* The single beige line running through every dot */
.rewind-gallery::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    height: 2px;
    background: #D9C9A3;
    box-shadow: 0 0 10px rgba(217, 201, 163, 0.5);
    transform: translateY(-50%);
    z-index: 1;
}

.rewind-tile {
    position: relative;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #D9C9A3;
    box-shadow: 0 0 8px rgba(217, 201, 163, 0.7);
    border: none;
    cursor: pointer;
    z-index: 2;
    overflow: visible;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.rewind-tile:hover {
    transform: scale(1.3);
    background: #fff;
    box-shadow: 0 0 16px #3EFF8B, 0 0 26px #FF2E9C;
}

/* Alternate the dominant glow colour per dot for rhythm */
.rewind-tile:nth-child(even):hover {
    box-shadow: 0 0 16px #FF2E9C, 0 0 26px #3EFF8B;
}

.rewind-tile.large {
    width: 14px;
    height: 14px;
}

/* The card that blooms open above each dot */
.glitch-media {
    position: absolute;
    bottom: 34px;
    left: 50%;
    width: 230px;
    height: 290px;
    background-image:
        repeating-linear-gradient(to bottom, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 2px, transparent 4px),
        var(--img);
    background-size: cover, cover;
    background-position: center, center;
    border-radius: 12px;
    filter: grayscale(0.3) brightness(0.9);
    transform-origin: bottom center;
    transform: translateX(-50%) scale(0.04);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(217, 201, 163, 0.3);
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.1), opacity 0.35s ease, filter 0.5s ease, box-shadow 0.5s ease;
    z-index: 6;
}

.rewind-tile:hover .glitch-media {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    filter: grayscale(0) brightness(1);
    box-shadow: 0 0 25px rgba(62, 255, 139, 0.4), 0 0 40px rgba(255, 46, 156, 0.3);
}

/* RGB/duo-tone glitch flicker — green + pink instead of red/cyan */
.glitch-media::before,
.glitch-media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0;
    mix-blend-mode: color;
}

.glitch-media::before {
    background: #3EFF8B;
}

.glitch-media::after {
    background: #FF2E9C;
}

.rewind-tile:hover .glitch-media::before {
    animation: glitchShift 0.55s steps(2, end) 1;
}

.rewind-tile:hover .glitch-media::after {
    animation: glitchShift 0.55s steps(2, end) 1 reverse;
}

@keyframes glitchShift {
    0%   { transform: translate(0, 0);      opacity: 0; }
    10%  { transform: translate(-6px, 2px); opacity: 0.55; }
    20%  { transform: translate(5px, -3px); opacity: 0.4; }
    30%  { transform: translate(-4px, 1px); opacity: 0.5; }
    40%  { transform: translate(5px, -1px); opacity: 0.35; }
    50%  { transform: translate(-4px, 2px); opacity: 0.4; }
    60%  { transform: translate(3px, -3px); opacity: 0.25; }
    70%  { transform: translate(-2px, 1px); opacity: 0.2; }
    80%  { transform: translate(2px, -1px); opacity: 0.1; }
    100% { transform: translate(0, 0);      opacity: 0; }
}

/* Filename tag — floats in just above the card */
.tile-id {
    position: absolute;
    bottom: 340px;
    left: 50%;
    z-index: 7;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.68rem;
    color: #3EFF8B;
    background: rgba(5, 7, 10, 0.75);
    padding: 2px 8px;
    border: 1px solid rgba(62, 255, 139, 0.4);
    border-radius: 3px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transform-origin: bottom center;
    transform: translateX(-50%) scale(0.2);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.1) 0.1s, opacity 0.3s ease 0.1s;
}

.rewind-tile:hover .tile-id {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

/* Caption overlay — same footprint as the image card */
.rewind-overlay {
    position: absolute;
    bottom: 34px;
    left: 50%;
    width: 230px;
    height: 290px;
    z-index: 8;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    box-sizing: border-box;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    border-radius: 12px;
    background: linear-gradient(to top, rgba(5, 7, 10, 0.96) 0%, rgba(5, 7, 10, 0.15) 60%, transparent 100%);
    transform-origin: bottom center;
    transform: translateX(-50%) scale(0.04);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.1), opacity 0.35s ease;
}

.rewind-tile:hover .rewind-overlay {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}

.rewind-tag {
    align-self: flex-start;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 3px;
    background: rgba(33, 168, 75, 0.2);
    border: 1px solid #21A84B;
    color: #3EFF8B;
    margin-bottom: 8px;
}

.rewind-overlay h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.rewind-overlay p {
    font-size: 0.78rem;
    color: #f2b8dd;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease 0.15s;
}

.rewind-tile:hover .rewind-overlay p {
    max-height: 60px;
}

.cursor-blink {
    color: #FF2E9C;
    animation: blinkCursor 1s step-end infinite;
}

@keyframes blinkCursor {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.linkedin-tile {
    background: #0A66C2;
    box-shadow: 0 0 8px rgba(10, 102, 194, 0.7);
}

.linkedin-tile:hover {
    background: #fff;
    box-shadow: 0 0 16px #0A66C2, 0 0 26px #FF2E9C;
}

.rewind-tag.linkedin-badge {
    background: rgba(10, 102, 194, 0.2);
    border-color: #0A66C2;
    color: #57a5f0;
}

.rewind-tag.linkedin-badge i {
    margin-right: 5px;
}

.rewind-linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 35px;
    padding: 12px 26px;
    border-radius: 4px;
    border: 1px solid #3EFF8B;
    background: rgba(62, 255, 139, 0.06);
    color: #3EFF8B;
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.rewind-linkedin-link:hover {
    background: #3EFF8B;
    color: #05070a;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 46, 156, 0.5);
}

@media (max-width: 900px) {
    .rewind-gallery {
        gap: 40px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 20px 10px;
    }
    .rewind-gallery::before {
        left: 20px;
        right: 20px;
    }
}

@media (max-width: 520px) {
    /* No hover on touch devices — CSS alone can't add tap-to-expand.
       Dots stay visible on the line; captions are skipped rather than
       relying on a hover state mobile browsers won't trigger. */
    .glitch-media,
    .rewind-overlay,
    .tile-id {
        display: none;
    }
    .rewind-tile {
        width: 10px;
        height: 10px;
    }
}

/* Contact Section */
#contact {
    padding: 80px 10%;
    background:var(--bg-gradient);
    color: white;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

/* Left: Contact Form */
.contact-form {
    flex: 1;
    max-width: 500px;
}

.contact-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.contact-subtitle {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 20px;
    align-content: flex-start;
}

/* Input Fields */
.contact-form label {
    display: block;
    font-size: 1rem;
    margin: 10px 0 5px;
    color: #fff;
}

.contact-form input{
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border:var(--bg-gradient);
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s;
    gap: 10px;
}
.contact-form textarea {
    width: 100%;
    padding: 55px;
    background: rgba(255, 255, 255, 0.05);
    border:var(--bg-gradient);
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s;
}
.contact-form input:focus, 
.contact-form textarea:focus {
    border-color:beige;
    box-shadow:beige 0px 0px 10px;
}

/* Submit Button */
.contact-form button {
    background: #6A1B9A; /* Deep Purple */
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 15px;
    transition: 0.3s ease-in-out;
    box-shadow: 0px 0px 12px rgba(106, 27, 154, 0.7); /* Subtle Glow */
}

/* 🔥 Hover Effect: Shining Purple Glow */
.contact-form button:hover {
    background: #B533FF; /* Bright Neon Purple */
    box-shadow:  0px 0px 80px rgba(181, 51, 255, 0.5); /* Multi-layer Neon Glow */
    transform: scale(1.08);
}

/* Right: Google Map */
.contact-map {
    flex: 1;
    min-width: 400px;
    height: 400px;
    border-radius: 36px;
    overflow: hidden;
    border-color:var(--secondary-color);
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

    section {
        padding: 50px 10%;
    }

    .hero h1 {
        font-size: 2rem;
    }

/* Hamburger Menu (Hidden on Larger Screens) */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--bg-gradient);
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        border-radius: 8px;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
        left:auto;
       
    }
}
@media screen and (max-width: 768px) {
    /* Move Timeline Line to Left */
    .timeline::after {
        left: 15px;
        margin-left: 0;
    }

    /* Make Timeline Items Full Width */
    .timeline-item {
        width: 85%; /* More width for better visibility */
        left: 7%;
        transform: translateX(0); /* Remove left/right shift */
        flex-direction: column;
        text-align: center;
    }

    /* Ensure All Items Are Properly Positioned */
    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 7%;
    }

    /* Center Align the Logo */
    .timeline-logo {
        margin: 0 auto 10px;
    }
}
@media screen and (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column; /* Stack form & map */
        align-items: center;
    }

    .contact-map {
        width: 100%; /* Full width */
        min-width: unset; /* Remove min-width */
        height: 300px; /* Adjust height */
        border-radius: 20px; /* Smaller radius */
    }
}
@media screen and (max-width: 768px) {
    .cert-card {
        pointer-events: none !important; /* ❌ Prevent click */
    }
}
