:root {
    --bg-color: #050505;
    --primary-color: #00f2fe;
    --secondary-color: #4facfe;
    --text-color: #e0e0e0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Typography & Globals */
a {
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s;
}

span {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 100px 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

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

/* Glassmorphism utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links li a {
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--text-color);
    transition: 0.3s;
}

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

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

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

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

.description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #a0a0a0;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
}

.primary-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.primary-btn:hover {
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.6);
    transform: scale(1.05);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    animation: pulse 3s infinite alternate;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--bg-color);
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 242, 254, 0.2); }
    100% { transform: scale(1.05); box-shadow: 0 0 40px rgba(0, 242, 254, 0.6); }
}

/* About */
.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat {
    text-align: center;
    padding: 40px 20px;
}

.stat h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.project-card p {
    color: #a0a0a0;
    margin-bottom: 25px;
    line-height: 1.6;
    min-height: 80px;
}

.project-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.project-link:hover {
    color: var(--secondary-color);
    gap: 15px;
}

/* Contact */
.contact-container {
    display: flex;
    justify-content: center;
}

.contact-info {
    width: 100%;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contact-item a {
    color: #a0a0a0;
    display: block;
    margin-bottom: 5px;
    word-break: break-all;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--glass-border);
    color: #777;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 150px;
    }
    
    .hero-content {
        margin-top: 40px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .title {
        font-size: 3rem;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
}
