:root {
    --bg-color: #050505;
    --surface-color: #0f0f10;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --font-family: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

span {
    color: var(--accent-color);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 5%;
    background: rgba(5, 5, 5, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.logo-icon i {
    color: white;
    width: 22px;
    height: 22px;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
    transition: var(--transition);
}

.logo:hover .logo-icon {
    transform: rotate(10deg) scale(1.1);
}

.logo:hover .logo-icon::after {
    inset: -5px;
    opacity: 0.5;
    filter: blur(8px);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.logo-text span {
    background: linear-gradient(to right, var(--accent-color), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 300;
    margin-left: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

nav a:hover {
    color: var(--text-main);
}

/* Buttons */
.btn-primary {
    padding: 0.6rem 1.5rem;
    background: var(--accent-color);
    color: white !important;
    border-radius: 8px;
}

.btn-main {
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
    display: inline-block;
}

.btn-main:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    padding: 1rem 2.5rem;
    background: var(--glass);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    transition: var(--transition);
    display: inline-block;
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-visual {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 80%;
    opacity: 0.6;
    -webkit-mask-image: linear-gradient(to left, black 60%, transparent);
    mask-image: linear-gradient(to left, black 60%, transparent);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* Flagship Section */
.flagship {
    padding: 10rem 10%;
    background-color: var(--surface-color);
}

.section-tag {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.flagship h2 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
}

.flagship-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.flagship-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.flagship-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #e2e8f0;
}

.features i {
    color: var(--accent-color);
    width: 20px;
}

.flagship-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
    display: block;
}

.project-link-wrapper {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
}

.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.project-link-wrapper:hover .hover-overlay {
    opacity: 1;
}

.hover-overlay span {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Projects Grid */
.projects {
    padding: 10rem 10%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--glass);
    border: 1px solid var(--border-glass);
    padding: 3rem;
    border-radius: 24px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.card-icon i {
    color: white;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.card-tags {
    display: flex;
    gap: 0.8rem;
}

.card-tags span {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    color: var(--text-muted);
}

/* CTA Section */
.cta {
    padding: 8rem 10%;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-color), #0f172a);
}

.cta-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.cta-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

@media (max-width: 600px) {
    .cta-btns {
        flex-direction: column;
    }

    .btn-secondary {
        margin-left: 0;
        width: 100%;
    }
}

/* Footer */
footer {
    padding: 4rem 10%;
    border-top: 1px solid var(--border-glass);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-muted);
    transition: var(--transition);
}

.socials a:hover {
    color: var(--accent-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .flagship-container {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-init.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero .reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: revealUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1.reveal {
    animation-delay: 0.2s;
}

.hero p.reveal {
    animation-delay: 0.4s;
}

.hero .hero-btns.reveal {
    animation-delay: 0.6s;
}

@keyframes revealUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}