/* ============================================
   Bio Tonguç - Main Stylesheet
   Nature-inspired, fun, biology-themed design
   ============================================ */

/* CSS Variables / Design Tokens */
:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;

    --lime-300: #bef264;
    --lime-400: #a3e635;
    --lime-500: #84cc16;

    --bg-dark: #0a0f0a;
    --bg-card: #111a11;
    --bg-card-hover: #1a2e1a;
    --bg-surface: #0d140d;

    --text-primary: #f0fdf4;
    --text-secondary: #bbf7d0;
    --text-muted: #6b8f6b;

    --glow-green: rgba(34, 197, 94, 0.4);
    --glow-lime: rgba(163, 230, 53, 0.3);

    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 60px rgba(34, 197, 94, 0.05);
    --shadow-glow: 0 0 30px rgba(34, 197, 94, 0.3), 0 0 60px rgba(34, 197, 94, 0.1);

    --font-display: 'Fredoka', 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(34, 197, 94, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(163, 230, 53, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(34, 197, 94, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   Floating Animals Background
   ============================================ */
.floating-animals {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.float-animal {
    position: absolute;
    font-size: 1.8rem;
    left: var(--x);
    top: var(--y);
    animation: floatAnimal 8s ease-in-out var(--delay) infinite;
    opacity: 0.15;
    filter: blur(0.5px);
}

@keyframes floatAnimal {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(15px, -20px) rotate(10deg) scale(1.1);
    }
    50% {
        transform: translate(-10px, -35px) rotate(-5deg) scale(1.05);
    }
    75% {
        transform: translate(20px, -15px) rotate(8deg) scale(0.95);
    }
}

/* ============================================
   DNA Decoration
   ============================================ */
.dna-decoration {
    position: fixed;
    top: 0;
    height: 100%;
    width: 40px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.06;
}

.dna-decoration.left {
    left: 10px;
}

.dna-decoration.right {
    right: 10px;
}

.dna-strand {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        var(--green-400) 2px,
        transparent 4px,
        transparent 20px,
        var(--lime-400) 22px,
        transparent 24px,
        transparent 40px
    );
    animation: dnaScroll 4s linear infinite;
}

.dna-decoration.right .dna-strand {
    animation-direction: reverse;
}

@keyframes dnaScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(40px); }
}

/* ============================================
   Container
   ============================================ */
.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    text-align: center;
    padding: 20px 0 40px;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Profile Image */
.profile-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.profile-ring {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 4px;
    background: conic-gradient(
        var(--green-400),
        var(--lime-400),
        var(--green-300),
        var(--green-500),
        var(--lime-300),
        var(--green-400)
    );
    animation: ringRotate 6s linear infinite;
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.profile-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: conic-gradient(
        var(--green-400),
        var(--lime-400),
        var(--green-300),
        var(--green-500),
        var(--lime-300),
        var(--green-400)
    );
    filter: blur(20px);
    opacity: 0.4;
    animation: ringRotate 6s linear infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-dark);
    animation: none;
    /* Override parent rotation for the image to stay still */
    animation: ringCounterRotate 6s linear infinite;
}

@keyframes ringCounterRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.profile-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 2rem;
    background: var(--bg-dark);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--green-500);
    animation: pulse 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Hero Title */
.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.title-bio {
    color: var(--green-400);
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
}

.title-tonguc {
    color: var(--text-primary);
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--lime-300);
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.9;
}

.hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 400px;
    margin: 0 auto 4px;
    line-height: 1.5;
}

.hero-cta {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--green-400);
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

/* Bouncing Animals Row */
.hero-animals {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.bounce-animal {
    font-size: 1.6rem;
    animation: bounce 1.5s ease-in-out calc(var(--i) * 0.15s) infinite;
    cursor: default;
    transition: var(--transition-fast);
}

.bounce-animal:hover {
    transform: scale(1.4) rotate(15deg);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   Social Media Cards
   ============================================ */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 50px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out backwards;
}

.social-card:nth-child(1) { animation-delay: 0.1s; }
.social-card:nth-child(2) { animation-delay: 0.2s; }
.social-card:nth-child(3) { animation-delay: 0.3s; }
.social-card:nth-child(4) { animation-delay: 0.4s; }

.social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition-medium);
    border-radius: inherit;
}

.social-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: transparent;
}

.social-card:hover::before {
    opacity: 1;
}

