* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f0f23;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
/* Navbar - Perfect Styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.98) 0%, rgba(30, 27, 75, 0.98) 100%);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(79, 70, 229, 0.3);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    cursor: pointer;
    user-select: none;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    flex-shrink: 0;
}

.logo {
    cursor: pointer;
    font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-links a:hover {
    color: white;
    transform: translateY(-1px);
}

.nav-links a:hover::before {
    opacity: 0.2;
}

/* Tablet/Desktop Nav */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
}


/* Hero Section */
.hero {
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0f0f23 0%, #1e1b4b 50%, #0f0f23 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 1rem;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(79, 70, 229, 0.4);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

.hero-content {
    text-align: center;
    max-width: 90vw;
    width: 100%;
    padding: 0 1rem;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.4);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    justify-content: center;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(1.8rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #f8fafc, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: #94a3b8;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: row;           /* Side-by-side */
    gap: 1rem;                     /* Small gap */
    justify-content: center;       /* Perfect center alignment */
    align-items: center;           /* Vertical center */
    width: fit-content;            /* Shrink wrap content */
    margin: 0 auto;                /* Center the container */
    padding: 0 1rem;               /* Touch padding */
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.95rem, 2.5vw, 1rem);
    white-space: nowrap;
    flex-shrink: 0;                /* No shrinking */
}

.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
    background: rgba(30, 27, 75, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(79, 70, 229, 0.4);
}

.btn-secondary:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: #4f46e5;
}

/* Mobile - Still centered side-by-side */
@media (max-width: 480px) {
    .hero-buttons {
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.9rem 1.6rem;
        min-height: 48px;  /* Touch target */
    }
}

/* Tablet/Desktop */
@media (min-width: 768px) {
    .hero-buttons {
        gap: 1.25rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 1.1rem 2.5rem;
    }
}


/* Common Sections */
.projects, .contribute {
    padding: 4rem 0;
    background: #0f0f23;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #94a3b8;
    margin-bottom: 4rem;
}

/* Search Filter */
.search-filter {
    max-width: 100%;
    margin: 0 auto 2.5rem;
    display: flex;
    justify-content: center;
}

#search {
    width: 100%;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(79, 70, 229, 0.3);
    border-radius: 12px;
    background: rgba(30, 27, 75, 0.9);
    color: #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#search::placeholder {
    color: #64748b;
}

#search:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 100%;
}

.project-card {
    background: rgba(30, 27, 75, 0.9);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.4), rgba(124, 58, 237, 0.4));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: #4f46e5;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card h3 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    margin-bottom: 0.8rem;
    color: #f8fafc;
}

.project-card p {
    color: #cbd5e1;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech span {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.project-links a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.2rem;
    border: 1px solid rgba(79, 70, 229, 0.4);
    border-radius: 8px;
    transition: all 0.3s;
    text-align: center;
}

.project-links a:hover {
    background: #4f46e5;
    color: white;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.step-card {
    background: rgba(30, 27, 75, 0.6);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(79, 70, 229, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: #4f46e5;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #f8fafc;
}

/* Guidelines */
.guidelines {
    background: rgba(30, 27, 75, 0.6);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 24px;
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.guidelines::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #10b981, #4f46e5);
    background-size: 200% 100%;
    animation: guidelineShine 3s ease-in-out infinite;
}

@keyframes guidelineShine {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: 0 0; }
}

.guidelines h3 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: #f8fafc;
    text-align: center;
    position: relative;
}

.guidelines h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}

.guidelines-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
}

.guideline-item {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 350px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.guideline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
}

.guideline-item:hover {
    transform: translateY(-10px);
    border-color: #10b981;
    box-shadow: 0 25px 50px rgba(16, 185, 129, 0.2);
}

.guideline-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
    flex-shrink: 0;
}

.guideline-item p {
    color: #e2e8f0;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 0;
    text-align: center;
}

/* Footer */
.footer {
    background: #0a0a1a;
    border-top: 1px solid rgba(79, 70, 229, 0.2);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
    text-align: center;
}

.footer-logo h3 {
    font-size: 1.5rem;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #4f46e5;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(79, 70, 229, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
======================================= */

/* Tablet (768px+) */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1.5rem;
    }
    
    .btn-primary, .btn-secondary {
        width: auto;
        max-width: none;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    
    .project-links {
        flex-direction: row;
    }
    
    .steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
        gap: 2.5rem;
    }
    
    .guidelines-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .guidelines {
        padding: 5rem 4rem;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Small Mobile Fixes (480px and below) */
@media (max-width: 480px) {
    .hero {
        padding: 0.5rem;
    }
    
    .hero-content {
        padding: 0 0.5rem;
        max-width: 95vw;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .guidelines {
        padding: 2.5rem 1rem;
        margin: 0 1rem;
        border-radius: 20px;
    }
    
    .guideline-item {
        padding: 2rem 1.5rem;
    }
    
    .step-card {
        padding: 2rem;
    }
}
