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

:root {
    --bg-black: #000000;
    --bg-dark: #0a0a0a;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --accent-blue: #1e90ff;
    --accent-blue-hover: #1e7fd9;
    --border-dark: #1a1a1a;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--bg-black);
    border-bottom: 1px solid var(--border-dark);
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: 50px;
    object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid dodgerblue;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-blue);
}

.nav-cta {
    color: var(--accent-blue) !important;
    border: 1px solid var(--accent-blue);
    padding: 8px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: var(--accent-blue);
    color: var(--bg-black) !important;
}

/* Hero Section */
.hero {
    padding-top: 70px;
    background-color: var(--bg-black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.hero-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-logo {
    width: 100%;
    height: auto;
    max-height: 50vh;
    margin-bottom: 10px;
    object-fit: contain;
    object-position: center top;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: 3px solid #fff;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--bg-black);
    border: 3px solid #fff;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    border-color: var(--accent-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.3);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-blue);
    border: 3px solid #fff;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent-blue);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: whitesmoke;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.3);
}

.btn-secondary:hover::before {
    left: 100%;
}

.hero-arrow {
    font-size: 2rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    min-height: 100vh;
    padding: 10vh 40px;
    background-color: var(--bg-black);
    border-top: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.feature-card {
    padding: 40px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.feature-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-5px);
    background-color: rgba(30, 144, 255, 0.05);
}

.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--accent-blue);
    color: var(--bg-black);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Code Examples */
.code-examples {
    min-height: 100vh;
    padding: 10vh 40px;
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.code-container {
    max-width: 1200px;
    margin: 0 auto;
}

.code-examples h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 700;
}

.code-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
}

.code-card {
    background-color: var(--bg-black);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

.code-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.1);
}

.code-header {
    background-color: rgba(30, 144, 255, 0.1);
    color: var(--accent-blue);
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-dark);
}

.code-card pre {
    padding: 20px;
    overflow-x: auto;
    margin: 0;
}

.code-card code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-white);
    line-height: 1.6;
}

/* Details Section (Why iCodeWin) */
.details {
    min-height: 100vh;
    padding: 10vh 40px;
    background-color: var(--bg-black);
    border-top: 1px solid var(--border-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.details-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 700;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-item {
    padding: 30px;
    background-color: var(--bg-dark);
    border-left: 3px solid var(--accent-blue);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateX(10px);
    background-color: rgba(30, 144, 255, 0.05);
}

.detail-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.detail-item p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* CTA Section with Integrated Footer */
.cta {
    min-height: 100vh;
    padding: 10vh 40px 0; /* No bottom padding to let footer sit at bottom */
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-dark);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push footer to bottom */
}

.cta-container {
    max-width: 800px;
    margin: auto auto; /* Center vertically in the remaining space */
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background-color: var(--bg-black);
    border-top: 1px solid var(--border-dark);
    padding: 40px;
    width: 100%;
    text-align: left;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .features-grid, .code-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}
