/* ===========================
   Variables and Base Styles
   =========================== */

:root {
    /* Colors */
    --color-white: rgba(255, 255, 255, 0.95);
    --color-transparent-white: rgba(255, 255, 255, 0.9);
    --color-deep-gray: rgba(40, 40, 40, 0.95);
    --color-midnight-blue: rgba(25, 50, 75, 0.9);
    --color-dark-navy: rgba(20, 30, 40, 0.95);
    --color-accent: rgba(255, 94, 77, 0.95);
    --color-accent-hover: rgba(255, 165, 77, 0.95);
    --color-footer: rgba(20, 30, 40, 0.95);

    /* Font Sizes */
    --font-size-h1: 3.8rem;
    --font-size-h2: 1.2rem;
    --font-size-h3: 0.7rem;
    --font-size-h4: 1.8rem;
    --font-size-p: 1rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: var(--font-size-p);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-deep-gray);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* ===========================
   Container Styles
   =========================== */
.container {
    max-width: 1200px; /* Adjusted to ensure no overflow */
    margin: 0 auto;
    padding: 20px;
}

/* ===========================
   Typography Styles
   =========================== */

/* Headers */
h1, h2, h3, h4 {
    font-family: 'Roboto', Arial, sans-serif;
    text-transform: uppercase;
}

h1 {
    text-align: center;
    position: absolute;
    font-size: var(--font-size-h1);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-white);
    margin-bottom: 200px;
    letter-spacing: 9px;
    text-shadow: 0 0 10px rgba(210, 150, 77, 1);
}

h1 .lowercase-text {
    text-transform: lowercase;
}

h1 .small-text {
    font-size: 0.5em;
    vertical-align: super;
    font-weight: 400;
}

h2 {
    text-align: center;
    position: absolute;
    font-size: var(--font-size-h2);
    font-weight: 400;
    line-height: 1.3;
    border-style: solid none;
    border-width: 1px;
    border-color: white;
    color: var(--color-white);
    margin-bottom: 90px;
    letter-spacing: 10px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

h3 {
    text-align: center;
    position: relative;
    font-size: var(--font-size-h3);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 7.9px;
    color: var(--color-white);
    margin-bottom: 22px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.9);
}

h4 {
    font-size: var(--font-size-h4);
    font-weight: 500;
    color: var(--color-white);
    margin-bottom: 12px;
}

/* Paragraphs */
p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--color-white);
    margin-bottom: 20px;
    position: relative;
}

p span {
    display: inline;
    padding: 0 0.2em;
    transition: background 0.5s ease, box-shadow 0.5s ease;
}

p span:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
}

/* First Letter Styling */
.firstletter {
    font-size: 4.5rem;
    line-height: 1;
    display: inline-block;
    margin-top: -0.1em;
    margin-right: 0.1em;
    vertical-align: baseline;
    float: left;
}

/* Special Text */
.special-text {
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 15px rgba(255, 100, 100, 0.5);
    transition: text-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
}

.special-text::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 100, 200, 0.8);
    box-shadow: 0 0 8px rgba(255, 100, 200, 0.7);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.special-text:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===========================
   Navigation Bar Styles
   =========================== */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 40px;
    background-color: var(--color-navbar-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: var(--color-white);
    font-size: 1rem;
    padding: 10px 20px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.navbar ul li a:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

/* ===========================
   Header Styles
   =========================== */
header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 2;
    background: linear-gradient(-45deg, var(--color-gradient-start), var(--color-gradient-middle1), var(--color-gradient-middle2), var(--color-gradient-end));
    background-size: 400% 400%;
}

header video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    filter: brightness(40%);
}

.header-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: transform 0.5s ease-in-out, background 0.5s ease-in-out, color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    animation: bounceFloating 2s infinite;
}

.scroll-down:hover {
    transform: translateX(-50%) scale(1.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ===========================
   Section Styles
   =========================== */
section {
    padding: 80px 20px;
    position: relative;
    transition: opacity 0.8s ease, transform 0.8s ease, background-color 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    background-color: rgba(40, 40, 40, 0.9);
    scroll-margin-top: 80px;
    z-index: 1;
    scroll-snap-align: start;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   About Section Styles
   =========================== */
#about {
    background: radial-gradient(circle, var(--color-accent), var(--color-midnight-blue));
}

/* ===========================
   Advanced Neon Glow Layout
   =========================== */
.advanced-neon-layout {
    padding: 60px 40px;
    background-color: #0d0d0d;
    position: relative;
    overflow: hidden;
}

.advanced-neon-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    animation: backgroundAnim 15s ease infinite;
}

/* Neon Glowing Scroll Effects */
.neon-glow-scroll {
    text-shadow: 0 0 20px rgba(255, 255, 100, 0.9), 0 0 30px rgba(255, 255, 150, 0.7);
    transition: text-shadow 0.8s ease;
}

.pulse-image {
    box-shadow: 0 0 30px rgba(255, 80, 80, 0.7);
    animation: pulse 2s infinite ease-in-out;
}

/* Keyframes */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 80, 80, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 80, 80, 0.8);
    }
}

