@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --accent-primary: #0066cc;
    --accent-hover: #0050a3;
    --text-main: #111827;
    --text-muted: #4b5563;
    --nav-bg: rgba(255, 255, 255, 0.9);
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
    --radius-lg: 12px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
.logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Utils */
.container {
    padding: 0 5%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.logo {
    font-size: 1.25rem;
    color: var(--accent-primary);
    letter-spacing: -0.5px;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

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

/* Hero Section */
.hero {
    padding: 160px 5% 100px;
    background: radial-gradient(circle at top right, #e0f2fe 0%, #ffffff 50%);
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #1a365d;
    margin-bottom: 24px;
    line-height: 1.2;
}

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

/* Project Grid */
.projects-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 48px;
    text-align: center;
    color: #1a365d;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.card-img {
    height: 220px;
    width: 100%;
    background: #f1f5f9;
}

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

.card-body {
    padding: 32px;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: #1a365d;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* Detail Page */
.detail-view {
    padding: 140px 5% 80px;
}

.detail-img {
    width: 100%;
    max-height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 48px;
    box-shadow: var(--shadow-lg);
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.detail-content h2 {
    color: #1a365d;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-item i {
    color: var(--accent-primary);
    width: 18px;
}

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.btn-outline {
    border-color: var(--border-color);
    color: var(--text-muted);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 24px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 24px;
}

.modal {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal h2 {
    color: #1e293b;
    margin-bottom: 12px;
    text-align: center;
}

.modal p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    outline: none;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 80px 5% 40px;
}

footer h5 {
    color: #ffffff;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
}

.copyright {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 40px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #334155;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 32px;
    right: 32px;
    z-index: 3000;
}

.toast {
    background: #ffffff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    border-left: 4px solid var(--accent-primary);
    animation: slideIn 0.3s ease-out;
}

.toast.error {
    border-left-color: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 120px;
    }
}