/* Global Vars & Reset */
:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-primary: #00f2ff; /* Cyan */
    --accent-secondary: #7e22ce; /* Purple */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Background Effects */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -2;
    opacity: 0.15;
}

.bg-glow-1 {
    top: -100px;
    left: -100px;
    background: var(--accent-primary);
}

.bg-glow-2 {
    bottom: -100px;
    right: -100px;
    background: var(--accent-secondary);
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-accent {
    color: var(--accent-primary);
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-primary), #bd00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }

.section {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(0, 242, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: rgba(0, 242, 255, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

.glow-effect {
    animation: glow-pulse 3s infinite alternate;
}

@keyframes glow-pulse {
    0% { box-shadow: 0 0 10px rgba(0, 242, 255, 0.3); }
    100% { box-shadow: 0 0 20px rgba(0, 242, 255, 0.6); }
}

/* Glassmorphism */
.glass-nav {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Navbar */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.nav-links li a:hover, 
.nav-links li a.active {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: 50px 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.image-wrapper {
    position: relative;
    padding: 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
}

.dev-img {
    width: 100%;
    border-radius: 16px;
    display: block;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.tech-badge {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent-primary);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.badge-1 { top: 20px; left: -20px; animation: float 6s ease-in-out infinite; }
.badge-2 { bottom: 40px; right: -30px; animation: float 6s ease-in-out infinite 2s; }
.badge-3 { top: 50%; right: -40px; animation: float 5s ease-in-out infinite 1s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 50px auto 0;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.about-content strong {
    color: var(--accent-primary);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.skill-card {
    text-align: center;
    padding: 40px 20px;
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover::before {
    opacity: 1;
}

.project-content h3 {
    margin-bottom: 15px;
    color: #fff;
}

.project-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--accent-primary);
    border: 1px solid rgba(0, 242, 255, 0.2);
}

/* Services List */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.service-icon {
    font-size: 1.8rem;
    color: var(--accent-primary);
    background: rgba(0, 242, 255, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.service-info h3 {
    margin-bottom: 10px;
}

.service-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.service-benefit {
    margin-top: auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.service-benefit i {
    color: var(--accent-primary);
    margin-right: 5px;
}

/* Features (Why Choose Us) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-secondary);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(126, 34, 206, 0.5);
}

.feature-item h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-container {
    max-width: 800px;
}

.contact-card {
    padding: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-size: 0.9rem;
}

.status-success { color: #4ade80; }
.status-error { color: #f87171; }

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 50px 0 20px;
    margin-top: 50px;
    background: rgba(0, 0, 0, 0.8);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

/* Animations Helpers */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.delay-200 { animation-delay: 0.2s; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .tech-badge { display: none; } /* Simplify on mobile if crowded */
    
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 600px) {
    .services-list {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        margin: 10px 0 0 0;
    }
    
    .btn-secondary { margin-left: 0; }
    
    .hero-btns { flex-direction: column; }
}
