:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-1: #6366f1; /* Indigo */
    --accent-2: #ec4899; /* Pink */
    --accent-3: #8b5cf6; /* Violet */
    --surface: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-1);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-2);
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: var(--accent-3);
    top: 40%;
    left: 40%;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Layout */
.grid-aligned-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
}

.container {
    width: 100%;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-layout {
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
}

.global-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.logo-container {
    padding: 1rem 0;
}

.logo {
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.5rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
    animation: fadeUp 1s ease-out forwards;
}

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

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.headline {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 0 3rem 0;
    font-weight: 300;
}

/* Form Styles */
.form-wrapper {
    max-width: 500px;
    margin: 0;
}

.input-group {
    display: flex;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 0.5rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

input[type="email"]::placeholder {
    color: #64748b;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 2rem;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

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

/* Messages */
.form-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 24px;
    transition: all 0.3s ease;
    opacity: 0;
}

.form-message.success {
    color: #34d399; /* emerald-400 */
    opacity: 1;
}

.form-message.error {
    color: #f87171; /* red-400 */
    opacity: 1;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Navigation */
.global-nav {
    padding: 1rem 0;
    border-bottom: 1px solid var(--surface-border);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.global-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #111;
    border: 1px solid var(--surface-border);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.btn-secondary {
    margin-top: 1.5rem;
    background: var(--surface);
    color: white;
    border: 1px solid var(--surface-border);
    padding: 0.6rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* About Layout */
.about-header, .contact-header {
    text-align: left;
    padding: 3rem 0;
}

.bio-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    padding: 3rem;
    border-radius: 20px;
}

.sidebar-profile-wrapper {
    width: 50%;
    margin: 0;
}

.profile-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    border: 1px solid var(--surface-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}

.about-portrait-wrapper {
    width: 40%;
    flex-shrink: 0;
}

.about-portrait {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
    border: 1px solid var(--surface-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}

.bio-content h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.bio-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

.section-title {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    aspect-ratio: 1 / 1;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    padding: 3rem;
    border-radius: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--surface-border);
    padding: 1rem;
    border-radius: 10px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-1);
}

.w-full {
    width: 100%;
    padding: 1rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .page-layout {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }

    .global-sidebar {
        width: 100%;
        position: static;
    }
    
    .sidebar-profile-wrapper {
        width: 125px;
    }
    
    .bio-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 2rem;
    }
}
@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
    }
    
    input[type="email"] {
        background: var(--surface);
        border: 1px solid var(--surface-border);
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    
    .btn-primary {
        padding: 1rem;
        width: 100%;
        border-radius: 12px;
    }
}
