/* Base and Variables */
:root {
    --bg-color: #050810;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --accent-tertiary: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --nav-height: 80px;
    --transition-standard: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-color);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.highlight {
    color: var(--accent-primary);
}

.mt-l { margin-top: 2rem; }
.mt-xl { margin-top: 3rem; }
.p-xl { padding: 3rem; }

/* Background Animated Gradients */
.bg-gradient-1, .bg-gradient-2 {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate;
}

.bg-gradient-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
}

.bg-gradient-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.3) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: var(--transition-standard);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 240, 255, 0.15);
}

.glass-card:hover::before {
    left: 100%;
    transition: 0.7s;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-standard);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-primary);
    transition: var(--transition-standard);
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.section {
    padding: 60px 0;
    scroll-margin-top: var(--nav-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    display: inline-block;
}

/* Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

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

.greeting {
    color: var(--accent-primary);
    font-family: monospace;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.hero-content .name {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    height: 2.5rem;
}

.typing-text {
    color: var(--accent-primary);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

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

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-standard);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: var(--glass-hover);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.profile-frame {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition-standard);
    font-weight: 500;
}

.section-link:hover {
    color: var(--accent-primary);
}

.glow-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-secondary), transparent 60%);
    opacity: 0.5;
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.6; }
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    color: var(--glass-border);
    animation: float 6s ease-in-out infinite;
    background: var(--glass-bg);
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: var(--transition-standard);
}

.floating-icon:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.icon-1 { top: 10%; left: 20%; animation-delay: 0s; }
.icon-2 { top: 50%; right: 10%; animation-delay: -2s; }
.icon-3 { bottom: 10%; left: 30%; animation-delay: -4s; }

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

/* About Section */
.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}
.about-content p:last-child {
    margin-bottom: 0;
}

/* Better Skills Section UI */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.premium-skill-card {
    background: #0B0F19;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.premium-skill-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.premium-skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.2);
}

.premium-skill-card:hover::before {
    opacity: 0.3;
    transform: scale(1.5);
}

.skill-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(0, 240, 255, 0.05);
    color: var(--accent-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: var(--transition-standard);
}

.premium-skill-card:hover .skill-icon-wrapper {
    background: rgba(0, 240, 255, 0.15);
    border-color: rgba(0, 240, 255, 0.3);
    transform: scale(1.05) rotate(5deg);
}

.premium-skill-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    color: #fff;
    position: relative;
    z-index: 1;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: all 0.3s ease;
    cursor: default;
}

.premium-skill-card:hover .skill-tag {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.skill-tag:hover {
    background: rgba(0, 240, 255, 0.1) !important;
    border-color: rgba(0, 240, 255, 0.4) !important;
    color: var(--accent-primary) !important;
    transform: translateY(-2px);
}

/* Experience Section */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-color);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-date {
    font-family: monospace;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    display: block;
    height: 100%;
}

.card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.read-more {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-standard);
}

.project-card:hover .read-more {
    gap: 0.8rem;
}

.cert-tags {
    gap: 1rem;
}

.tag.cert {
    padding: 0.8rem 1.2rem;
    background: rgba(0, 240, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.2);
    color: var(--text-primary);
}

.tag.pursuing {
    background: rgba(112, 0, 255, 0.05);
    border-color: rgba(112, 0, 255, 0.2);
}

/* Contact */
.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    transition: var(--transition-standard);
    font-weight: 500;
}

.social-btn:hover {
    background: var(--glass-hover);
    transform: translateY(-3px);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: calc(var(--nav-height) + 2rem);
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .tagline {
        margin: 0 auto 2.5rem auto;
    }
    
    .hero-image {
        margin-top: 3rem;
        height: 300px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile handling */
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(5, 8, 16, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .hero-content .name { font-size: 3rem; }
    .hero-content .title { font-size: 1.5rem; }
    .p-xl { padding: 1.5rem; }
}
