/* ===== CSS VARIABLES ===== */
/* These variables help us manage colors easily */
/* If we want to change the main color, we change it once here */
:root {
    --primary-color: #2563eb;
    /* Main blue color for buttons, links */
    --secondary-color: #7e22ce;
    /* Purple for gradients */
    --dark-color: #1e293b;
    /* Dark blue-gray for text and backgrounds */
    --light-color: #f8fafc;
    /* Light background color */
    --text-dark: #334155;
    /* Default text color */
    --highlight: #f59e0b;
    /* Yellow for highlighting important text */
    --white: #ffffff;
    /* Pure white */
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Standard shadow for cards */
}

/* ===== CSS RESET ===== */
/* Removes default margins and padding from all elements */
/* Makes sure our design looks consistent across browsers */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Includes padding and border in element's total width/height */
}

/* ===== BASE STYLES ===== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    /* Makes text more readable */
    color: var(--text-dark);
    background-color: var(--light-color);
    overflow-x: hidden;
    /* Prevents horizontal scrolling */
}

/* ===== CONTAINER CLASS ===== */
/* This class centers content and adds consistent padding */
/* Used in all sections to keep content aligned */
.container {
    width: 90%;
    /* Takes 90% of screen width on mobile */
    max-width: 1200px;
    /* Never gets wider than 1200px on big screens */
    margin: 0 auto;
    /* Centers the container */
    padding: 0 20px;
    /* Adds space on left/right */
}

/* ===== NAVIGATION STYLES ===== */
nav {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    /* Sticks to top when scrolling */
    width: 100%;
    top: 0;
    z-index: 1000;
    /* Makes sure nav is above other content */
    transition: all 0.3s ease;
    /* Smooth animation for background changes */
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    /* Semi-transparent when scrolled */
    backdrop-filter: blur(10px);
    /* Blur effect behind navbar */
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    gap: 0;
    /* Force no gap */
}

/* Navigation right section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Logo styling */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--dark-color);
}

/* Navigation menu list */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    /* Ensure no margin */
    padding: 0;
    /* Ensure no padding */
}

.nav-menu li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

/* Underline effect on hover */
.nav-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* ===== BETTER HAMBURGER ANIMATION ===== */
.hamburger span {
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu button (hamburger) - hidden by default */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: 0.3s;
}

/* ===== DARK MODE TOGGLE ===== */
.dark-mode-toggle {
    background: none;
    border: 2px solid var(--dark-color);
    color: var(--dark-color);
    width: 40px;
    /* Slightly smaller */
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: var(--dark-color);
    color: var(--white);
    transform: scale(1.1);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 150px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    min-height: 100vh;
    /* Takes full viewport height */
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    /* Animation when page loads */
}

.highlight {
    color: var(--highlight);
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
    /* Animation with delay */
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.4s both;
    /* Animation with longer delay */
}

/* ===== BUTTON STYLES ===== */
.btn {
    display: inline-block;
    background: var(--highlight);
    color: var(--dark-color);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 1s ease 0.6s both;
    /* Last element to animate */
}

.btn:hover {
    background: #eab308;
    /* Darker yellow on hover */
    transform: translateY(-2px);
    /* Moves button up slightly */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    /* Larger shadow on hover */
}

/* ===== HERO BUTTON STYLES ===== */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    max-width: 500px;
    margin: 2rem auto 0;
}

.button-row {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    align-items: stretch;
}

.button-row .btn,
.button-row .pro_btn {
    flex: 1;
    min-width: 180px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: auto;
    /* Ensure consistent height */
}

/* Download Portfolio Button */
.pro_btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-right: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pro_btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a42a0 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Send Message Button */
.message-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.message-btn:hover {
    background: linear-gradient(135deg, #ee7df7 0%, #f4455c 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

/* See Projects Button */
.projects-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 16px 40px;
    font-size: 1.2rem;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.projects-btn:hover {
    background: linear-gradient(135deg, #3a9bfc 0%, #00e0fe 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

/* Icon styles */
.hero-buttons i {
    font-size: 1.1rem;
}

/* ===== MESSAGE DROPDOWN STYLES ===== */
.message-container {
    position: relative;
    display: inline-block;
}

.message-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    border: 1px solid #e2e8f0;
}

.message-dropdown.active {
    opacity: 1;
    visibility: visible;
    margin-top: 5px;
}

.message-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--dark-color);
    border-radius: 0;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    border: none;
    margin: 0;
}

.message-dropdown a:hover {
    background: var(--light-color);
    transform: none;
    color: var(--primary-color);
}

.message-dropdown a i {
    width: 16px;
    text-align: center;
    font-size: 1.1rem;
}

/* WhatsApp specific hover color */
.message-dropdown a.whatsapp:hover {
    color: #25D366 !important;
}

/* Email specific hover color */
.message-dropdown a.email:hover {
    color: #EA4335 !important;
}

/* ===== SECTION COMMON STYLES ===== */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
    position: relative;
}

