:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #ffffff;
    --text-color: #111827;
    --text-muted: #6b7280;
    --section-bg: #f9fafb;
    --dark-bg: #0f172a;
    --dark-text: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --container-width: 1200px;
    --header-height: 80px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

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

.text-center {
    text-align: center;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--section-bg);
    border-color: var(--text-color);
}

/* Header */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

header.scrolled {
    height: 70px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-links a.btn-primary {
    color: white;
}

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

/* Hero Section */
.hero {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

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

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-shape {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

/* Sections General */
section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

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

/* Services */
.services {
    background-color: var(--section-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

/* Portfolio */
.portfolio-embedded-container {
    display: flex;
    gap: 3rem;
    height: 650px;
    margin-top: 2rem;
}

.portfolio-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portfolio-nav-item {
    padding: 1.5rem;
    border-radius: 16px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-nav-item:hover {
    border-color: var(--primary-color);
    background-color: var(--section-bg);
}

.portfolio-nav-item.active {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.nav-item-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.portfolio-nav-item.active .nav-item-icon {
    background-color: var(--primary-color);
    color: white;
}

.nav-item-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.nav-item-text p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.portfolio-preview-pane {
    flex: 2;
    height: 100%;
}

.browser-mockup {
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

.browser-header {
    background-color: #f1f5f9;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
}

.browser-address-bar {
    flex: 1;
    background-color: white;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.browser-actions a {
    color: var(--text-muted);
    transition: var(--transition);
}

.browser-actions a:hover {
    color: var(--primary-color);
}

.browser-content {
    flex: 1;
    position: relative;
    background-color: white;
}

.browser-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 1;
}

.preview-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 0;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 1024px) {
    .portfolio-embedded-container {
        flex-direction: column;
        height: auto;
    }
    .portfolio-preview-pane {
        height: 500px;
    }
}

/* About */
.about-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.check-list {
    display: grid;
    gap: 1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.check-list i {
    color: var(--primary-color);
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-item {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact */
.contact-card {
    background-color: var(--dark-bg);
    color: var(--dark-text);
    border-radius: 24px;
    display: flex;
    overflow: hidden;
}

.contact-info {
    flex: 1;
    padding: 4rem;
    background-color: rgba(255, 255, 255, 0.03);
}

.contact-info h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

.detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.125rem;
}

.detail i {
    color: var(--primary-color);
}

.contact-form {
    flex: 1.2;
    padding: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-group select option {
    background-color: var(--dark-bg);
}

/* Footer */
footer {
    background-color: var(--section-bg);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-muted);
    max-width: 250px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-col h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.link-col ul {
    display: grid;
    gap: 0.75rem;
}

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

.link-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    font-size: 1.25rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero .fade-in {
    animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 { animation-delay: 0.1s; }
.hero p { animation-delay: 0.3s; }
.hero-btns { animation-delay: 0.5s; }

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .about-flex { flex-direction: column; }
    .contact-card { flex-direction: column; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2.75rem; }
    .hero p { font-size: 1.125rem; }
    .footer-top { flex-direction: column; gap: 3rem; }
    .footer-links { gap: 2rem; }
}
