:root {
    --primary: #000000; /* Pure Black */
    --primary-foreground: #FFFDF0; /* Bright Cream */
    --background: #FFFDF0; /* Bright Cream */
    --secondary: #F8F5E1; /* Muted Cream */
    --secondary-foreground: #000000;
    --accent: #4B4B4B; /* Dark Gray */
    --accent-foreground: #FFFDF0;
    --muted: #666666; /* Medium Gray */
    --border: #E5E1C9;
    --radius: 24px;
    --container-width: 1200px;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--primary);
    line-height: 1.5;
    overflow-x: hidden;
}

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: #222;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

/* Header */
header {
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(to right, #000, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    background: var(--secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    transition: all 0.4s ease;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero .badge i {
    color: var(--accent);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 span {
    color: var(--muted);
}

.hero p {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Portfolio Slider */
.portfolio-slider {
    padding: 2rem 0;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 2rem;
    animation: scroll 40s linear infinite;
    width: max-content;
}

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

.portfolio-card {
    width: 400px;
    height: 300px;
    background: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: scale(1.02);
}

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

/* Feature Grid */
.section {
    padding: 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
}

.section-header h2 {
    font-size: 4rem;
    line-height: 1;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--muted);
}

.stats {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 2rem;
}

.stat-item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: var(--secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.code-snippet {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.8rem;
    border: 1px solid var(--border);
}

/* Tutorial Section */
.tutorial-section {
    text-align: center;
}

.video-container {
    max-width: 900px;
    margin: 4rem auto 0;
    aspect-ratio: 16/9;
    background: var(--secondary);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: #ff0000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.play-btn:hover {
    transform: scale(1.1);
}

/* Bundles Section */
.bundles-section {
    text-align: center;
    background: #fafafa;
}

.bundles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.bundle-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: left;
    position: relative;
}

.bundle-card .top-btns {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.view-link {
    font-size: 0.8rem;
    font-weight: 600;
}

.buy-badge {
    background: #000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
}

.bundle-icon-main {
    width: 120px;
    height: 120px;
    background: #f0f0ff;
    border-radius: 50%;
    margin: 0 auto 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
}

.bundle-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bundle-card p {
    color: var(--muted);
}

.vote-btn {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    background: #000;
    color: #fff;
    border-top: 1px solid #222;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-text {
    color: #a1a1aa;
    max-width: 300px;
    margin-bottom: 2rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #fff;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #a1a1aa;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #71717a;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons i {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.social-icons i:hover {
    color: #fff;
}

/* New Section Components */
.exp-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.exp-card:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.exp-title h3 {
    font-size: 1.25rem;
    color: var(--primary);
}

.exp-title p {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.exp-date {
    font-size: 0.85rem;
    color: var(--muted);
    background: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
}

.exp-content ul {
    list-style: disc;
    margin-left: 1.25rem;
    color: var(--muted);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    border-radius: 99px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border);
}

.award-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.award-icon {
    width: 50px;
    height: 50px;
    background: #fff9e6;
    color: #f59e0b;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cert-card {
    padding: 1.5rem;
    background: var(--secondary);
    border-radius: 16px;
    display: flex;
    gap: 1rem;
}

.cert-card i {
    color: var(--accent);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-card {
    aspect-ratio: 4/3;
    background: var(--secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.gallery-card .img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f4f4f5, #e4e4e7);
    color: var(--muted);
}

.gallery-card .img-placeholder i {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

.gallery-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .overlay {
    opacity: 1;
}

.gallery-card .overlay h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.gallery-card .overlay p {
    font-size: 0.8rem;
    opacity: 0.8;
}

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

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .section-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }

    .features-grid, .bundles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    header {
        height: 70px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        border-radius: 0;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        z-index: 1000;
        padding: 4rem 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .features-grid, .bundles-grid, .gallery-grid, .awards-grid, .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .section {
        padding: 4rem 0;
    }

    .portfolio-card {
        width: 300px;
        height: 220px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .exp-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .exp-date {
        align-self: flex-start;
    }
}
