:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #00cec9;
    --card-bg: rgba(255, 255, 255, 0.03);
    --nav-bg: rgba(13, 13, 13, 0.8);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

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

h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1a1a, #0d0d0d);
    /* Dark Tech Background */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(108, 92, 231, 0.6);
    background: #5a4bcf;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Shapes */
.bg-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: conic-gradient(from 0deg at 50% 50%, #6c5ce7, #a29bfe, #00cec9, #6c5ce7);
    border-radius: 50%;
    filter: blur(80px);
    animation: rotateShape 20s linear infinite;
    top: 10%;
    right: -100px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: conic-gradient(from 180deg at 50% 50%, #e17055, #fd79a8, #6c5ce7, #e17055);
    border-radius: 50%;
    filter: blur(80px);
    animation: rotateShape 15s linear infinite reverse;
    top: 50%;
    left: -100px;
}

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

    100% {
        transform: rotate(360deg);
    }

}


/* General Section Styles */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.subtitle {
    text-transform: uppercase;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 3rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.15rem;
}

.about-text strong {
    color: var(--text-color);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.stat-card h3 {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Work Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.project-card {
    background: var(--card-bg);
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    /* Faster transform for tilt */
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Transform handled by JS */
}

.project-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, #0d0d0d 10%, transparent 100%);
}

.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.project-content p {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 25px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

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

.project-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 0.1s;
}

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

.project-link:hover {
    gap: 15px;
}

.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-bg {
    opacity: 0.4;
}

.gradient-1 {
    background: radial-gradient(circle at top right, #6c5ce7, transparent);
}

.gradient-2 {
    background: radial-gradient(circle at top right, #00cec9, transparent);
}

.gradient-3 {
    background: radial-gradient(circle at top right, #fd79a8, transparent);
}

.gradient-4 {
    background: radial-gradient(circle at top right, #e17055, transparent);
}

/* Contact Styles */
.contact-section {
    text-align: center;
}

.contact-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 100px 40px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
}

.contact-box h2 {
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.contact-box p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.contact-item {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0;
    background: #050505;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 10px;
}

.partner-text {
    font-size: 1rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.partner-text:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.partner-link {
    color: var(--text-color);
    font-weight: 700;
    margin-left: 8px;
}

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

.footer-right {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px) rotate(10deg);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

.fade-in-section {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .contact-details {
        flex-direction: column;
        gap: 20px;
    }

    .shape-1,
    .shape-2 {
        opacity: 0.4;
        width: 300px;
        height: 300px;
    }
}