:root {
    --primary: #00ffff; /* Neon Cyan */
    --secondary: #ff00ff; /* Neon Magenta */
    --dark: #0a0e14;
    --darker: #05070a;
    --light: #ffffff;
    --gray: #a0aec0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --accent-green: #00ff99; /* Neon Green */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--darker);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.01em;
}

h1, h2, h3, h4, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* Glassmorphism Utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Particles Layer */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: 0.4s;
}

header.scrolled {
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    font-family: var(--font-heading);
}

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

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    transition: 0.3s;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--darker);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    right: 0 !important;
    visibility: visible;
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.mobile-links a {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(79, 172, 254, 0.1);
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(79, 172, 254, 0.2);
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, var(--primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-green);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.3);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-outline:hover {
    background: var(--glass);
    transform: translateY(-3px);
}

/* Stats Cards */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    padding: 24px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    display: block;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 992px) {
    .nav-links, .header-actions .btn { display: none; }
    .menu-toggle { display: flex; }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }
    .hero-stats { 
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .hero h1 { font-size: 2.5rem; }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.about-text h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

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

.about-features {
    margin-bottom: 25px;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-weight: 500;
}

.about-features ion-icon {
    color: var(--accent-green);
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-text { text-align: center; }
    .about-features { display: inline-block; text-align: left; }
    .about-text .btn-group { justify-content: center; }
}

/* Section Common */
section {
    padding: 80px 0;
    scroll-margin-top: 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    padding: 40px;
    transition: 0.4s;
    height: 100%;
}

.service-card:hover {
    border-color: var(--secondary);
    transform: translateY(-10px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--secondary);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: 0.3s;
}

.skill-tag:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.skill-card {
    padding: 20px;
    text-align: center;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
}

.skill-card ion-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

/* Tech Stack Grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.tech-item {
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.tech-item ion-icon, .tech-item svg {
    font-size: 40px;
    color: var(--text-muted);
    transition: 0.3s;
    opacity: 0.7;
}

.tech-item:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 255, 255, 0.15);
}

.tech-item:hover ion-icon, .tech-item:hover svg {
    color: var(--primary);
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--primary));
}

@media (max-width: 992px) {
    .tech-stack-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .tech-stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Skills Marquee/Grid */
.skills-section {
    background: rgba(255, 255, 255, 0.02);
}

.skills-wrapper {
    display: flex;
    overflow: hidden;
    padding: 40px 0;
    position: relative;
}

.skills-scroll {
    display: flex;
    gap: 50px;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.skill-item ion-icon {
    color: var(--secondary);
}

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

.portfolio-item {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--glass-border);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.4) 50%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: 0.4s;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-top: 15px;
    margin-bottom: 8px;
}

.view-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
    border-radius: 20px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 2px;
}

.author-info p {
    font-size: 0.75rem;
    color: var(--primary);
    margin: 0;
}

.process-section {
    background: var(--dark);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 4px auto 10px;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
}

.process-step h3 {
    margin-bottom: 10px;
}

.process-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    position: relative;
    text-align: center;
}

.contact-card {
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 5px;
}

.form-group input, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-card { padding: 40px 20px; }
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.method {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.method ion-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .contact-card { padding: 40px 20px; }
    .contact-methods { flex-direction: column; gap: 15px; }
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--text-muted);
    max-width: 400px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 12px;
}

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

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}



/* Blog & Post Specific Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    transition: 0.3s;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.blog-card h3 {
    transition: 0.3s;
}

.blog-card:hover h3 {
    color: var(--primary);
}

.post-content {
    color: #ddd;
    line-height: 1.8;
}

.post-content h2, .post-content h3 {
    color: #fff;
    margin: 30px 0 15px;
}

.comment-item {
    margin-bottom: 20px;
}

.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(0, 230, 118, 0.1);
    color: #00e676;
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.alert-error {
    background: rgba(255, 82, 82, 0.1);
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.2);
}

/* Light Theme for Blog */
body.blog-light {
    background-color: #ffffff;
    color: #333;
}

.blog-light :root {
    --text-main: #222;
    --text-muted: #666;
    --glass: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
}

.blog-light header {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.blog-light header.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.blog-light .logo, .blog-light .nav-links a {
    color: #222 !important;
}

.blog-light .logo span {
    background: linear-gradient(90deg, #0088ff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
}

.blog-light .btn-outline {
    border-color: #ddd;
    color: #333;
}

.blog-light .btn-outline:hover {
    background: #f5f5f5;
}

.blog-light .section-title h2, 
.blog-light .blog-card h3, 
.blog-light .post-header h1, 
.blog-light .post-content {
    color: #111 !important;
}

.blog-light .glass {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.blog-light .mobile-nav {
    background: #ffffff;
}

.blog-light .close-menu {
    color: #222;
}

.blog-light .mobile-links a {
    color: #222;
}

.blog-light .menu-toggle .bar {
    background-color: #222;
}

.blog-light .post-content {
    background: #fff !important;
    color: #444 !important;
}

.blog-light .badge {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.blog-light footer {
    background: #f9f9f9;
    color: #666;
    border-top: 1px solid #eee;
}
