/* ===== VARIABLES ===== */
:root {
    --primary-color: #007be6;
    --primary-color-dark: #0000c8;
    --secondary-color: #2c3e50;
    --text-color: #f5f5f5;
    --text-color-light: #b0b0b0;
    --bg-color: #121212;
    --bg-color-light: #1e1e1e;
    --bg-color-lighter: #2d2d2d;
    --shadow-color: rgba(0, 96, 230, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --header-height: 80px; /* Added header height variable */
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height); /* Added scroll padding for smooth scrolling with fixed header */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--text-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader .circle {
    display: inline-block;
    width: 15px;
    height: 15px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 5px;
    animation: loader 1.5s ease-in-out infinite;
}

.loader .circle:nth-child(1) {
    animation-delay: 0s;
}

.loader .circle:nth-child(2) {
    animation-delay: 0.2s;
}

.loader .circle:nth-child(3) {
    animation-delay: 0.4s;
}

.loader .circle:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes loader {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
    mix-blend-mode: difference;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height); /* Set fixed height */
    padding: 20px 0;
    z-index: 100;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

header.sticky {
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 120px; /* Increased padding-top to account for fixed header */
}

.hero .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2; /* Ensure content is above background shapes */
}

.hero-content {
    flex: 1;
    z-index: 1;
    padding-top: 60px; /* Added extra padding to push content down */
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    display: block;
}

.hero h1 .greeting {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.hero h1 .highlight {
    color: var(--primary-color);
}

.typing-container {
    margin-bottom: 30px;
}

.typing-container p {
    font-size: 1.5rem;
}

.typing::after {
    content: '|';
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.primary-btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    padding-top: 60px; /* Added extra padding to push content down */
}

.code-bg {
    background-color: var(--bg-color-light);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    overflow: hidden;
    position: relative;
}

.code-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: var(--bg-color-lighter);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.code-bg::after {
    content: '• • •';
    position: absolute;
    top: 8px;
    left: 15px;
    color: var(--text-color-light);
    font-size: 14px;
}

.code-bg pre {
    margin-top: 15px;
    font-family: 'Courier New', monospace;
    color: var(--text-color-light);
}

.code-bg code .highlight {
    color: var(--primary-color);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 1;
}

.scroll-down i {
    font-size: 24px;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.3;
}

.hero-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-shapes .shape-2 {
    width: 200px;
    height: 200px;
    background-color: #3498db;
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite;
}

.hero-shapes .shape-3 {
    width: 150px;
    height: 150px;
    background-color: #3c83e7;
    top: 50%;
    left: 30%;
    animation: float 12s ease-in-out infinite;
}

.hero-shapes .shape-4 {
    width: 100px;
    height: 100px;
    background-color: #f39c12;
    bottom: 20%;
    right: 20%;
    animation: float 9s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(15px, -15px);
    }
    50% {
        transform: translate(0, 10px);
    }
    75% {
        transform: translate(-15px, -5px);
    }
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-line {
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--bg-color-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 30px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    position: relative;
    z-index: 1;
}

.image-outline {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-color-lighter);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-5px);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-color-light);
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.detail {
    display: flex;
    align-items: center;
}

.detail i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* ===== EXPERIENCE SECTION ===== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    width: 40%;
    text-align: right;
    padding-right: 30px;
}

.timeline-date h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.timeline-date p {
    color: var(--text-color-light);
}

