:root {
    --dark-bg: #0d1117;
    --primary-color: #913ffc;
    --secondary-color: #ff3366;
    --text-color: #f0f6fc;
    --light-gray: #a1abb7;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

p{
   font-size: 1.2rem;
}

#flow-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    display: block;
}

/* Header & Navigation */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--light-gray);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-color);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--light-gray);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    margin-top: 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    transform: translateY(-5px);
    background-color: transparent;
    color: var(--primary-color);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* Content Sections */
.content-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.service-item {
    background: #161b22;
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.service-item h3 {
    color: var(--primary-color);
    margin-bottom: 1.3rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.portfolio-item {
    background: #161b22;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #23282f;
}

.portfolio-item h3 {
    color: var(--primary-color);
    margin: 1.5rem 1rem 0.5rem 1rem;
}

.portfolio-item p {
    color: var(--light-gray);
    padding: 0 1rem 1.5rem 1rem;
    font-size: 0.95rem;
}

.project-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 0.6rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--light-gray);
    border-top: 1px solid #23282f;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 5%;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .logo {
        margin-bottom: 0.5rem;
    }

    .content-section {
        padding: 3rem 5%;
    }

    .content-section h2 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}