/* Modern Black & Blue UI Design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #3b82f6;
    --primary-blue-light: #60a5fa;
    --primary-blue-dark: #2563eb;
    --accent-blue: #1d4ed8;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --text-dark: #1f2937;
    --bg-black: #000000;
    --bg-dark: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #262626;
    --border-color: #374151;
    --border-light: #4b5563;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #000000;
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 123, 255, 0.3);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    padding: 0;
}

nav li {
    position: relative;
    padding: 0.5rem 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0.5rem;
    position: relative;
    overflow: visible;
}

nav a:hover {
    color: #007bff;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: #007bff;
    transition: width 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

/* Sections */
.section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(0, 0, 0, 0.7);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #ffffff;
    position: relative;
    text-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

/* Hero Section */
.hero-section {
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    position: relative;
}

.intro {
    max-width: 800px;
    margin: 0 auto;
}

.name {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(0, 123, 255, 0.6);
}

.description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #cccccc;
    line-height: 1.8;
}

.profile-picture {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    margin: 2rem auto;
    border: 6px solid #007bff;
    box-shadow: 0 0 60px rgba(0, 123, 255, 0.4);
    transition: all 0.3s ease;
}

.large-avatar {
    width: 300px;
    height: 300px;
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 0 90px rgba(0, 123, 255, 0.6);
}

.buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    background: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #007bff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: transparent;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.social-links a:hover {
    background: #007bff;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Experience Section */
.experience-grid {
    display: grid;
    gap: 2rem;
}

.experience-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
    background: rgba(255, 255, 255, 0.12);
}

.experience-content {
    flex: 1;
}

.experience-header h3 {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.company {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.duration {
    color: #888888;
    font-size: 0.9rem;
}

.experience-content ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.experience-content li {
    margin-bottom: 0.5rem;
    color: #cccccc;
}

.experience-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: auto;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    border: none !important;
    box-shadow: none !important;
}

.experience-image img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    background: #111;
}

.experience-card:hover .experience-image img {
    transform: scale(1.05);
    border-color: #007bff;
}

/* Projects Section */
.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
    background: rgba(255, 255, 255, 0.12);
}

.project-content {
    flex: 1;
}

.project-content h3 {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.project-content p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.project-tech span:hover {
    background: rgba(0, 123, 255, 0.3);
    transform: translateY(-1px);
}

.project-links {
    margin-top: 1rem;
}

.project-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: auto;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    border: none !important;
    box-shadow: none !important;
}

.project-image img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    background: #111;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
    border-color: #007bff;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #cccccc;
}

.contact-item i {
    color: #007bff;
    font-size: 1.2rem;
    width: 20px;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    animation: inputGlow 0.3s ease;
}

@keyframes inputGlow {
    0% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    }
    100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    }
}

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

/* Testimonials */
.testimonials-section {
    margin-top: 4rem;
}

.testimonials-section h3 {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(0, 123, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
    background: rgba(255, 255, 255, 0.12);
}

.testimonial-card p {
    color: #cccccc;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author strong {
    color: #007bff;
    display: block;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.testimonial-author span {
    color: #888888;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.95);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(0, 123, 255, 0.3);
    color: #888888;
    backdrop-filter: blur(15px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes popUp {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.intro-entry {
    animation: fadeInUp 1s ease-out;
}

.pop-up {
    animation: popUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 900px) {
    .profile-picture,
    .large-avatar {
        width: 200px;
        height: 200px;
    }
    .experience-image,
    .project-image {
        gap: 10px;
        height: 140px;
    }
    .experience-image img,
    .project-image img {
        width: 140px;
        height: 140px;
    }
}
@media (max-width: 600px) {
    .profile-picture,
    .large-avatar {
        width: 120px;
        height: 120px;
    }
    .experience-image,
    .project-image {
        gap: 6px;
        height: 80px;
    }
    .experience-image img,
    .project-image img {
        width: 80px;
        height: 80px;
    }
}

/* Additional elements */
.skills {
    margin-top: 2rem;
}

.skill {
    margin-bottom: 1rem;
}

.progress {
    background: var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 8px;
}

.progress-bar {
    height: 100%;
    background: var(--primary-blue);
    border-radius: var(--border-radius);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-dark);
}

/* Remove old styles that are no longer needed */
.lore-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.lore-image:hover {
    transform: scale(1.02);
}

/* Fix any remaining pink colors */
.contact-box h2,
.testimonials h3,
form h2 {
    color: var(--primary-blue) !important;
}

.contact-box p strong {
    color: var(--primary-blue-light) !important;
}

/* Magnetic Elements */
.magnetic-element {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

/* Distortion Hover Effects */
.distortion-hover {
    transition: all 0.3s ease;
    filter: none;
}

.distortion-hover:hover {
    filter: url('#distortion');
    transform: scale(1.05) rotate(1deg);
}

/* SVG Filter for Distortion */
.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Splitting.js Text Animation Styles */
[data-splitting] {
    --char-total: 0;
}

[data-splitting] .char {
    animation: fadeInUp 0.6s cubic-bezier(0.5, 0, 0.1, 1) both;
    animation-delay: calc(60ms * var(--char-index));
}

/* GSAP ScrollTrigger Styles */
.gsap-marker-start,
.gsap-marker-end,
.gsap-marker-scroller-start,
.gsap-marker-scroller-end {
    display: none;
}

/* Locomotive Scroll Styles */
html.has-scroll-smooth {
    overflow: hidden;
}

html.has-scroll-dragging {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.has-scroll-smooth body {
    overflow: hidden;
}

.has-scroll-smooth [data-scroll-container] {
    min-height: 100vh;
}

/* Enhanced Card Animations */
.experience-card,
.project-card,
.testimonial-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Parallax Effect for Images */
.experience-image img,
.project-image img {
    transition: transform 0.3s ease;
}

/* Micro-interactions */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Enhanced Particle System */
.particle {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Morphing SVG Shapes */
.morphing-shape {
    transition: d 0.5s ease;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-blue-light));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* Enhanced Navigation */
nav a {
    position: relative;
    overflow: hidden;
}

/* Enhanced Focus States */
.btn:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Remove hover border and shadow for project and experience images */
.project-card:hover .project-image,
.project-image:hover,
.project-image:focus-within,
.experience-card:hover .experience-image,
.experience-image:hover,
.experience-image:focus-within {
    border: none !important;
    box-shadow: none !important;
}

/* Image Modal Styles */
.image-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.image-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.image-modal-content {
    max-width: 100vw;
    max-height: 100vh;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}
.image-modal-content img {
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
    margin: auto;
    border-radius: 0;
    box-shadow: 0 4px 32px rgba(0,0,0,0.6);
    background: #111;
}