/* Underline below section headings */
section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Text takes 2/3, image 1/3 */
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.profile-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.profile-container {
    text-align: center;
}

/* Profile Social Links */
.profile-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.profile-social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== EDUCATION TIMELINE STYLES ===== */
.education {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    position: relative;
}

.education h2 {
    color: var(--white);
}

.education h2::after {
    background: var(--highlight);
}

.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInRight 0.8s ease forwards;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.4s;
}

.timeline-marker {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 2rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.timeline-marker:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.timeline-marker i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-grow: 1;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: none;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--highlight), var(--primary-color));
}

.timeline-content:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.degree {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--highlight);
    margin-bottom: 0.3rem;
}

.duration {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.institution {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-weight: 500;
}

.education-details {
    margin: 1rem 0;
}

.education-details p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.highlight-text {
    color: var(--highlight);
    font-weight: bold;
}

.status-badge,
.achievement-badge {
    margin-top: 1rem;
}

.status,
.achievement {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.current-status {
    background: var(--highlight);
    color: var(--dark-color);
}

.achievement {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Current item highlight */
.timeline-item.current .timeline-marker {
    background: var(--highlight);
    animation: pulse 2s infinite;
}

.timeline-item.current .timeline-marker i {
    color: var(--dark-color);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== SKILLS SECTION ===== */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skills-category h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-category h3 i {
    color: var(--primary-color);
}

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

.skill-progress {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.skill-progress:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-color);
}

.skill-percent {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.progress-container {
    width: 100%;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    height: 8px;
}

.progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    position: relative;
    transition: width 1.5s ease-in-out;
    transform-origin: left;
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    border-radius: 0 10px 10px 0;
}

/* Animation for progress bars when they come into view */
.skill-progress .progress-fill {
    animation: fillProgress 1.5s ease-in-out forwards;
}

@keyframes fillProgress {
    from {
        width: 0% !important;
    }
}

/* ===== PROJECTS SECTION ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
    /* Makes all cards same height */
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.project-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    /* Makes description take available space */
}

.tech-used {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
}

.coming-soon {
    opacity: 0.8;
    border: 2px dashed #cbd5e1;
}

.coming-soon:hover {
    border-color: var(--primary-color);
}

/* ===== PROJECT LINKS STYLES ===== */
.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* For clickable cards */
.project-card-link {
    text-decoration: none;
    color: inherit;
}

.project-cta {
    margin-top: 1rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== CONTACT SECTION ===== */
/* ===== CONTACT FORM STYLES ===== */
.contact-form-container {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--white);
    padding: 0 0.5rem;
    color: #64748b;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.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: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-status.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block;
}

.form-status.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: block;
}

.quick-contact {
    text-align: center;
    margin-bottom: 3rem;
}

.quick-contact h3 {
    margin-bottom: 1.5rem;
    color: var(--white);
    opacity: 0.9;
}

.contact {
    text-align: center;
    background: var(--dark-color);
    color: var(--white);
}

.contact h2 {
    color: var(--white);
}

.contact h2::after {
    background: var(--highlight);
}

.contact p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
}

.contact-btn:hover {
    background: #1d4ed8;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ===== FLOATING CTA STYLES ===== */
.floating-cta {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    z-index: 1000;
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.5s ease;
    border: 1px solid #e2e8f0;
    max-width: calc(100% - 4rem);
}

.floating-cta.active {
    transform: translateX(0);
    opacity: 1;
}

.floating-cta-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.floating-cta-content span {
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
}

.floating-cta-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.floating-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.floating-cta-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cta-close:hover {
    background: #f1f5f9;
    color: var(--dark-color);
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 1rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #1d4ed8, #6b21a8);
}

/* Advanced Back to Top with Progress */
.back-to-top.progress {
    background: transparent;
    box-shadow: none;
}

.back-to-top.progress::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0%, #e2e8f0 0%);
    z-index: -1;
}

.back-to-top.progress .progress-text {
    position: absolute;
    font-size: 0.7rem;
    font-weight: bold;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 2rem 0;
    background: #0f172a;
    color: #64748b;
}

footer p {
    margin-bottom: 0.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ===== SUCCESS POPUP STYLES ===== */
.success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-popup.active {
    opacity: 1;
    visibility: visible;
}

.success-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
    position: relative;
}

.success-popup.active .success-content {
    transform: scale(1);
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
    animation: bounceIn 0.6s ease;
}

.success-content h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-content p {
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-close-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.success-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* Celebration Animation */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

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

@keyframes confetti {
    0% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===== SCROLL PROGRESS INDICATOR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--highlight));
    z-index: 1001;
    transition: width 0.1s ease;
}