:root {
    --bg-dark: #0a0b10;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --primary-accent: #7b2cbf;
    /* Deep Violet */
    --secondary-accent: #00f5d4;
    /* Neon Cyan */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-heading: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-heading);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.globe-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-accent), transparent 70%);
}

.globe-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--secondary-accent), transparent 70%);
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

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

/* Header */
.main-header {
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.dot {
    color: var(--secondary-accent);
}

/* Typography Helpers */
.gradient-text {
    background: linear-gradient(135deg, var(--secondary-accent), var(--primary-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Section */
.about-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--secondary-accent);
    margin-bottom: 2rem;
    font-weight: 300;
}

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

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Since generated image is square/portrait */
    border-radius: 20px;
    position: relative;
    z-index: 2;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    z-index: 1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Marquee Section */
.marquee-container {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
    backdrop-filter: blur(5px);
}

.marquee-track {
    display: flex;
    width: fit-content;
    animation: scroll 20s linear infinite;
}

.marquee-content {
    white-space: nowrap;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    padding-right: 0;
}

/* Add spacing around the content blocks */
.marquee-content span.dot {
    color: var(--secondary-accent);
    margin: 0 1.5rem;
}

/* Ensure text has spacing between the repeated blocks */
.marquee-content {
    margin-right: 1.5rem;
    /* The loop logic relies on identical content.
       We need to make sure the gap between the last item of block A and first of block B matches the others. */
    display: flex;
    align-items: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }

    /* Moving 1/3 since we have 3 clones? Let's check logic */
}

/* Re-adjusting animation logic for safety.
   If we have 3 identical children, we move -100% of ONE child width to create the loop.
   But pure CSS translate % is based on the element itself (the track).
   So if track is 300% wide (3 children), moving -33.33% is moving 1 full child width. */

/* Projects Section */
.projects-section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: left;
}

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

.project-card {
    display: block;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    /* transition: all 0.4s ease; REMOVED GLOBAL TRANSITION */
    transition: all 0.4s ease;
    /* Exclude transform */
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(10px);
    padding: 30px;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    padding: 16px;
    width: 100%;
    height: 250px;
    display: block;
    border-radius: 12px;
    /* Optional: adds subtle rounding inside the card */
    margin-bottom: 1rem;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.4);
}

.card-content {
    padding: 2rem;
    color: var(--text-main);
}

.card-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.btn-link {
    color: var(--secondary-accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Footer */
.main-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

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

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    color: var(--secondary-accent);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

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

    .about-text h2 {
        font-size: 3rem;
    }

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

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