:root {
    --primary-color: #f8fafc;
    /* Slate 50 - High Contrast Text */
    --secondary-color: #cbd5e1;
    /* Slate 300 - Readable Secondary */
    --accent-color: #3b82f6;
    /* Blue 500 - Brighter Blue for Dark Mode */
    --bg-color: #0f172a;
    /* Slate 900 - Deep Dark Background */
    --card-bg: #1e293b;
    /* Slate 800 - Dark Card Surface */
    --text-main: #f1f5f9;
    /* Slate 100 - Main Text */
    --text-muted: #94a3b8;
    /* Slate 400 - Muted Text */

    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    /* New engaging font */

    --border-radius: 8px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(192, 132, 252, 0.15) 0%, transparent 25%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.2), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.2), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(236, 72, 153, 0.15), transparent 40%);
    animation: backgroundMove 15s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

@keyframes backgroundMove {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(-5%, -5%) rotate(5deg);
    }
}

h1,
h2,
h3,
.logo,
.nav-links a,
.cta-button,
.tool-item,
.floating-box {
    font-family: var(--font-heading);
}

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

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
/* Header */
header {
    background-color: rgba(255, 255, 255, 0.1);
    /* White translucent (frosted glass) */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    /* Fixed position */
    top: 20px;
    /* Floating from top */
    left: 50%;
    /* Center horizontally */
    transform: translateX(-50%);
    /* Correct centering */
    z-index: 1000;
    width: 90%;
    /* Responsive width */
    max-width: 1000px;
    /* Max width constraint */
    border-radius: 50px;
    /* Rounded corners */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Subtle border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    /* Shadow for depth */
    transition: all 0.3s ease;
    padding: 0 30px;
    /* Padding for internal spacing */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    /* Tighter for modern look */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    /* Taller hero section */
    padding: 80px 20px;
    gap: 60px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.name {
    font-size: 4.5rem;
    /* Larger font size */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    /* Ensure name is above stats if overlap */
    z-index: 2;
}

.hero-stats {
    position: absolute;
    /* Revert to absolute for desktop */
    bottom: -80px;
    /* Lower to separate from hero text */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Space between cards */
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    pointer-events: none;
    /* Allow clicks to pass through gaps */
}

.stat-item {
    pointer-events: auto;
    /* Re-enable clicks on cards */
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
    /* Slightly more transparent */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 30px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 3rem;
    /* Even larger */
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

.stat-label {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.stat-divider {
    display: none;
    /* Remove dividers for card layout */
}

.role {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    min-height: 40px;
    /* Prevent layout shift */
}

.typing-text {
    color: var(--accent-color);
    margin-left: 10px;
    white-space: nowrap;
}

.cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--text-main);
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 20px;
    align-items: center;
}

.cta-button {
    display: inline-block;
    padding: 16px 40px;
    /* Larger button */
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent-color), #2563eb);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    box-shadow: none;
}

.cta-button.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transform: translateY(-4px) scale(1.05);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.5);
}

.cta-button:hover::after {
    transform: translateY(0);
}

