@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: rgba(13, 17, 31, 0.95);
    --bg-card: rgba(19, 27, 46, 0.7);
    --color-primary: #a88bfa;
    --color-secondary: #22d3ee;
    --color-text: #e2e8f0;
    --color-text-secondary: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header */
}

html:focus-within {
    scroll-behavior: smooth;
}

/* Smooth scrolling for reduced motion users */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    background: linear-gradient(135deg, rgba(13, 17, 31, 0.95) 0%, rgba(19, 27, 46, 0.95) 100%);
    color: var(--color-text);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 139, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* Header */
header {
    background-color: rgba(13, 17, 31, 0.8);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 1.5rem;
    font-weight: 700;
}

.logo a span {
    color: var(--color-primary);
}

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

nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--color-secondary);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50%;
    height: 3px;
    background-color: var(--color-primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    background-color: var(--color-secondary);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--bg-dark);
}

/* Glass effect cards */
.glass-card {
    background: var(--bg-card);
    border-radius: 1.2rem;
    box-shadow: 0 6px 24px rgba(168,139,250,0.08);
    padding: 2.2rem 2rem 1.5rem 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Utility classes */
.white-bold {
    color: #e2e8f0;
    font-weight: 800;
}

.gradient-blue {
    font-weight: 800;
    background: linear-gradient(90deg, #3b82f6 30%, #6366f1 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-pink {
    font-weight: 700;
    background: linear-gradient(90deg, #e879f9 10%, #f472b6 60%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 2.1rem;
}

.profile-image {
    border-radius: 10%;
    max-width: 100%;
    height: auto;
}

.inline-block-middle {
    display: inline-block;
    vertical-align: middle;
}

.icon-margin-right {
    margin-right: 0.5rem;
}

/* Footer */
footer {
    background: linear-gradient(180deg, rgba(13, 17, 31, 0.8) 0%, rgba(19, 27, 46, 0.8) 100%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0;
    text-align: center;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(168, 139, 250, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background-color: var(--color-secondary);
    color: var(--bg-dark);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(34, 211, 238, 0.2);
}

/* Media Queries */
@media screen and (max-width: 992px) {
    .hero-content, .about-content, .contact-container {
        grid-template-columns: 1fr;
        display: grid;
    }
    
    .hero-image {
        justify-content: center;
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    nav ul {
        gap: 1rem;
        flex-direction: column;
        background: var(--bg-card);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100vw;
        display: none;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    section {
        padding: 2.5rem 0;
    }
}

@media screen and (max-width: 576px) {
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }
    
    .container {
        padding: 0 0.3rem;
    }
    
    .btn, .btn-outline {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
    
    .back-to-top {
        width: 38px;
        height: 38px;
        bottom: 12px;
        left: 12px;
    }
}

@media screen and (max-width: 400px) {
    .section-title {
        font-size: 1.1rem;
    }
}