@keyframes backgroundAnim {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 200% 200%;
    }
}

@keyframes bounceFloating {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===========================
   Experience Section Styles
   =========================== */
#experience {
    background-color: rgba(60, 50, 45, 0.9);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 10px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-accent);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 15px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    cursor: pointer;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

/* Timeline Icons */
.timeline-icon {
    position: absolute;
    top: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-deep-gray);
    font-size: 1.2rem;
    z-index: 5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.timeline-item.left .timeline-icon {
    right: -20px;
}

.timeline-item.right .timeline-icon {
    left: -20px;
}

/* Timeline Content */
.timeline-content {
    background-color: var(--color-deep-gray);
    padding: 15px 20px;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
    transform: scale(1);
    z-index: 2;
}

.timeline-content:hover {
    background-color: rgba(60, 60, 70, 0.95);
    transform: scale(1.02);
}

.timeline-content h5 {
    margin-bottom: 6px;
    font-size: 1.1rem;
}

.timeline-content h6 {
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--color-accent-hover);
}

.timeline-content .timeline-date {
    font-size: 0.75rem;
    color: var(--color-accent-hover);
    margin-bottom: 8px;
    display: block;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0;
}

.timeline-content ul li {
    margin-bottom: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.timeline-content ul li strong {
    color: var(--color-accent);
}

/* Expand Button */
.expand-btn {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 3;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Expanded state - trigger forward scaling and rotation */
.expand-btn.rotate {
    animation: rotateforward 0.2s linear, scalextend 0.2s linear forwards;
    animation-delay: 0s, 0.2s;
    transform: translateX(20px);
    color: var(--color-accent-hover);
}

/* Reversed state - reverse scale first, then rotation */
.expand-btn.reverse-rotate {
    transform: translateX(20px);
    color: var(--color-accent);
    animation: scalecontract 0.2s linear forwards, rotateback 0.3s linear;
    animation-delay: 0s, 0.2s;
}

/* Keyframes */
@keyframes rotateforward {
    from {
        transform-origin: center;
        transform: rotate(0deg);
    }
    to {
        transform-origin: center;
        transform: rotate(180deg);
    }
}

@keyframes scalextend {
    from {
        transform-origin: left;
        transform: scaleX(1);
    }
    to {
        transform-origin: left;
        transform: scaleX(1.5); /* Adjusted for better responsiveness */
    }
}

@keyframes scalecontract {
    from {
        transform-origin: left;
        transform: scaleX(1.5); /* Adjusted to match scalextend */
    }
    to {
        transform-origin: left;
        transform: scaleX(1);
    }
}

@keyframes rotateback {
    from {
        transform-origin: center;
        transform: rotate(90deg);
    }
    to {
        transform-origin: center;
        transform: rotate(0deg);
    }
}

.timeline-content .details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    margin-top: 10px;
}

.timeline-content .details.expanded {
    max-height: 1000px;
    opacity: 1;
}

/* Placeholder Media Styles */
.placeholder-media {
    position: absolute;
    top: 0;
    width: 800px;
    height: 600px;
    padding: 15px 20px;
    border-radius: 6px;
    box-sizing: border-box;
    z-index: 2;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.placeholder-media.right {
    transform: translateX(50px);
    left: 102%;
}

.placeholder-media.left {
    right: 91%;
}

.placeholder-media.expanded {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

/* Timeline Enhancements */
.timeline::after {
    cursor: pointer;
}

.timeline-tooltip {
    position: absolute;
    padding: 8px 12px;
    background-color: var(--color-dark-navy);
    color: var(--color-white);
    border-radius: 4px;
    font-size: 0.9rem;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -120%);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.timeline-tooltip.visible {
    opacity: 1;
    transform: translate(-50%, -150%);
}

.timeline-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--color-dark-navy) transparent transparent transparent;
}

/* ===========================
   Skills Section - Enhanced Design
   =========================== */

/* Skills Section Background */
#skills {
    background: radial-gradient(circle, var(--color-accent-hover), var(--color-midnight-blue));
    padding: 40px 20px;
}

