/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

/* Sophisticated interactive background */
body {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(1000px 600px at 20% 20%, rgba(59,130,246,0.08), transparent 60%),
                radial-gradient(800px 500px at 80% 70%, rgba(167,139,250,0.06), transparent 60%),
                linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
    z-index: 1;
    pointer-events: none;
}

/* Subtle grid overlay for modern tech aesthetic */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.9), rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 75%);
    pointer-events: none;
    z-index: 2;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 3rem 3rem 0;
    z-index: 20;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 200;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    transition: width 0.4s ease;
}

.logo:hover h1 {
    letter-spacing: 0.1em;
}

.logo:hover h1::after {
    width: 100%;
}

.llc {
    font-size: 0.7rem;
    font-weight: 200;
    color: #52525b;
    margin-left: 0.3rem;
    opacity: 0.8;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 1000px;
}

.tagline {
    font-size: 4.5rem;
    font-weight: 100;
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.tagline .word {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 60%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.3em;
}

.description {
    font-size: 1rem;
    color: #71717a;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Projects Section */
.projects-section {
    width: 100%;
    max-width: 1200px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    justify-items: center;
}

.project-card {
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 32px;
    padding: 4rem 3rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    isolation: isolate;
}

/* Status chips */
.status-chip {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(10,10,11,0.6);
    color: #e5e7eb;
    backdrop-filter: blur(10px);
}

.status-chip.live { border-color: rgba(34,197,94,0.4); color: #bbf7d0; }
.status-chip.soon { border-color: rgba(250,204,21,0.4); color: #fde68a; }

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #60a5fa, #a78bfa, transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(167, 139, 250, 0.2));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.12);
}

.project-card:hover::before,
.project-card:hover::after {
    opacity: 1;
}

.project-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.project-card:hover .project-icon { transform: none; filter: none; }

.project-content {
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.project-content p {
    font-size: 0.95rem;
    color: #a1a1aa;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.project-link {
    font-size: 0.85rem;
    color: #60a5fa;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    letter-spacing: 0.05em;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.project-link i {
    font-size: 0.7rem;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.project-card:hover .project-link {
    opacity: 1;
    color: #93c5fd;
}

.project-card:hover .project-link i {
    transform: translateX(6px);
}

/* Coming Soon State */
.coming-soon {
    cursor: default;
    opacity: 0.6;
    border-color: rgba(82, 82, 91, 0.2);
}

.coming-soon:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 40px rgba(82, 82, 91, 0.1);
    border-color: rgba(82, 82, 91, 0.3);
}

.coming-soon .project-link {
    color: #71717a;
    font-style: italic;
    font-weight: 300;
}

.coming-soon .project-icon {
    background: linear-gradient(135deg, #71717a, #52525b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.coming-soon:hover .project-icon {
    transform: scale(1.05);
    filter: none;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    text-align: center;
}

.footer p {
    color: #52525b;
    font-size: 0.8rem;
    font-weight: 200;
    letter-spacing: 0.05em;
}

/* Enhanced Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    filter: blur(1px);
}

.floating-element:nth-child(1) {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.floating-element:nth-child(2) {
    width: 300px;
    height: 300px;
    top: 60%;
    right: 10%;
    animation-delay: -8s;
    animation-duration: 30s;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.06) 0%, transparent 70%);
}

.floating-element:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: 15%;
    left: 15%;
    animation-delay: -15s;
    animation-duration: 22s;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.04) 0%, transparent 70%);
}

.floating-element:nth-child(4) {
    width: 180px;
    height: 180px;
    top: 25%;
    right: 35%;
    animation-delay: -20s;
    animation-duration: 28s;
}

.floating-element:nth-child(5) {
    width: 350px;
    height: 350px;
    bottom: 35%;
    left: 50%;
    animation-delay: -12s;
    animation-duration: 35s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px) scale(1.1) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-15px) translateX(-25px) scale(0.9) rotate(180deg);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-45px) translateX(10px) scale(1.05) rotate(270deg);
        opacity: 0.4;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .header {
        padding: 2rem 2rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 3rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .projects-grid {
        gap: 2rem;
    }
    
    .project-card {
        padding: 3rem 2.5rem;
        max-width: none;
    }
    
    .project-icon {
        font-size: 2.8rem;
    }
    
    .project-content h3 {
        font-size: 1.4rem;
    }
    
    .floating-element {
        filter: blur(2px);
    }
}

@media (max-width: 480px) {
    .tagline {
        font-size: 2.2rem;
    }
    
    .description {
        font-size: 0.8rem;
    }
    
    .project-card {
        padding: 2.5rem 2rem;
        border-radius: 24px;
    }
    
    .hero-section {
        margin-bottom: 4rem;
    }
    
    .header {
        padding: 1.5rem 1.5rem 0;
    }
    
    .footer {
        padding: 2rem;
    }
}

/* Enhanced Page Load Animation */
.main-container {
    opacity: 0;
    animation: fadeInScale 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.project-card {
    opacity: 0;
    animation: slideInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.6s;
}

.project-card:nth-child(2) {
    animation-delay: 0.8s;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Subtle glow effects for interactive elements */
.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(167, 139, 250, 0.2));
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Remove breathing animation for minimal look */
.project-icon { animation: none; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #60a5fa, #a78bfa);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #93c5fd, #c4b5fd);
}

/* Selection styling */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}

::-moz-selection {
    background: rgba(59, 130, 246, 0.3);
    color: #ffffff;
}