/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Pink Color Scheme */
    --primary-pink: #ff1493;
    --secondary-pink: #ff69b4;
    --dark-pink: #c71585;
    --light-pink: #ffb6c1;
    --accent-pink: #ff007f;
    
    /* Background Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-glass: rgba(255, 20, 147, 0.1);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #a0a0a0;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-pink), var(--accent-pink));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-pink), var(--light-pink));
    
    /* Shadows */
    --shadow-light: 0 4px 12px rgba(255, 20, 147, 0.2);
    --shadow-medium: 0 8px 24px rgba(255, 20, 147, 0.3);
    --shadow-heavy: 0 16px 48px rgba(255, 20, 147, 0.4);
}

body {
    font-family: 'Segoe UI', 'Calibri', 'Candara', 'Arial', sans-serif;
    background: transparent !important;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#three-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

main, .main-content, #content, #app {
  position: relative;
  z-index: 1;
  background: transparent !important;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 20, 147, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 105, 180, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 0, 127, 0.05) 0%, transparent 50%);
    z-index: -1;
}

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

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

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--glass-border);
    border-top: 3px solid var(--primary-pink);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loader-text {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 300;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Main Content */
.main-content {
    min-height: 100vh;
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

.main-content.hidden {
    opacity: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Introduction Section */
.introduction-section {
    padding: 80px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

.introduction-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 400px;
}

.introduction-text {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

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

.intro-paragraph {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.intro-highlights {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.highlight-icon {
    font-size: 1.2rem;
}

.highlight-text {
    font-weight: 500;
    color: var(--text-primary);
}

/* Floating Numeri Logo */
.floating-numeri {
    position: absolute;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.numeri-logo {
    height: 100%;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(255, 20, 147, 0.3));
    transition: all 0.3s ease;
}

.numeri-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 16px 48px rgba(255, 20, 147, 0.5));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-2deg); }
}

/* Header */
.header {
    padding: 60px 0 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 40px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-pink);
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

.profile-info .name {
    font-size: 2.5rem;
    font-weight: 200;
    font-family: 'Segoe UI Light', 'Segoe UI', 'Calibri', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.profile-info .bio {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-info .location,
.profile-info .company {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.social-link .icon {
    font-size: 1.2rem;
}

/* Section Styles */
.section-title {
    font-size: 2rem;
    font-weight: 200;
    font-family: 'Segoe UI Light', 'Segoe UI', 'Calibri', sans-serif;
    text-align: center;
    margin-bottom: 40px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-pink);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Snake Container */
.snake-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
    box-shadow: var(--glass-shadow);
    margin-top: 40px;
}

.snake-svg {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Projects Section */
.projects-section {
    padding: 60px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-pink);
}

.project-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-pink);
    margin-bottom: 10px;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-stats {
    display: flex;
    gap: 15px;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Skills Section */
.skills-section {
    padding: 60px 0;
}

.skills-tabs {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.tab-button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 15px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    flex: 1;
    min-width: 120px;
}

.tab-button:hover {
    color: var(--text-primary);
    background: rgba(255, 20, 147, 0.1);
}

.tab-button.active {
    color: var(--primary-pink);
    border-bottom-color: var(--primary-pink);
    background: rgba(255, 20, 147, 0.15);
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-pane.active {
    display: block;
}

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

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.skill-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-pink);
}

.skill-tag:hover .skill-icon {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    text-align: center;
    backdrop-filter: blur(20px);
    margin-top: 60px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        gap: 20px;
        padding: 0 20px;
    }
    
    .profile-section {
        gap: 15px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .introduction-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        min-height: auto;
        padding: 40px 0;
    }
    
    .introduction-text {
        max-width: 100%;
        z-index: 2;
    }
    
    .introduction-text .section-title {
        text-align: center;
        font-size: 2rem;
    }
    
    .intro-paragraph {
        text-align: left;
        font-size: 1rem;
    }
    
    .intro-highlights {
        justify-content: center;
    }
    
    .floating-numeri {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        height: auto;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .numeri-logo {
        height: auto;
        width: 100%;
        max-width: 200px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        min-width: auto;
        text-align: center;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    /* Mobile Status Drawer */
    .status-drawer {
        width: 100%;
        right: -100%;
    }
    
    .status-button {
        right: 15px;
        bottom: 15px;
        padding: 8px 12px;
        min-width: 260px;
        min-height: 45px;
    }
    
    .status-button iframe {
        width: 240px !important;
        height: 25px !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .profile-info .name {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-pink);
}

/* Selection Styling */
::selection {
    background: var(--primary-pink);
    color: white;
}

/* Link Styles */
a {
    color: var(--primary-pink);
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

a:hover {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-1px);
}

/* Social Link Override */
.social-link {
    background: var(--glass-bg) !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
    color: var(--text-primary) !important;
}

.social-link:hover {
    background: var(--gradient-primary) !important;
    color: white !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

/* Status Button and Drawer */
.status-button {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 10px 15px;
    cursor: pointer;
    backdrop-filter: blur(15px);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    min-height: 50px;
}

.status-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    cursor: pointer;
}

.status-button:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.status-button iframe {
    border-radius: 8px;
    background: transparent;
}

/* Status Drawer */
.status-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    box-shadow: var(--shadow-heavy);
    transition: right 0.3s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.status-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
}

.drawer-header h3 {
    color: var(--primary-pink);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close:hover {
    color: var(--primary-pink);
    background: rgba(255, 20, 147, 0.1);
}

.drawer-content {
    flex: 1;
    padding: 20px;
    overflow: hidden;
}

.drawer-content iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: white;
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--primary-pink);
    outline-offset: 2px;
} 