/* VARIABLES & RESET */
:root {
    --bg-color: #050507;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --primary: #7b2cbf;
    --primary-glow: rgba(123, 44, 191, 0.5);
    --secondary: #3a0ca3;
    --accent: #f72585;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --container-width: 1200px;
    --header-height: 80px;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none; /* Custom cursor */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* CUSTOM CURSOR */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: white;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body:hover .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
}

/* TYPOGRAPHY */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer; /* Fallback */
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: white;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.6);
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--primary);
}

.navbar {
    display: flex;
    gap: 40px;
}

.navbar a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.navbar a.active,
.navbar a:hover {
    color: white;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-sphere {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(0,0,0,0) 70%);
    top: -20%;
    right: -10%;
    opacity: 0.6;
    animation: float 10s ease-in-out infinite;
}

.gradient-sphere.secondary {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(58, 12, 163, 0.4) 0%, rgba(0,0,0,0) 70%);
    bottom: -10%;
    left: -5%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 50px); }
}

.hero-content {
    z-index: 1;
}

.subtitle {
    display: block;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInDown 1s ease-out;
}

.title {
    font-size: 4rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta-group {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SECTIONS */
.section {
    padding: 100px 0;
}

/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    group: hover;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
}

.project-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-icon {
    width: 60px;
    height: 60px;
    color: rgba(255, 255, 255, 0.8);
}

.project-info {
    padding: 30px;
}

.project-category {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.project-info h3 {
    margin: 10px 0;
    font-size: 1.5rem;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-link:hover {
    color: var(--primary);
}

.project-link i {
    width: 16px;
    height: 16px;
}

/* ABOUT */
.about {
    background: linear-gradient(to bottom, var(--bg-color), #0f0f12);
}

.about-text {
    max-width: 800px;
}

.about p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* CONTACT */
.contact-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: white;
}

.big-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.social-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: white;
    transform: translateY(-3px);
}

.social-links i {
    width: 24px;
    height: 24px;
}

/* FOOTER */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.host-info {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.host-info a {
    color: var(--primary);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }
    
    .navbar {
        display: none; /* Mobile menu to be implemented with JS */
    }
    
    .hamburger {
        display: block;
        color: white;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
