:root {
    --bg-dark: #050914;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-glow: rgba(0, 242, 254, 0.4);
    --blue-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
}

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

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

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

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: rgba(0, 242, 254, 0.2);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: rgba(79, 172, 254, 0.15);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 9, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 5rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #a8c1ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role {
    font-size: 1.8rem;
    font-weight: 400;
    color: #4facfe;
    margin-bottom: 1.5rem;
}

.description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.primary-btn {
    background: var(--blue-gradient);
    color: #050914;
    box-shadow: 0 10px 20px rgba(0, 242, 254, 0.2);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 242, 254, 0.4);
}

.outline-btn {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--card-border);
}

.outline-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Visual Abstract Element */
.glass-sphere {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.2), inset 0 0 40px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: hover 6s infinite ease-in-out;
}

@keyframes hover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Projects */
.projects {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 600;
}

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

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 242, 254, 0.1);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--card-border);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.glass-card:hover .card-image {
    opacity: 1;
}

.bg-ocean { background: radial-gradient(circle at center, #1a2a6c, #112); }
.bg-robotics { background: radial-gradient(circle at center, #004e92, #000428); }
.bg-sdr { background: radial-gradient(circle at center, #0f2027, #203a43); }

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

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

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

.tags span {
    background: rgba(0, 242, 254, 0.1);
    color: #4facfe;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--card-border);
    margin-top: 4rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsiveness */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding-top: 8rem;
    }
    
    .hero-visual {
        margin-top: 4rem;
    }
    
    .glass-sphere {
        width: 250px;
        height: 250px;
    }
    
    .title {
        font-size: 3rem;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
}

/* Additional Styles for About Section */
.about {
    padding: 6rem 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 3rem;
}

.about-image {
    flex-shrink: 0;
}

.avatar-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--card-border);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
}

.bg-post {
    background: radial-gradient(circle at center, #6b21a8, #3b0764);
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}
