/* ==========================================================================
   PortfolAI Landing Page Styles
   ========================================================================== */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

   :root {
    --bg-color: #000;
    --bg-secondary: #080808;
    --text-white: #ffffff;
    --text-gray-light: #b1b1b1;
    --text-gray-medium: #c7c6c6;
    --text-gray-dark: #e4e4e4;
    --btn-color: #fdfdfd;
    --btn-bg: #7e22ce;
    --primary-text-color: #7e22ce;
    --header-link-hover: #7e22ce;
    --input-hover-bd-color: #7e22ce;
    --border-color: #818080;
    --border-outline: #1F2123;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

html {
    scroll-behavior: smooth;
    font-family: "Ubuntu", sans-serif;
}

body {
    padding-top: 60px;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    color: var(--text-gray-light);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.header-logo {
    color: var(--text-white);
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
}

header > .collapsible-header {
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.animated-collapse {
    transition: width 0.3s ease;
}

.header-links {
    display: flex;
    align-items: center;
    min-width: fit-content;
    border-radius: 5px;
    padding: 5px 10px;
    transition: background-color 0.5s, color 0.5s;
}

.header-links:hover {
    color: var(--text-white);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1 !important;
}

/* ==========================================================================
   Component Styles
   ========================================================================== */

.hero-section {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-img-bg-grad {
    background: linear-gradient(90deg, #7e22ce91 8%, #625aafae 31%, #7badbbbc 76%, #54d2d0ca 89%);
    filter: blur(50px);
    opacity: 0.5;
}

#dashboard {
    transform: perspective(1200px) translateX(0px) translateY(12px) scale(0.8) rotate(0deg) rotateX(70deg);
    transition: transform 0.5s;
}

.border-gradient {
    padding: 2px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(219, 215, 213, 1) 35%, rgba(214, 211, 233, 0) 71%);
}

.border-gradient > div {
    background-color: var(--bg-color);
    border-radius: inherit;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    width: max-content;
    border-radius: 5px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    cursor: pointer;
}

.btn:hover {
    /* Hover styles can be added here if needed */
}

.btn:disabled {
    cursor: default;
}

.input {
    padding: 10px;
    min-width: 100px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: transparent;
}

.input:active,
.input:focus,
.input:focus-within {
    border: 1px solid var(--input-hover-bd-color);
}

/* ==========================================================================
   Carousel Styles
   ========================================================================== */

.carousel-container {
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    white-space: nowrap;
}

.carousel {
    display: flex;
    animation: scroll 20s linear infinite;
}

.carousel-img {
    flex-shrink: 0;
    margin-right: 1rem;
}

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

/* ==========================================================================
   Animation Styles
   ========================================================================== */

.gradient-text {
    background: linear-gradient(45deg, #7e22ce, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.footer-link {
    color: var(--text-gray-medium);
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--text-white);
}

.footer-text {
    color: var(--text-white);
}

/* ==========================================================================
   FAQ Accordion Styles
   ========================================================================== */

.faq-accordion {
    width: 100%;
    padding: 15px 18px;
    border: none;
    background-color: inherit;
    color: #f2f2f2;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: height 0.4s;
}

.faq .content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-gray-dark);
    background-color: transparent;
    text-align: justify;
    transition: max-height 0.4s, padding 0.4s;
}

.faq-accordion .active,
.faq-accordion:hover {
    /* Hover effect handled by JavaScript - keeping here for reference */
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        top: 0;
        right: 0;
        width: 0vw;
        height: 100vh;
        min-height: 100vh;
        height: 100dvh;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        background-color: #040404;
        color: #ffffff;
        flex-direction: column;
        justify-content: space-between;
        place-items: end;
        opacity: 0;
        overflow-y: auto;
        box-shadow: 3px 0px 3px 2px #9f9f9f;
        transition: width 0.3s ease, opacity 0.3s ease;
    }

    .header-links {
        color: var(--text-white);
    }
}