/* Modern Space Theme & Reset */
:root {
    --primary-color: #00d2ff; /* Neon Cyan */
    --secondary-color: #ff2e63; /* Neon Pink/Red */
    --accent-color: #7209b7; /* Purple */
    --dark-bg: #0b0d17; /* Deep Space */
    --darker-bg: #05060a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-color: #e0e6ed;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --nav-bg: rgba(11, 13, 23, 0.85);
    --shadow-glow: 0 0 20px rgba(0, 210, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(114, 9, 183, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 210, 255, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Starry Background Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 3px),
        radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px),
        radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 3px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
    opacity: 0.3;
    z-index: -1;
    animation: starsMove 100s linear infinite;
}

@keyframes starsMove {
    from { background-position: 0 0, 40px 60px, 130px 270px; }
    to { background-position: 550px 550px, 390px 410px, 380px 520px; }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #00d2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-top: 30px;
    text-align: center;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-color);
}

p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Header & Nav */
header {
    background-color: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Audiowide', cursive;
    color: var(--white);
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--primary-color);
}

nav a:hover, nav a.active {
    color: var(--white);
}

nav a:hover::after, nav a.active::after {
    width: 100%;
}

.download-btn {
    background: linear-gradient(45deg, var(--secondary-color), #ff5722);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 46, 99, 0.4);
    border: none;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 46, 99, 0.6);
}

.download-btn::after {
    display: none;
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    max-width: 450px;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

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

.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
}

.features h2 {
    margin-bottom: 60px;
    display: block;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 210, 255, 0.1);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, rgba(0, 210, 255, 0.05));
    text-align: center;
}

.download h2 {
    margin-bottom: 20px;
}

.download p {
    margin-bottom: 40px;
    font-size: 1.3rem;
}

.download-badge {
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.download-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.2);
}

.download-badge img {
    height: 80px;
}

/* Page Content (Privacy, About) */
.page-content {
    padding: 80px 0;
    min-height: 60vh;
}

.page-content h1 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 3rem;
}

.policy-content, .developer-bio {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.policy-content h2, .developer-bio h3 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: left;
    font-size: 1.8rem;
}

.policy-content h2::after, .developer-bio h3::after {
    display: none;
}

.policy-content ul, .developer-bio ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.policy-content li, .developer-bio li {
    margin-bottom: 10px;
    color: var(--text-muted);
}

/* About Developer Page */
.developer-profile {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
    align-items: center;
}

.profile-image {
    flex: 0 0 300px;
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    z-index: -1;
    filter: blur(15px);
    opacity: 0.5;
}

.profile-image img {
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    text-align: left;
    margin-top: 0;
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-info h2::after {
    display: none;
}

.tagline {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 30px;
    border-left: 3px solid var(--secondary-color);
    padding-left: 15px;
}

.education h3, .social-links h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.social-links ul {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-left: 0;
}

.social-links a {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
}

.project-card h4 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.companies {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.company {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Audiowide', cursive;
    font-size: 1.8rem;
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.footer-links ul {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.footer-social a:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--primary-color);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
        padding-top: 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-image {
        max-width: 350px;
        margin-top: 30px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .developer-profile {
        flex-direction: column;
        text-align: center;
    }

    .profile-info h2 {
        text-align: center;
    }

    .tagline {
        border-left: none;
        border-bottom: 3px solid var(--secondary-color);
        padding-left: 0;
        padding-bottom: 15px;
        display: inline-block;
    }
    
    .social-links ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(11, 13, 23, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
        clip-path: circle(0% at 100% 0);
        transition: all 0.5s ease-in-out;
        border-bottom: 1px solid var(--border-color);
    }

    nav.active {
        clip-path: circle(150% at 100% 0);
    }
    
    nav ul {
        flex-direction: column;
        gap: 20px;
    }

    nav a {
        font-size: 1.2rem;
        display: block;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}