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

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #21262d;
    --bg-accent: #1f2937;
    --text-primary: #f0f6fc;
    --text-secondary: #c9d1d9;
    --text-muted: #8b949e;
    --accent-orange: #ff6b35;
    --accent-blue: #58a6ff;
    --accent-purple: #a855f7;
    --accent-green: #3fb950;
    --border: #30363d;
    --shadow: rgba(0, 0, 0, 0.3);
    --glow: rgba(255, 107, 53, 0.2);
}

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

h1, .hero-title, .contact-title, .about-content h2 {
    font-family: 'Erica One', sans-serif !important;
}

.portfolio-title {
    font-family: 'Erica One', sans-serif !important;
}

.hero-role {
    font-family: 'Caprasimo', sans-serif !important;
}

h2, p, .portfolio-description, .about-text, .contact-subtitle, .portfolio-link, .skill-bubble, .social-link {
    font-family: "Inter", sans-serif !important;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    max-width: 500px;
    animation: slideInLeft 1s ease-out 0.4s both;
    font-weight: 400;
}

.portfolio-type {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--accent-orange);
    font-family: 'Caprasimo', sans-serif !important;
}

html {
    scroll-behavior: smooth;
}

.side-nav {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot.active {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    box-shadow: 0 0 20px var(--glow);
}

.nav-dot:hover {
    border-color: var(--accent-orange);
    transform: scale(1.5);
}

.top-bar {
    position: fixed;
    top: 0;
    right: 0;
    padding: 2rem;
    z-index: 1000;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.social-link {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--glow);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.social-link:hover::before {
    left: 100%;
}

.hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem 0 8rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-accent);
    position: relative;
    overflow: hidden;
}

.hero-visual {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-blue));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphing 8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg) scale(1);
    }
    25% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
        transform: rotate(180deg) scale(0.9);
    }
    75% {
        border-radius: 30% 70% 30% 70% / 70% 30% 70% 30%;
        transform: rotate(270deg) scale(1.1);
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-orange);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; right: 30%; animation-delay: 2s; }
.floating-element:nth-child(3) { bottom: 30%; left: 40%; animation-delay: 4s; }

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 1s ease-out;
}

.hero-role {
    font-size: 1.2rem;
    color: var(--accent-orange);
    margin-bottom: 2rem;
    animation: slideInLeft 1s ease-out 0.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: slideInLeft 1s ease-out 0.6s both;
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-orange), #ff8f65);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px var(--glow);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif !important;
}

.btn-secondary:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    transform: translateY(-3px);
}

.portfolio-section {
    height: 80vh;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

.portfolio-container {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 0;
    overflow: visible; 
}

.portfolio-item {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1; 
}

.portfolio-item:hover {
    transform: scale(1.08); 
    z-index: 10; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25); 
}

.portfolio-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.portfolio-item:hover::after {
    opacity: 1;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.portfolio-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    max-width: 80%;
    padding: 1.5rem;
    background: rgba(13, 17, 23, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-content {
    transform: translateY(-6px);
    opacity: 1;
}

.portfolio-title {
    font-size: 2rem;
    font-weight: 100;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: 1.5px;
}

.portfolio-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.portfolio-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    color: var(--accent-orange);
    transform: scale(1.05);
}


.about-section {
    min-height: 100vh;
    padding: 5rem 2rem;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 300;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}

.stat-number {
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent-orange);
    display: block;
    letter-spacing: 1px;
    font-family: 'Caprasimo', sans-serif !important;
}

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

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.skill-bubble {
    padding: 0.8rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.skill-bubble:hover {
    background: var(--accent-orange);
    color: white;
    transform: scale(1.1);
    border-color: var(--accent-orange);
}

.contact-section {
    min-height: 100vh;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
}

.contact-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 3rem;
    font-weight: 400;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-width: 150px;
}

.contact-link:hover {
    transform: translateY(-10px);
    background: var(--accent-orange);
    box-shadow: 0 20px 40px var(--glow);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer {
    background: var(--bg-primary);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif !important;
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: 100vh;
    }

    .hero-left {
        padding: 4rem 2rem 3rem 2rem;
        text-align: center;
        order: 1;
    }

    .hero-right {
        order: 2;
        min-height: 40vh;
        padding: 2rem;
    }

    .hero-visual {
        width: 200px;
        height: 200px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-role {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 1.2rem 2rem;
    }

    /* Hide top bar socials link on mobile */
    .top-bar {
        display: none !important;
    }

    .portfolio-section {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding: 3rem 0;
    }

    .portfolio-container {
        flex-direction: column;
        height: auto;
        gap: 2rem;
        padding: 0 1rem;
    }

    .portfolio-item {
        height: 60vh;
        min-height: 400px;
        width: 100%;
        border-radius: 15px;
        overflow: hidden;
    }

    .portfolio-item:hover {
        transform: translateY(-10px);
    }

    .portfolio-content {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: calc(100% - 2rem);
        padding: 1rem;
    }

    .portfolio-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .portfolio-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .about-section {
        padding: 4rem 2rem;
        min-height: auto;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-content h2 {
        font-size: 2.5rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .about-text {
        font-size: 1rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .stat-card {
        padding: 1rem;
        text-align: center;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .skills-cloud {
        justify-content: center;
        gap: 0.8rem;
    }

    .skill-bubble {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .contact-section {
        padding: 4rem 2rem;
        min-height: auto;
    }

    .contact-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .contact-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .contact-link {
        width: 100%;
        max-width: 300px;
        padding: 1.5rem;
        min-width: auto;
    }

    .side-nav {
        display: none;
    }

    .footer {
        padding: 2rem 1rem;
        font-size: 0.9rem;
    }

    /* Floating elements smaller on mobile */
    .floating-element {
        width: 15px;
        height: 15px;
    }

    /* Better spacing between sections */
    .portfolio-section, .about-section, .contact-section {
        scroll-margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-left {
        padding: 3rem 1.5rem 2rem 1.5rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .hero-role {
        font-size: 0.9rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .portfolio-item {
        height: 50vh;
        min-height: 350px;
    }

    .portfolio-title {
        font-size: 1.2rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .contact-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-bubble {
        padding: 0.5rem 0.8rem;
        font-size: 0.7rem;
    }
}

.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-blue));
    z-index: 10000;
    transition: width 0.3s ease;
}


.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.animate-delay-1 {
    transition-delay: 0.2s;
}

.animate-delay-2 {
    transition-delay: 0.4s;
}

.animate-delay-3 {
    transition-delay: 0.6s;
}

.animate-delay-4 {
    transition-delay: 0.8s;
}

#admin-dashboard {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 5rem 2rem;
}

html {
    scroll-behavior: smooth !important;
}

#admin-dashboard .stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem;
    text-align: center;
    min-width: 150px;
    transition: all 0.3s ease;
}

#admin-dashboard .stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-orange);
}