/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.section {
    padding: 80px 0;
}

.center {
    text-align: center;
}

/* NAVIGATION */
.nav {
    border-bottom: 1px solid #1e293b;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: #94a3b8;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #38bdf8;
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    min-height: 80vh;
    padding: 60px 0;
}

.hero-left h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-left span {
    color: #38bdf8;
}

.hero-left p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 500px;
}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-img-wrapper img {
    width: 100%;
    max-width: 320px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 1px solid #1e293b;
}

/* CUSTOM ICON GENERATION (CSS) */
.card-image-container {
    position: relative;
    width: 100%;
}

.custom-icon {
    position: absolute;
    bottom: -20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 2px solid #1e293b;
}

/* Daraz Like CraftyBay Icon */
.craft-icon {
    background: linear-gradient(45deg, #f36f21, #f9a01b);
    font-family: serif;
    font-style: italic;
}

/* Task Manager Icon */
.task-icon {
    background: linear-gradient(45deg, #10b981, #34d399);
}

/* Quiz App Icon */
.quiz-icon {
    background: linear-gradient(45deg, #8b5cf6, #a78bfa);
}

/* BUTTONS */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary { background: #38bdf8; color: #0f172a; }
.btn-primary:hover { transform: translateY(-2px); background: #7dd3fc; }
.btn-secondary { border: 1px solid #38bdf8; color: #38bdf8; }
.btn-secondary:hover { background: rgba(56, 189, 248, 0.1); }

/* PROJECTS GRID */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px 25px;
}

.project-card {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.project-card:hover { transform: translateY(-10px); }

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.project-content {
    padding: 35px 20px 20px;
}

/* FEATURED PROJECT */
.featured-project {
    display: flex;
    gap: 50px;
    align-items: center;
    background: #1e293b50;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid #1e293b;
    margin-bottom: 60px;
}

.featured-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
}

.app-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.tech-tags span {
    padding: 5px 12px;
    background: #1e293b;
    border-radius: 100px;
    font-size: 0.75rem;
    color: #38bdf8;
    margin-right: 5px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero { flex-direction: column-reverse; text-align: center; }
    .hero-right { justify-content: center; }
    .featured-project { flex-direction: column; }
    .hero-left p { margin: 0 auto; }
}

@media (max-width: 600px) {
    .nav-links { display: none; }
    .projects-grid { grid-template-columns: 1fr; }
}

footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #1e293b;
    color: #64748b;
}