.timeline-content {
    position: relative;
    width: 40%;
    padding-left: 30px;
    background-color: var(--bg-color-lighter);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Company Logo in Timeline - Next to position title */
.position-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.company-logo {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.company-logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.timeline-content .location {
    color: var(--text-color-light);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.timeline-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.timeline-content ul li {
    list-style-type: disc;
    margin-bottom: 5px;
    color: var(--text-color-light);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ===== EXTRACURRICULAR ACTIVITIES SECTION ===== */
.extracurricular {
    background-color: var(--bg-color-light);
}

.extracurricular-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.extracurricular-card {
    background-color: var(--bg-color-lighter);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.extracurricular-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.extracurricular-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.extracurricular-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.extracurricular-card:hover .extracurricular-image img {
    transform: scale(1.1);
}

.extracurricular-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.extracurricular-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.extracurricular-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.extracurricular-logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.extracurricular-title {
    flex-grow: 1;
}

.extracurricular-title h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.extracurricular-title h4 {
    font-size: 1.1rem;
    color: var(--text-color);
}

.extracurricular-date {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.extracurricular-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.extracurricular-content ul li {
    list-style-type: disc;
    margin-bottom: 8px;
    color: var(--text-color-light);
}

.extracurricular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.extracurricular-tag {
    background-color: rgba(0, 230, 118, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ===== HONORS & AWARDS SECTION ===== */
.honors {
    background-color: var(--bg-color);
}

.honors-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.honor-card {
    background-color: var(--bg-color-lighter);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
}

.honor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.honor-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.honor-logo {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.honor-logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.honor-title {
    flex-grow: 1;
}

.honor-title h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.honor-issuer, .honor-date {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.honor-content p {
    color: var(--text-color-light);
    margin-bottom: 10px;
}

/* Responsive design for honors cards */
@media screen and (max-width: 768px) {
    .honors-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media screen and (max-width: 576px) {
    .honors-cards {
        grid-template-columns: 1fr;
    }
}

/* ===== EDUCATION SECTION ===== */
.education {
    background-color: var(--bg-color-light);
}

.education-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.education-card {
    background-color: var(--bg-color-lighter);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.education-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 230, 118, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.education-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.education-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.education-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.education-content .date, .education-content .grade {
    color: var(--text-color-light);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.education-content p {
    color: var(--text-color-light);
    margin-bottom: 15px;
}

/* ===== SKILLS SECTION ===== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-bar {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-progress {
    width: 100%;
    height: 8px;
    background-color: var(--bg-color-lighter);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
}

.additional-skills {
    margin-top: 60px;
    text-align: center;
}

.additional-skills h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-tag {
    background-color: var(--bg-color-lighter);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--bg-color-light);
    position: relative;
    overflow: hidden;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-color-light);
    margin-bottom: 30px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 230, 118, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
}

.info-icon i {
    font-size: 20px;
    color: var(--primary-color);
}

.info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-content p {
    color: var(--text-color-light);
    margin-bottom: 0;
}

.social-links h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.contact-form form {
    background-color: var(--bg-color-lighter);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-color);
    border: none;
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--text-color-light);
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus, .form-group textarea:focus,
.form-group input:not(:placeholder-shown), .form-group textarea:not(:placeholder-shown) {
    border-bottom: 2px solid var(--primary-color);
}

.form-group input:focus + label, .form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label, .form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    background-color: var(--bg-color);
    padding: 0 5px;
    color: var(--primary-color);
}

.contact-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    opacity: 0.1;
}

.contact-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    top: -100px;
    right: -100px;
}

.contact-shapes .shape-2 {
    width: 200px;
    height: 200px;
    background-color: #3498db;
    bottom: -50px;
    left: -50px;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--bg-color);
    padding: 50px 0 20px;
}

.footer-content {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-content p {
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--bg-color-lighter);
}

.footer-bottom p {
    color: var(--text-color-light);
    font-size: 0.9rem;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-5px);
}

/* ===== MODAL STYLES ===== */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-container.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: var(--bg-color-lighter);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-container.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

/* Carousel Styles */
.modal-carousel {
    width: 100%;
    position: relative;
    background-color: var(--bg-color);
}

.carousel-container {
    width: 100%;
    height: 50vh;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.active {
    background-color: var(--primary-color);
}

/* Modal Info Styles */
.modal-info {
    padding: 30px;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.modal-organization {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.modal-date {
    color: var(--text-color-light);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.modal-description {
    color: var(--text-color-light);
    line-height: 1.6;
}

.modal-description p {
    margin-bottom: 15px;
}

/* Make modal responsive */
@media screen and (min-width: 768px) {
    .modal-content {
        flex-direction: row;
    }
    
    .modal-carousel, .modal-info {
        width: 50%;
    }
    
    .carousel-container {
        height: 100%;
        min-height: 400px;
    }
}

@media screen and (max-width: 767px) {
    .carousel-container {
        height: 40vh;
    }
}

/* ===== ANIMATIONS ===== */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s forwards;
}

.animate-fade-in:nth-child(2) {
    animation-delay: 0.3s;
}

.animate-fade-in:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-left, .reveal-right, .reveal-bottom {
    opacity: 0;
    transition: all 1s ease;
}

.reveal-left {
    transform: translateX(-100px);
}

.reveal-right {
    transform: translateX(100px);
}

.reveal-bottom {
    transform: translateY(100px);
}

.reveal-left.active, .reveal-right.active, .reveal-bottom.active {
    opacity: 1;
    transform: translate(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .about-content, .contact-container {
        flex-direction: column;
        gap: 50px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-date {
        width: 100%;
        text-align: left;
        padding-left: 60px;
        padding-right: 0;
    }
    
    .timeline-content {
        width: 100%;
        padding-left: 60px;
    }
}

@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .container {
        flex-direction: column;
        gap: 50px;
    }
    
    .hero-content, .hero-image {
        text-align: center;
        padding-top: 30px; /* Reduced padding for mobile */
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media screen and (max-width: 576px) {
    .section-padding {
        padding: 70px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .typing-container p {
        font-size: 1.2rem;
    }
    
    .about-details {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}