/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #0f172a; /* Dark premium background */
    color: #f1f5f9;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #cbd5e1;
}

.nav-links a:hover {
    color: #fff;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.subtitle {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(to right, #3b82f6, #d946ef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #3b82f6, #a855f7);
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 5s infinite;
}

.floating-card {
    position: absolute;
    padding: 1rem 2rem;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.c1 { top: 20%; left: 10%; animation: float 6s ease-in-out infinite; }
.c2 { top: 50%; right: 10%; animation: float 7s ease-in-out infinite 1s; }
.c3 { bottom: 20%; left: 20%; animation: float 5s ease-in-out infinite 0.5s; }

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
    100% { opacity: 0.3; transform: scale(1); }
}

/* Portfolio Section */
.portfolio-section {
    padding: 6rem 10%;
    background: #0f172a;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #94a3b8;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.card-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
}

.gradient-1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.gradient-2 { background: linear-gradient(135deg, #10b981, #3b82f6); }
.gradient-3 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    margin-bottom: 0.5rem;
}

.card-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-info a {
    color: #3b82f6;
    font-weight: 600;
    font-size: 0.9rem;
}

/* About & Contact */
.about-section, .contact-section {
    padding: 6rem 10%;
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 3rem;
    background: linear-gradient(to right, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.big-btn {
    display: inline-block;
    margin-top: 2rem;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
}

/* Footer */
footer {
    padding: 2rem 10%;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: #020617;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-logo {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a:hover {
    color: #3b82f6;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar { padding: 1rem 5%; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0f172a;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
        height: auto;
    }

    .hero h1 { font-size: 2.5rem; }
    
    .cta-group {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 4rem;
        width: 100%;
        height: 300px;
    }
    
    .stats { gap: 2rem; flex-direction: column; }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}