/* Search Bar Styling */
.skill-search {
    text-align: center;
    margin-bottom: 30px;
}

.skill-search input {
    width: 80%;
    max-width: 400px;
    padding: 10px 15px;
    font-size: 1rem;
    border: 1px solid #cccccc;
    border-radius: 5px;
    background-color: rgba(205, 206, 255, 0.9);
    color: rgba(26, 26, 26, 1);
    transition: border-color 0.3s ease;
}

.skill-search input:focus {
    border-color: rgba(79, 93, 117, 1);
    outline: none;
}

/* Skill Category Styling */
.skill-category {
    border: 1px solid #dddddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.skill-category:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Skill Header Styling */
.skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.68);
    color: #333333;
    transition: background-color 0.3s ease;
}

.skill-header:hover {
    background-color: #e0e0e0;
    color: #000000;
}

/* Skill Header Icon */
.skill-header i {
    color: var(--color-accent-hover);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.skill-header:hover i {
    transform: scale(1.2);
}

/* Toggle Icon Styling */
.toggle-icon {
    font-size: 1rem;
    transition: transform 0.5s ease;
    color: #333333;
}

/* Rotate Toggle Icon When Expanded */
.skill-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Skill Content */
.skill-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.5);
}

.skill-content.open {
    max-height: 5000px ;
    padding: 20px;
	background-color: rgba(255, 255, 255, 0.2);
}

/* Skill List */
.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Skill List Item Styling */
.skill-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
	background-color: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 10px;
	
	
}

.skill-item:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.skill-item.active {
    background-color: rgba(255, 255, 255, 0.8);
}



/* Skill Name */
.skill-name {
    flex-grow: 1;
    cursor: pointer;
    transition: color 0.3s ease;
}

.skill-name:hover {
    color: #333333;
	font-weight: bold;
	
}

/* Tooltip Styles */
.skill-item::after {
    content: attr(data-tooltip);
    position: relative;
    left: 0%;
    bottom: 150%;
    transform: translate(-50%, -10px);
    background-color: var(--color-dark-navy);
    color: #333333;
    padding: 10px 15px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    width: max-content;
    max-width: auto;
    font-size: 0.9rem;
    z-index: 1;
	background-color: rgba(255, 255, 255, 0.8);
}

.skill-item::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--color-dark-navy);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show Tooltip on Hover */
.skill-item:hover::after,
.skill-item:hover::before {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Expand Button Styling */
.expand-button {
    background: none;
    border: none;
    color: var(--color-accent-hover);
    font-size: 10rem;
    cursor: pointer;
}

/* Skill Explanation Box */
.skill-explanation {
    display: none;
    padding: 10px 0 10px 40px;
    background-color: rgba(255, 255, 255, 0.4);
    color: #555;
    border-left: 3px solid var(--color-accent-hover);
}

.skill-explanation.active {
    display: block;
}



/* ===========================
   Education Section Styling
   =========================== */

/* Carousel Container */
.fancy-carousel-container {
    position: relative;
    max-width: 3000px;
    margin:1%;
    overflow: hidden;
    background: linear-gradient(135deg, #3a1c71, #d76d77, #ffaf7b);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Carousel Wrapper */
.fancy-carousel-wrapper {
    overflow:hidden;
    width: 100%;
    display:flex;
    align-items: center;
    position: relative;
}

/* Carousel Content */
.fancy-carousel {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 110px;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.1;
    transform: scale(0.9);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    background: var(--color-white);
    padding: 100px;
    border-radius: 15px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.0);
}

.carousel-slide h5 {
    font-size: 24px;
    color: #3a1c71;
    font-weight: bold;
    margin-bottom: 15px;
}

.carousel-slide p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Navigation Buttons */
.carousel-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.carousel-arrow {
    background-color: var(--color-white);
    color: #3a1c71;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background-color: #d76d77;
    color: var(--color-white);
    transform: scale(1.1);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.progress-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #ffaf7b;
    transform: scale(1.2);
}

/* ===========================
   Background Styling
   =========================== */
.background-box {
    padding: 40px 20px;
    background-color: rgba(45, 45, 55, 0.9);
    border-radius: 15px;
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.3);
    background-image: url('pattern.png'); /* Subtle background pattern */
    background-size: cover;
    color: var(--color-white);
}

/* Section Titles */
.section-title {
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    color: var(--color-white);
}

.section-subtitle {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ddd;
}

/* Single-Line Horizontal Cover Gallery */
.single-line-cover-gallery {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) rgba(255, 255, 255, 0.1);
}

