:root {
    --primary-color: #3B82F6;
    --primary-hover: #2563EB;
    --text-dark: #E5E7EB;
    --text-light: #9CA3AF;
    --bg-dark: #111827;
    --bg-darker: #0A0F1C;
    --bg-card: #1F2937;
    --white: #FFFFFF;
    --max-width: 1200px;
    --gradient-bg: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
    --gradient-card: linear-gradient(160deg, #1F2937 0%, #1F2244 100%);
    --gradient-darker: linear-gradient(135deg, #0A0F1C 0%, #1E1B4B 100%);
    --gradient-nav: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.8) 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-dark);
    background: var(--gradient-bg);
}

h1, h2, h3, .nav-logo {
    font-family: 'Space Grotesk', sans-serif;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    background: var(--gradient-nav);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 5rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.pre-hero-content {
    font-size: 1.5rem;
    color: var(--text-light);
}

.gradient-text {
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #EC4899, #F59E0B, #F97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: gradient 10s ease infinite;
}

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

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-button a {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s;
    transition: transform 0.3s ease;
}

.cta-button a:hover {
    background-color: var(--primary-hover);
    transform: translateY(-4px);
    transform: scale(1.05);
}

/* Projects Section */
.projects {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.3) 50%,
        rgba(59, 130, 246, 0) 100%
    );
    z-index: -3;
}

.projects h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
    isolation: isolate;
}

.project-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    flex: 1;
    padding: 1.5rem;
}

.project-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}

.project-subtitle {
    color: #888;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-description {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #888;
}

.project-actions {
    display: flex;
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.project-button {
    flex: 1;
    padding: 1rem;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--bg-dark);
    min-width: 0;
}

.project-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-button:hover::before {
    opacity: 1;
}

.project-button span {
    position: relative;
    z-index: 1;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.project-button:nth-child(1)::before {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
}

.project-button:nth-child(2)::before {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
}

.project-button:nth-child(3)::before {
    background: linear-gradient(135deg, #EC4899, #F59E0B);
}

.project-button:hover {
    transform: translateY(-2px);
}

.project-button:active {
    transform: translateY(1px);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    position: relative;
    z-index: -2;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.3) 50%,
        rgba(59, 130, 246, 0) 100%
    );
    z-index: -3;
}

.contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-card);
    border: 1px solid #374151;
    border-radius: 0.375rem;
    font-family: inherit;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.contact-form button {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: var(--primary-hover);
}

/* Footer */
footer {
    background: var(--gradient-darker);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-light);
    position: relative;
    z-index: -2;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.3) 50%,
        rgba(59, 130, 246, 0) 100%
    );
    z-index: -3;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
    
    .nav-links {
        display: none;
    }
}

/* Cursor Effect */
.cursor-orb {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at center,
        rgba(59, 130, 246, 0.4) 0%,
        rgba(139, 92, 246, 0.2) 40%,
        rgba(236, 72, 153, 0) 100%
    );
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 200;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    mix-blend-mode: screen;
    filter: blur(3px);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

/* Particle canvas above backgrounds but below content */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Create background layers for sections */
.projects::after,
.contact::after,
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.projects::after {
    background: var(--gradient-darker);
}

.contact::after {
    background: var(--gradient-bg);
}

footer::after {
    background: var(--gradient-darker);
}

/* Remove any negative z-index from content containers */
.projects,
.contact,
footer {
    z-index: unset;
} 