/* Hero Image & Floating Boxes */
.hero-image-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    z-index: 10;
    border-radius: 50%;
    /* Circle format */
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    width: 450px;
    /* Slightly larger */
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e293b;
    border: 8px solid rgba(255, 255, 255, 0.05);
    /* Subtle border ring */
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.floating-box {
    position: absolute;
    background-color: rgba(30, 41, 59, 0.9);
    /* Glassmorphism base */
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left-width: 4px;
    animation: float 6s ease-in-out infinite;
    /* Slower, smoother float */
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.box-1 {
    top: 10%;
    left: 0;
    animation-delay: 0s;
    border-left-color: #c084fc;
    /* Purple */
    color: #e9d5ff;
    /* Light Purple text */
}

.box-2 {
    bottom: 20%;
    right: -20px;
    animation-delay: 1s;
    border-left-color: #2dd4bf;
    /* Teal */
    color: #ccfbf1;
    /* Light Teal text */
}

.box-3 {
    top: 50%;
    left: -40px;
    animation-delay: 2s;
    border-left-color: #fb7185;
    /* Rose */
    color: #ffe4e6;
    /* Light Rose text */
}

/* Skills Section */
.skills-section {
    padding: 150px 20px 80px;
    /* Increased top padding to clear floating stats */
}

.section-title {
    text-align: center;
    font-size: 3rem;
    /* Larger title */
    margin-bottom: 60px;
    color: #f8fafc;
    /* Brighter white */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    /* Shadow to pop against bg */
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.skill-card {
    background: rgba(15, 23, 42, 0.65);
    /* Increased opacity for better contrast */
    backdrop-filter: blur(16px);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(16px);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    /* Deeper shadow */
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Stronger border */
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

.skill-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: var(--text-muted);
}

.skill-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Projects Section */
.projects-section {
    padding: 80px 20px 120px;
    /* Removed background-color to fix boxy look */
}

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

.project-card {
    background: rgba(15, 23, 42, 0.65);
    /* Increased opacity */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.2s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Stronger border */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    min-height: 220px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px -5px rgba(59, 130, 246, 0.25);
    /* Stronger blue glow */
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-small {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-filled {
    background: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.btn-filled:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    color: #fff;
    border-color: #fff;
}

/* Tools Section */
.tools-section {
    padding: 80px 20px;
    /* Removed background-color to fix boxy look */
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.tool-item {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: float 5s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Space between logo and text */
}

.tool-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tool-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
    background: rgba(30, 41, 59, 0.9);
}

.float-delay-1 {
    animation-delay: 0s;
}

.float-delay-2 {
    animation-delay: 1.3s;
}

.float-delay-3 {
    animation-delay: 2.6s;
}

/* Project Details Page */
.details-container {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.details-header {
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.details-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #f8fafc;
}

.details-subtitle {
    color: var(--accent-color);
    font-weight: 500;
}

.section-block {
    margin-bottom: 50px;
}

.section-heading {
    font-size: 1.5rem;
    color: #f8fafc;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.sub-heading {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 25px 0 15px;
    font-weight: 600;
}

.text-content {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.deliverables-list,
.results-list {
    list-style: none;
    padding-left: 20px;
}

.deliverables-list li,
.results-list li {
    margin-bottom: 10px;
    position: relative;
    color: var(--text-muted);
}

.deliverables-list li::before,
.results-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: -20px;
    font-weight: bold;
}

/* Layouts */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.image-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    /* Fixed height for placeholders */
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }
}

.vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 30px;
}

.vertical-stack .image-box {
    height: 300px;
    /* Taller images for vertical layout */
    width: 100%;
}

/* Contact Section */
.contact-section {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text-main);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.submit-btn {
    display: inline-block;
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

/* Footer */
footer {
    background-color: var(--card-bg);
    /* Match card bg for footer */
    color: var(--text-muted);
    padding: 30px 20px;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid #334155;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero-section {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        margin-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center cta-group on mobile */
    }

    .cta-group {
        justify-content: center;
        flex-wrap: wrap;
        /* Stack buttons if screen is too narrow */
    }

    .role {
        justify-content: center;
    }

    .description {
        margin: 0 auto 30px;
    }

    .box-1 {
        left: -10px;
        top: 10%;
    }

    .box-3 {
        left: -10px;
        top: 70%;
    }

    .hero-stats {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin-top: 40px;
        gap: 15px;
        /* Smaller gap on mobile */
        padding: 0;
    }

    .stat-item {
        width: 100%;
        /* Full width cards */
        padding: 20px;
        background: rgba(15, 23, 42, 0.8);
        /* Darker on mobile for readability */
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-divider {
        display: none;
    }
}

@media (max-width: 600px) {
    .name {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 30px 20px;
    }

    .floating-box {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Project Buttons */
.project-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.btn-small {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-filled {
    background: var(--accent-color);
    color: white;
}

.btn-filled:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* Reports Modal - Innovative Design */
.modal {
    display: none;
    position: fixed;
    z-index: 2005;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(5, 10, 20, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    /* Controlled by .show */
    flex-direction: column;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal::-webkit-scrollbar {
    display: none;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: auto;
    padding: 40px 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    /* Reverting to vh for base, will refine in media query */
    overflow-y: auto;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 40px 80px -20px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: translateY(30px) scale(0.95);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1), transparent 60%);
    animation: rotateBg 10s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.modal.show .modal-content {
    transform: rotateX(0) scale(1) translateY(0);
    opacity: 1;
}

.close-modal {
    color: #94a3b8;
    position: absolute;
    top: 25px;
    right: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.modal h2 {
    margin-top: 10px;
    margin-bottom: 40px;
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 2;
}

.report-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.report-option {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50px;
    /* Reverted to fully rounded edges */
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
}

.modal.show .report-option {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered Delay for Options */
.modal.show .report-option:nth-child(1) {
    transition-delay: 0.1s;
}

.modal.show .report-option:nth-child(2) {
    transition-delay: 0.2s;
}

.modal.show .report-option:nth-child(3) {
    transition-delay: 0.3s;
}

.report-option::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.report-option:hover:not(.disabled) {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.4);
    transform: scale(1.02) translateX(10px);
    box-shadow:
        0 0 30px rgba(59, 130, 246, 0.2),
        inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.report-option:hover::after {
    transform: translateX(100%);
}

.report-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.3);
    border-style: dashed;
    filter: grayscale(1);
}

.report-option span {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
    transition: transform 0.3s ease;
}

.report-option:hover span {
    transform: scale(1.2) rotate(10deg);
}

.report-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: white;
    /* White bg for logo pop */
    padding: 2px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.report-option:hover .report-logo {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.skill-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    /* Add glow to match neon theme */
}

/* Image Zoom Lightbox */
.image-lightbox {
    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(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.show {
    display: flex;
    /* Ensure display flex is set when shown */
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.image-lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

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

.clickable-img {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.clickable-img:hover {
    opacity: 0.8;
}

/* --- Responsive Media Queries --- */

/* Tablets (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .name {
        font-size: 3.5rem;
    }

    .hero-stats {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        margin-top: 40px;
        flex-wrap: wrap;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        min-width: 250px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Project Detail Pages */
    .details-container {
        margin-top: 100px;
        padding: 0 15px;
    }

    .details-title {
        font-size: 2rem;
    }

    .image-box {
        height: auto;
        min-height: 250px;
    }
}

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {
    header {
        display: none !important;
    }

    .hero-section {
        padding-top: 60px;
        /* Reduced since navbar is gone */
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 !important;
        /* Override container padding */
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
        flex-shrink: 0;
        margin-right: -5px;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: var(--primary-color);
        border-radius: 2px;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        border-radius: 0;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        padding: 100px 0;
        border: none;
        z-index: 998;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    /* Hamburger Animation */
    #mobile-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    #mobile-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .name {
        font-size: 2.8rem;
    }

    .hero-image-container {
        width: 250px;
        height: 250px;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .role {
        font-size: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .floating-box {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .box-1 {
        top: 10%;
        left: -10%;
    }

    .box-2 {
        bottom: 10%;
        right: -10%;
    }

    .box-3 {
        top: 50%;
        right: -10%;
        left: auto;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .tools-grid {
        gap: 15px;
    }

    .tool-item {
        padding: 10px;
    }

    .tool-item i {
        font-size: 1.5rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        width: 96%;
        max-width: none;
        padding: 30px 15px;
        max-height: 92dvh;
        border-radius: 24px;
        margin: auto;
        transform: translateY(20px);
        opacity: 0;
    }

    .modal {
        padding: 5px;
        display: none;
        align-items: center;
        justify-content: center;
        perspective: none;
    }

    .modal.show {
        display: flex;
    }

    .modal.show .modal-content {
        transform: translateY(0);
        opacity: 1;
    }

    .modal h2 {
        font-size: 1.6rem;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .report-option {
        padding: 14px 20px;
        font-size: 0.9rem;
        gap: 12px;
        width: 100%;
        justify-content: flex-start;
        /* Better for text alignment */
        text-align: left;
    }

    .logo {
        font-size: 1.1rem;
        white-space: nowrap;
    }
}

/* Small Phones (max-width: 480px) */
@media screen and (max-width: 480px) {
    .name {
        font-size: 2.2rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}