@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #2563eb;
    /* Traq Blue */
    --primary-glow: rgba(37, 99, 235, 0.4);
    --accent: #ff9900;
    /* Traq Orange */
    --accent-glow: rgba(255, 153, 0, 0.3);
    --bg-dark: #0f172a;
    /* Original Deep Space Blue */
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

/* Scroll Progress */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--accent));
    width: 0%;
    box-shadow: 0 0 10px var(--primary);
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
    position: relative;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-glow);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.3s, height 0.3s;
}

/* Dynamic Background */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    right: -150px;
    opacity: 0.3;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: var(--accent);
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
    opacity: 0.2;
}

.blob-3 {
    position: absolute;
    width: 300px;
    height: 300px;
    background: #7c3aed;
    top: 40%;
    left: 50%;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: move 25s infinite alternate-reverse;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

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

/* Navbar */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 2rem;
    border-radius: 3rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: slideDown 0.8s ease-out;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.nav-links-container {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--primary);
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Profile Section */
.profile-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 3rem;
    padding: 5rem 3rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    animation: fadeIn 1s cubic-bezier(0.23, 1, 0.32, 1);
    max-width: 900px;
    position: relative;
    overflow: hidden;
}

.profile-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(to right, var(--primary), var(--accent));
}

.img-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 2rem;
}

.img-container::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    z-index: -1;
    animation: rotate 10s linear infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-dark);
}

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

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

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    clip: rect(0, 0, 0, 0);
}

.glitch-text:hover::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch-text:hover::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    100% {
        clip: rect(60px, 9999px, 100px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(30px, 9999px, 80px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 40px, 0);
    }
}

.tagline {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.content {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: left;
}

.content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    background: linear-gradient(to right,
            #bf953f,
            #fcf6ba,
            #b38728,
            #fbf5b7,
            #aa771c);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glitter 5s linear infinite;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(184, 134, 11, 0.2);
}

@keyframes glitter {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* Services Section */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 30px -10px var(--primary-glow);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    width: 100%;
}

.process-item {
    position: relative;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    transition: all 0.4s ease;
}

.process-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.process-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-glow);
    position: absolute;
    top: -1rem;
    left: 2rem;
    z-index: -1;
    font-family: 'Outfit', sans-serif;
}

.process-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Vision Section */
.vision-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.vision-card {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #fff;
    padding: 6rem 4rem;
    border-radius: 4rem;
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.4);
}

.vision-card .section-title {
    background: linear-gradient(135deg, var(--primary), #fff);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 2rem;
}

.vision-text {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 4rem;
    font-style: italic;
    color: var(--accent);
}

.vision-stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #94a3b8;
}

/* Footer */
.main-footer {
    background: #0a0a0a;
    color: #fff;
    padding: 6rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 1rem;
}

.footer-group h4 {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary);
}

.footer-group a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.footer-group a:hover {
    color: #fff;
    transform: translateX(10px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

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

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px -5px var(--primary-glow);
    color: #fff;
}

/* New Section: Testimonials */
.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 300px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info strong {
    display: block;
    color: var(--primary);
    font-size: 1.1rem;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* New Section: FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    background: rgba(255, 255, 255, 0.02);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px var(--primary-glow);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 2rem 2rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    z-index: -2;
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.5;
    }
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.2rem 3.5rem;
    background: linear-gradient(135deg, #1a1a1a, #4a4a4a);
    color: #fff;
    text-decoration: none;
    border-radius: 0.5rem;
    /* More sophisticated square-ish look */
    font-weight: 600;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.cta-button:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--primary), #b38728);
    box-shadow: 0 20px 40px -10px var(--primary-glow);
    letter-spacing: 0.15em;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 5px;
}

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

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    .profile-card {
        padding: 2rem;
    }

    .img-container {
        width: 180px;
        height: 180px;
    }

    .navbar {
        bottom: 2rem;
        top: auto;
        padding: 0.5rem 1.5rem;
        width: 90%;
        justify-content: center;
        gap: 0;
    }

    .nav-logo {
        display: none;
    }

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

    body {
        cursor: auto;
        /* Reset cursor on mobile */
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

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

    .stats-container {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .vision-text {
        font-size: 1.5rem;
    }
}

/* New Sections Styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
    border: 1px solid var(--glass-border);
}

.project-img-wrapper {
    width: 100%;
    height: 100%;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.1);
}

.project-tag {
    background: var(--primary);
    padding: 0.2rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    width: max-content;
    margin-bottom: 0.5rem;
}

/* Stats Section */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.stat-box {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 2rem;
    text-align: center;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
}

.stat-plus,
.stat-percent {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 800;
}

.stat-box p {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Tech Stack */
.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.tech-item {
    background: var(--bg-card);
    padding: 1.5rem 2.5rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 140px;
}

.tech-item i {
    font-size: 2.5rem;
    color: var(--primary);
}

.tech-item:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    transform: scale(1.1) rotate(5deg);
}

.tech-item span {
    font-weight: 600;
    font-size: 0.9rem;
}


/* Glitter Effect */
.glitter-particle {
    position: fixed;
    top: -10px;
    pointer-events: none;
    z-index: 10001;
    border-radius: 50%;
    filter: drop-shadow(0 0 5px rgba(255, 105, 180, 0.8));
    animation: fall linear forwards;
}

@keyframes fall {
    0% {
        transform: translateY(-10vh) translateX(0) scale(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(0vh) translateX(calc(var(--drift) * 0.1)) scale(1) rotate(45deg);
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) translateX(var(--drift)) scale(0.5) rotate(360deg);
        opacity: 0;
    }
}