/* Platform-specific gradients */
.social-card.instagram::before {
    background: linear-gradient(135deg, rgba(131, 58, 180, 0.15), rgba(253, 29, 29, 0.1), rgba(252, 176, 69, 0.1));
}
.social-card.instagram:hover {
    border-color: rgba(225, 48, 108, 0.4);
    box-shadow: 0 8px 32px rgba(225, 48, 108, 0.2);
}

.social-card.youtube::before {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.12), rgba(200, 0, 0, 0.08));
}
.social-card.youtube:hover {
    border-color: rgba(255, 0, 0, 0.4);
    box-shadow: 0 8px 32px rgba(255, 0, 0, 0.15);
}

.social-card.twitter::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(200, 200, 200, 0.05));
}
.social-card.twitter:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.social-card.tiktok::before {
    background: linear-gradient(135deg, rgba(0, 242, 234, 0.1), rgba(255, 0, 80, 0.08));
}
.social-card.tiktok:hover {
    border-color: rgba(0, 242, 234, 0.4);
    box-shadow: 0 8px 32px rgba(0, 242, 234, 0.15);
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.social-icon svg {
    width: 26px;
    height: 26px;
}

.instagram .social-icon {
    background: linear-gradient(135deg, #833AB4, #E1306C, #FCAF45);
    color: white;
}

.youtube .social-icon {
    background: #FF0000;
    color: white;
}

.twitter .social-icon {
    background: #14171A;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.tiktok .social-icon {
    background: #010101;
    color: white;
    border: 1px solid rgba(0, 242, 234, 0.3);
}

.social-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.social-name {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
}

.social-handle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
}

.social-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all var(--transition-medium);
    position: relative;
    z-index: 1;
}

.social-card:hover .social-arrow {
    transform: translateX(5px);
    color: var(--green-400);
}

/* ============================================
   Collaborations Section
   ============================================ */
.collabs-section {
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.title-emoji {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    75% { transform: rotate(-10deg); }
}

.collabs-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.collab-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--bg-card);
    border: 1px solid rgba(34, 197, 94, 0.12);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.collab-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(163, 230, 53, 0.05));
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.collab-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--green-500);
    box-shadow: var(--shadow-glow);
}

.collab-card:hover::before {
    opacity: 1;
}

.collab-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--green-600), var(--lime-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.collab-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.collab-title {
    display: block;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.collab-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
}

.collab-arrow {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all var(--transition-medium);
    position: relative;
    z-index: 1;
}

.collab-card:hover .collab-arrow {
    transform: translateX(5px);
    color: var(--green-400);
}

.collabs-empty {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-muted);
    font-size: 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(34, 197, 94, 0.15);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    margin-bottom: 50px;
}

.contact-card {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, var(--bg-card), rgba(34, 197, 94, 0.05));
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.04) 0%, transparent 60%);
    animation: contactGlow 6s ease-in-out infinite;
}

@keyframes contactGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
    animation: pulse 2s ease-in-out infinite;
}

.contact-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--green-300);
    position: relative;
    z-index: 1;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
    color: white;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-medium);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
}

/* ============================================
   Footer
   ============================================ */
.footer {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid rgba(34, 197, 94, 0.1);
}

.footer-animals {
    font-size: 1.3rem;
    margin-bottom: 12px;
    letter-spacing: 8px;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-sub {
    font-size: 0.8rem;
    color: var(--green-500);
    opacity: 0.6;
}

.footer-credit {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(34, 197, 94, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
}

.footer-credit span {
    color: var(--text-muted);
    opacity: 0.5;
}

.footer-credit a {
    color: var(--green-500);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.6;
    transition: all var(--transition-fast);
}

.footer-credit a:hover {
    color: var(--green-400);
    opacity: 1;
    text-decoration: underline;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--green-600);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 640px) {
    .container {
        padding: 24px 16px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .profile-ring {
        width: 130px;
        height: 130px;
    }

    .social-card {
        padding: 14px 18px;
    }

    .float-animal {
        font-size: 1.4rem;
    }

    .dna-decoration {
        display: none;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-animals {
        gap: 8px;
    }

    .bounce-animal {
        font-size: 1.3rem;
    }
}

/* ============================================
   Accessibility: Reduce Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Selection Style
   ============================================ */
::selection {
    background: var(--green-500);
    color: var(--bg-dark);
}
