:root {
    --bg-dark: #0a0a0f;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --accent-1: #6366f1;
    --accent-2: #a855f7;
    --accent-3: #ec4899;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs for Visual Interest */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-1), transparent 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-2), transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 5%) scale(1.1); }
}

/* Glassmorphism Utilities */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Typography & Layout */
.gradient-text {
    background: linear-gradient(to right, var(--accent-1), var(--accent-2), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

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

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: width 0.3s ease;
}

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

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px; /* Offset for fixed nav */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.abstract-shape {
    position: relative;
    width: 350px;
    height: 350px;
    transform-style: preserve-3d;
    transform: rotateX(60deg) rotateY(0deg) rotateZ(45deg);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: rotate-shape 20s infinite linear;
}

.abstract-shape:hover {
    transform: rotateX(45deg) rotateY(15deg) rotateZ(10deg);
}

.shape-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.shape-ring-1 {
    border-top: 4px solid var(--accent-1);
    border-right: 4px solid var(--accent-1);
    transform: translateZ(50px) scale(0.9);
    animation: ring-spin-1 6s infinite ease-in-out alternate;
    box-shadow: inset 0 0 40px rgba(99, 102, 241, 0.3), 0 0 40px rgba(99, 102, 241, 0.3);
}

.shape-ring-2 {
    border-bottom: 4px solid var(--accent-2);
    border-left: 4px solid var(--accent-2);
    transform: translateZ(0px) scale(1);
    animation: ring-spin-2 8s infinite ease-in-out alternate-reverse;
    box-shadow: inset 0 0 50px rgba(168, 85, 247, 0.2), 0 0 50px rgba(168, 85, 247, 0.2);
}

.shape-ring-3 {
    border: 2px dashed var(--accent-3);
    transform: translateZ(-50px) scale(1.1);
    animation: ring-spin-3 10s infinite linear;
    opacity: 0.5;
}

@keyframes rotate-shape {
    0% { transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateY(0deg) rotateZ(360deg); }
}

@keyframes ring-spin-1 {
    0% { transform: translateZ(50px) scale(0.9) rotate(0deg); }
    100% { transform: translateZ(70px) scale(0.8) rotate(180deg); }
}

@keyframes ring-spin-2 {
    0% { transform: translateZ(0px) scale(1) rotate(0deg); }
    100% { transform: translateZ(10px) scale(1.05) rotate(-180deg); }
}

@keyframes ring-spin-3 {
    0% { transform: translateZ(-50px) scale(1.1) rotate(0deg); }
    100% { transform: translateZ(-50px) scale(1.1) rotate(360deg); }
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Shared Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* About Section */
.about-content {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.skill-tag {
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--accent-1);
    transform: translateY(-2px);
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.project-pattern {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.8;
    transition: transform 0.5s ease;
}

.project-card:hover .project-pattern {
    transform: rotate(15deg) scale(1.1);
}

.project-img.Mocknest {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

.project-img.Mocknest .project-pattern {
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.4) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.3) 0%, transparent 30%);
    background-size: 100px 100px;
}

.project-img.Cygnus {
    background: linear-gradient(135deg, #2e1065, #4c1d95);
}

.project-img.Cygnus .project-pattern {
    background-image: 
        linear-gradient(45deg, rgba(168, 85, 247, 0.2) 25%, transparent 25%), 
        linear-gradient(-45deg, rgba(168, 85, 247, 0.2) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, rgba(168, 85, 247, 0.2) 75%), 
        linear-gradient(-45deg, transparent 75%, rgba(168, 85, 247, 0.2) 75%);
    background-size: 40px 40px;
    background-position: 0 0, 0 20px, 20px -20px, -20px 0px;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-small:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Contact Section */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.submit-btn {
    width: 100%;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    
    .title {
        font-size: 3rem;
    }
    
    .description {
        margin: 0 auto 2rem auto;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .nav-links {
        display: none; /* simple mobile fallback, real site would need hamburger */
    }
    
    .image-placeholder {
        width: 100%;
        max-width: 350px;
    }
}