.single-line-cover-gallery::-webkit-scrollbar {
    height: 8px;
}

.single-line-cover-gallery::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
}

.single-line-cover-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* Cover Items */
.cover-item {
    flex: 0 0 150px;
    text-align: center;
}

.cover-item img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.cover-item img:hover {
    transform: scale(1.1);
}

.cover-item p {
    margin-top: 10px;
    font-size: 14px;
    color: #ddd;
}

/* Card List (Patents & Publications) */
.card {
    flex: 0 0 250px;
    min-width: 250px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    position: relative;
    text-align: center;
}

/* Expandable Content */
.expandable-content {
    display: none;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
}

/* Expand Button */
.expand-button {
    background: none;
    border: none;
    color: var(--color-accent-hover);
    font-size: 1.2rem;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Expand Button Hover Effect */
.expand-button:hover {
    color: var(--color-accent);
}

/* ===========================
   Contact Icons
   =========================== */
.contact-icons a {
    color: var(--color-white);
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.contact-icons a.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-icons a:hover {
    color: rgba(255, 160, 60, 0.9);
}

/* ===========================
   Footer Styles
   =========================== */
footer {
    background: var(--color-footer);
    color: var(--color-white);
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ===========================
   Image and Hover Effects
   =========================== */
.side-image {
    float: right;
    margin-left: 20px;
    border-radius: 10px;
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: brightness(0.8);
}

.side-image:hover {
    transform: scale(1.1);
    filter: brightness(1);
}

/* ===========================
   Neon Waves Layout
   =========================== */
.neon-waves-layout {
    background: #0f0f0f;
    padding: 100px;
    overflow: hidden;
    position: relative;
}

.wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: rgba(255, 100, 200, 0.8);
    animation: waveAnim 5s infinite ease-in-out;
}

@keyframes waveAnim {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-200%);
    }
}

/* ===========================
   Neon Button for Call-to-Actions
   =========================== */
.neon-button {
    display: inline-block;
    padding: 14px 25px;
    background-color: transparent;
    border: 2px solid rgba(255, 100, 100, 0.9);
    color: rgba(255, 100, 100, 0.9);
    font-size: 1.2rem;
    text-transform: uppercase;
    border-radius: 5px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    text-decoration: none;
    margin-top: 20px;
}

.neon-button:hover {
    background-color: rgba(255, 100, 100, 0.2);
    box-shadow: 0 0 10px rgba(255, 100, 100, 0.9), 0 0 30px rgba(255, 100, 100, 0.4);
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceFloating {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    /* Typography Adjustments */
    p {
        font-size: 1.1rem;
    }

    /* Image Adjustments */
    .side-image {
        float: none;
        display: block;
        margin: 20px auto;
    }

    /* Timeline Adjustments */
    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 15px;
        margin-bottom: 25px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-item .timeline-icon {
        left: 10px;
        right: auto;
    }

    .timeline-content {
        padding: 12px 18px;
    }

    .expand-btn {
        top: 12px;
        right: 18px;
        left: 18px;
        font-size: 1.3rem;
    }

    .timeline-summary {
        font-size: 1rem;
        padding: 20px 25px;
    }

    .timeline-content h5 {
        font-size: 1rem;
    }

    .timeline-content h6 {
        font-size: 0.8rem;
    }

    .timeline-content .timeline-date {
        font-size: 0.7rem;
    }

    .timeline-content ul li {
        font-size: 0.75rem;
    }

    .timeline-icon i {
        font-size: 1rem;
    }

    /* Skills Section Adjustments */
    #skills {
        padding-top: 80px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .skill-header {
        font-size: 1.1rem;
        padding: 15px;
    }

    .skill-header i {
        font-size: 1.3rem;
    }

    .toggle-icon {
        font-size: 0.9rem;
    }

    .skill-content ul {
        padding-left: 50px;
    }

    .skill-list li::after,
    .skill-list li::before {
        left: 50%;
        bottom: 100%;
        transform: translate(-50%, -10px);
    }

    .expand-button {
        font-size: 1.5rem;
    }

    .skill-explanation {
        padding-left: 50px;
    }

    .close-button {
        font-size: 24px;
        top: 10px;
        right: 15px;
    }
}
