/* Modern Portfolio with AI Assistant */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #22d3ee;
    --accent: #f59e0b;
    --bg: #0f172a;
    --bg-light: #1e293b;
    --bg-card: #334155;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: #475569;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    --radius: 12px;
    --radius-sm: 6px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo__icon {
    font-size: 1.5rem;
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav__menu a:hover {
    color: var(--text);
}

.nav__actions {
    display: flex;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn--secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn--secondary:hover {
    background: var(--border);
}

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

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

.btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    gap: 4rem;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero__stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

/* Hero Photo */
.hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__photo-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    border: 4px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.hero__photo-overlay {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--success);
    white-space: nowrap;
}

.hero__photo-badge {
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero__photo-badge i {
    color: var(--success);
}

/* Sections */
.section {
    padding: 6rem 2rem;
}

.section--alt {
    background: var(--bg-light);
}

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

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

/* About */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

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

.skills h3 {
    margin-bottom: 1rem;
}

.skills__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill {
    background: var(--bg-card);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.about__features {
    display: grid;
    gap: 1.5rem;
}

.feature {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.feature__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature h4 {
    margin-bottom: 0.5rem;
}

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

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

.service__card {
    background: var(--bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service__card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.service__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service__card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.service__card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.service__list {
    list-style: none;
    font-size: 0.875rem;
}

.service__list li {
    padding: 0.25rem 0;
    color: var(--text-muted);
}

.service__list li::before {
    content: "✓ ";
    color: var(--success);
}

/* Contact */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact__form {
    display: grid;
    gap: 1.5rem;
}

.form__group {
    display: grid;
    gap: 0.5rem;
}

.form__group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form__group input,
.form__group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form__group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__info {
    display: grid;
    gap: 1.5rem;
    align-content: start;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.contact__icon {
    font-size: 2rem;
}

.contact__item h4 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

/* Chat Widget */
.chat__widget {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 380px;
    height: 500px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
}

.chat__widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat__header {
    background: var(--bg-light);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
}

.chat__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.chat__controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat__mode {
    background: var(--primary);
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.chat__mode:hover {
    background: var(--primary-dark);
}

.chat__close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: var(--transition);
}

.chat__close:hover {
    color: var(--text);
}

.chat__body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.chat__welcome {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

.chat__welcome p {
    margin-bottom: 0.5rem;
}

.chat__welcome ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.chat__welcome li {
    margin: 0.25rem 0;
}

.chat__message {
    margin-bottom: 1rem;
    max-width: 85%;
}

.chat__message--user {
    margin-left: auto;
}

.chat__message--user .message__bubble {
    background: var(--primary);
    color: white;
}

.chat__footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.chat__typing {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0;
}

.chat__typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing 1.4s infinite ease-in-out both;
}

.chat__typing span:nth-child(1) { animation-delay: -0.32s; }
.chat__typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.chat__form {
    display: flex;
    gap: 0.5rem;
}

.chat__form input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.875rem;
}

.chat__form input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat__send {
    background: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat__send:hover {
    background: var(--primary-dark);
}

/* Chat Toggle Button */
.chat__toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat__toggle:hover {
    transform: scale(1.1);
}

.chat__toggle.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Toast Notifications */
.toast__container {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--success);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast--error {
    border-left-color: var(--error);
}

.toast--warning {
    border-left-color: var(--warning);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 6rem;
    }
    
    .hero__stats {
        justify-content: center;
    }
    
    .about__grid,
    .services__grid,
    .contact__grid {
        grid-template-columns: 1fr;
    }
    
    .nav__menu {
        display: none;
    }
    
    .chat__widget {
        right: 1rem;
        left: 1rem;
        width: auto;
    }
}

@media (max-width: 640px) {
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__photo-container {
        max-width: 300px;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .chat__widget {
        bottom: 80px;
        height: 60vh;
    }
    
    .chat__toggle {
        bottom: 1rem;
        right: 1rem;
    }
    
    .portfolio__image {
        height: 120px;
        font-size: 2rem;
    }
    
    .portfolio__grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Section */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio__card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary);
}

.portfolio__image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.portfolio__content {
    padding: 1.5rem;
}

.portfolio__content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.portfolio__content p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.portfolio__link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.portfolio__link:hover {
    color: var(--secondary);
}

.portfolio__tag {
    display: inline-block;
    background: var(--bg-light);
    color: var(--text-muted);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
}

/* Skills Section */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1rem;
}

.skill__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.skill__item:hover {
    border-color: var(--primary);
    background: var(--bg-light);
}

.skill__item i {
    color: var(--success);
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.skill__item span {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Section subtitle */
.section__subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* About guarantee */
.about__guarantee {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-top: 1.5rem;
}

.about__guarantee i {
    color: var(--success);
    font-size: 1.25rem;
}

.about__guarantee span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Service features */
.service__features {
    list-style: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.service__features li {
    padding: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service__features li::before {
    content: "✓";
    color: var(--success);
    font-weight: bold;
}

/* Contact links */
.contact__item a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Form select */
.form__group select {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
}

.form__group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border);
    position: relative;
}

.footer__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

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

.footer__links {
    display: flex;
    gap: 1rem;
}

.footer__links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.footer__links a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer__copy {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Admin gear icon */
.admin-gear {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    z-index: 999;
}

.admin-gear:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: rotate(90deg);
}

/* Hero badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}
