/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --background-image: url('images/background.jpg');
    --navbar-height-mobile: 4rem;
    --navbar-height-desktop: 5rem;
    --transition-speed: 0.3s;
    --transition-ease: ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Accessibility - Visually Hidden */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hide alt text for images */
img {
    color: transparent;
    font-size: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all var(--transition-speed) var(--transition-ease);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    text-decoration: none;
    display: block;
    transition: transform var(--transition-speed) var(--transition-ease);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 4.5rem;
    width: auto;
    max-width: 360px;
    object-fit: contain;
    transition: transform var(--transition-speed) var(--transition-ease);
}

/* Responsive logo sizing */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo-img {
        height: 3.5rem;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .logo-img {
        height: 3.5rem;
        max-width: 220px;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    border-radius: 6px;
    transition: all var(--transition-speed) var(--transition-ease);
}

.nav-links a:hover {
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.05);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
    transform-origin: center;
}

/* Menu toggle active state animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: calc(8rem + var(--navbar-height-desktop)) 2rem 4rem;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    grid-column: 1;
    z-index: 2;
    position: relative;
    padding-right: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #494949;
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #494949;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

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

.gradient-fill {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    padding: 0.3rem;
}

.btn-secondary {
    background: white;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.hero-visual {
    grid-column: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--background-image) center/cover no-repeat;
    border-radius: 16px;
    min-height: 400px;
    width: 100%;
    border: 3px solid #7c3aed;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}


/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

/* Work Section */
.work {
    background: #f8fafc;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.work-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 1rem 0;
    flex: 1;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.work-carousel::-webkit-scrollbar {
    display: none;
}

.work-item {
    flex: 0 0 350px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(112, 50, 206, 0.08);
    scroll-snap-align: start;
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(80, 47, 198, 0.20);
}

/* Carousel Buttons */
.carousel-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: #2563eb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.carousel-btn:active {
    transform: translateY(0);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
}


.work-image {
    height: 200px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.work-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-image-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


.work-content {
    padding: 2rem;
}

.work-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.work-content p {
    margin-bottom: 1.5rem;
    color: #666;
}


/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}



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

.profile-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border: 10px solid #5559c2;
    border-radius: 50%;
}

/* How It Works Section */
.how-it-works {
    background: #f8fafc;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 3rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.process-step {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #333;
}

.process-step p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* FAQ Section */
.faq {
    background: #ffffff;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.faq-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-speed) var(--transition-ease);
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.1);
}

.faq-item h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Contact Section */
.contact {
    background: #f8fafc;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h4 {
    color: #2563eb;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: #2563eb;
}

/* Phone number obfuscation styles */
.phone-obfuscated {
    display: inline-block;
    letter-spacing: 0.1em;
    user-select: all;
    cursor: pointer;
    transition: color 0.3s ease;
}

.phone-obfuscated:hover {
    color: #2563eb;
}

.phone-obfuscated span {
    display: inline;
    position: relative;
}

/* Additional obfuscation - hide from simple text extraction */
.phone-obfuscated::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    left: -9999px;
}

/* Email obfuscation styles */
.email-obfuscated {
    display: inline-block;
    letter-spacing: 0.05em;
    user-select: all;
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
    unicode-bidi: bidi-override;
    direction: rtl;
}

.email-obfuscated:hover {
    color: #60a5fa;
}

/* Additional email obfuscation techniques */
.email-obfuscated::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    left: -9999px;
}

/* Reverse the text direction for additional obfuscation */
.email-obfuscated span {
    unicode-bidi: normal;
    direction: ltr;
    display: inline-block;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

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

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e2e8f0;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #60a5fa, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 3.5rem;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.2) contrast(1.2);
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.footer-title {
    color: #f1f5f9;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-list a:hover {
    color: #60a5fa;
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-icon {
    font-size: 1.1rem;
    width: 1.5rem;
    text-align: center;
}

.footer-contact-item a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #60a5fa;
}


.footer-bottom {
    border-top: 1px solid #475569;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-bottom-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: #60a5fa;
}

.footer-separator {
    color: #64748b;
    font-size: 0.9rem;
}


/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.info {
    background: #2196F3;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem 2rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        margin: 0;
        align-items: flex-start;
    }
    
    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-links a {
        padding: 0.5rem 0;
        margin: 0;
        text-align: left;
        width: 100%;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
        padding: calc(6rem + var(--navbar-height-mobile)) 1rem 2rem;
    }
    
    .hero-content {
        grid-column: 1;
        padding-right: 0;
    }
    
    .hero-visual {
        grid-column: 1;
        min-height: 400px;
        margin-top: 2rem;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .carousel-container {
        gap: 0.5rem;
    }
    
    .work-item {
        flex: 0 0 280px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand {
        max-width: none;
        text-align: center;
    }
    
    .footer-contact-info {
        align-items: center;
        text-align: center;
    }
    
    .footer-contact-item {
        justify-content: center;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Hide carousel buttons on very small screens, rely on touch scrolling */
@media (max-width: 480px) {
    .carousel-btn {
        display: none;
    }
    
    .work-item {
        flex: 0 0 250px;
    }
    
    .carousel-container {
        gap: 1rem;
    }
}

@media (max-width: 360px) {
    .work-item {
        flex: 0 0 220px;
    }
    
    .carousel-container {
        gap: 0.5rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        max-width: none;
    }
}

@media (min-width: 1200px) {
    .hero-visual {
        min-height: 500px;
    }
}


@media (max-width: 600px) {
    .hero {
        gap: 1.5rem;
        padding: calc(4rem + var(--navbar-height-mobile)) 1rem 2rem;
    }
    
    .hero-visual {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .hero {
        gap: 1rem;
        padding: calc(3rem + var(--navbar-height-mobile)) 1rem 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        min-height: 300px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
}

@media (max-width: 360px) {
    .hero {
        gap: 0.5rem;
        padding: calc(2rem + var(--navbar-height-mobile)) 1rem 1rem;
    }
    
    .hero-visual {
        min-height: 250px;
    }
}

/* Smooth animations */
.work-item,
.btn,
.nav-links a {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.btn:focus,
input:focus,
textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Loading animation for form submission */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    color: transparent;
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.close-modal {
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 35px;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
}

/* Modal Navigation Buttons */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    color: white;
}

.modal-nav:hover {
    background: rgba(37, 99, 235, 0.8);
    border-color: #2563eb;
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-left {
    left: 20px;
}

.modal-nav-right {
    right: 20px;
}

.modal-nav svg {
    width: 24px;
    height: 24px;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.back-to-top:hover {
    background: rgba(37, 99, 235, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

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

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* Profile image styling */
.profile-placeholder {
    background-image: url('images/me.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        box-shadow: 0 0 0 1px rgba(104, 40, 221, 0.2);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(66, 34, 121, 0.1);
    }
}
