:root {
    --bg-color: #06050f; /* Dark background with slight blue-purple tint */
    --primary-purple: #8b5cf6;
    --primary-blue: #3b82f6; /* Replaced pink with blue */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

/* Ambient glowing orbs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    opacity: 0.25;
    animation: drift 25s infinite alternate ease-in-out;
    pointer-events: none;
}

body::before {
    background: radial-gradient(circle, var(--primary-purple) 0%, transparent 65%);
    top: -20vw;
    left: -15vw;
}

body::after {
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 65%);
    bottom: -20vh;
    right: -15vw;
    animation-delay: -12.5s;
    animation-direction: alternate-reverse;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 5vw) scale(1.15); }
}

.hero-container {
    position: relative;
    z-index: 10;
    padding: 2rem;
    width: 100%;
    max-width: 900px;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.gradient-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5.5rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #a78bfa 0%, var(--primary-blue) 50%, var(--primary-purple) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -2px;
    animation: shine 6s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    max-width: 500px;
    line-height: 1.7;
    letter-spacing: 0.5px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.1rem 2.8rem;
    font-size: 1.1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 35px -5px rgba(59, 130, 246, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .gradient-text { font-size: 4rem; }
    .subtitle { font-size: 1.1rem; max-width: 400px; }
}

@media (max-width: 480px) {
    .gradient-text { font-size: 3rem; }
}

/* --- Section 2: Expertise Cards --- */
#expertise {
    position: relative;
    z-index: 10;
}

.z-index-10 {
    z-index: 10;
}

.service-card-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    cursor: pointer;
    perspective: 1000px; /* Optional for a slight 3D feel */
}

/* Base rectangle (behind) */
.card-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

/* Glossy rectangle (front) */
.card-glossy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

/* Icon Styling */
.card-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

/* Hover Effects: Diagonal Separation */
.service-card-wrapper:hover .card-glossy {
    transform: translate(-10px, -10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.4);
}

.service-card-wrapper:hover .card-base {
    transform: translate(10px, 10px);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(59, 130, 246, 0.4));
    box-shadow: -10px -10px 20px rgba(139, 92, 246, 0.1);
}

.service-card-wrapper:hover .card-icon {
    transform: scale(1.1);
}

/* --- Section 3: Tools Carousel --- */
#tools {
    position: relative;
    z-index: 10;
}

.tool-carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2rem 0;
    width: 100vw;
}

.tool-marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    min-width: 200%;
    animation: scroll var(--duration) linear infinite;
    animation-direction: var(--direction);
}

.marquee-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4rem;
    padding-right: 4rem;
    min-width: 50%;
    flex-shrink: 0;
}

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

.tool-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #e5e7eb; /* whitish grey */
    opacity: 0.4;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
}

.tool-logo:hover {
    opacity: 1;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 40px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .tool-logo { font-size: 1.8rem; }
    .marquee-group { gap: 2.5rem; padding-right: 2.5rem; }
    .tool-carousel-wrapper { gap: 1.5rem; }
}

@media (max-width: 480px) {
    .tool-logo { font-size: 1.4rem; }
    .marquee-group { gap: 1.5rem; padding-right: 1.5rem; }
}

/* --- Section 4: Game --- */
#game {
    position: relative;
    z-index: 10;
}

.game-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    opacity: 0.8;
    z-index: 0;
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.game-input {
    width: 1.2ch; /* Fit a single letter nicely */
    background: transparent;
    border: none;
    border-bottom: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: white;
    font-size: inherit;
    text-align: center;
    font-family: inherit;
    font-weight: inherit;
    text-transform: lowercase;
    transition: all 0.3s ease;
    outline: none;
    padding: 0;
    margin: 0 2px;
    box-shadow: none;
    line-height: 1;
}

.game-input:focus {
    border-bottom-color: #ffffff;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.game-input.correct {
    border-bottom-color: #4ade80; /* Success green */
    background: transparent;
    color: #4ade80;
    animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-input.incorrect {
    border-bottom-color: #f87171; /* Error red */
    background: transparent;
    color: #f87171;
    animation: shake 0.4s ease-in-out;
}

@keyframes successPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

/* --- Section 5: Methodology (Parallax) --- */
.bg-dark-gradient {
    background: linear-gradient(to bottom, transparent, rgba(6, 5, 15, 0.95) 10%, rgba(6, 5, 15, 0.95) 90%, transparent);
}

.phase-container {
    padding-top: 20vh;
    padding-bottom: 20vh;
}

.phase-item {
    min-height: 80vh; /* Pushes items apart to enable natural scrolling */
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0.2;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.phase-item.active {
    opacity: 1;
    transform: translateY(0);
}

.phase-number {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: -1rem;
    position: relative;
    z-index: -1;
}

.sticky-icon-container {
    position: sticky;
    top: 20vh; /* Adjust exactly where it stops on the screen */
    height: auto;
    padding-top: 5vh;
}

.icon-stack {
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.1);
}

.process-icon {
    position: absolute;
    font-size: 6rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: scale(0.5) translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.process-icon.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* --- Section 6: Contact --- */
.bg-white {
    background-color: #ffffff !important;
}

.text-dark {
    color: #1e293b !important;
}

.gradient-icon {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.custom-input {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    color: #334155;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.custom-input:focus {
    border-color: var(--primary-purple);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1) !important;
}

.custom-input::placeholder {
    color: #94a3b8;
}

.contact-form-wrapper {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1) !important;
}

/* --- Navigation Bar --- */
.glass-nav {
    background: rgba(6, 5, 15, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.text-primary-purple {
    color: var(--primary-purple);
}

.navbar-nav .nav-link {
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-nav:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

@media (max-width: 991px) {
    .glass-nav {
        background: rgba(6, 5, 15, 0.95);
    }
    .navbar-collapse {
        padding: 1rem 0;
    }
}

/* --- About Page Components --- */
.bg-primary-blue {
    background-color: var(--primary-blue);
}

.bg-primary-purple {
    background-color: var(--primary-purple);
}

.text-primary-blue {
    color: var(--primary-blue) !important;
}

.skill-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3) !important;
}

/* --- Portfolio Page Components --- */
.custom-portfolio-tabs .nav-link {
    color: #94a3b8;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.5rem;
    transition: all 0.3s ease;
}

.custom-portfolio-tabs .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.custom-portfolio-tabs .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue)) !important;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.portfolio-item {
    cursor: pointer;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(6, 5, 15, 0.95) 0%, rgba(6, 5, 15, 0.2) 60%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .bg-secondary.bg-opacity-10 {
    background: rgba(255,255,255,0.05) !important;
}

.portfolio-item i {
    transition: transform 0.3s ease;
}

.portfolio-item:hover i {
    transform: scale(1.1);
}

/* --- Footer --- */
.tracking-wider {
    letter-spacing: 0.1em;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}




