/*
* LittleLink
* https://littlelink.io
* Free to use under the MIT license
* http://www.opensource.org/licenses/mit-license.php
*/

/* Smooth Scrolling & Base
–––––––––––––––––––––––––––––––––––––––––––––––––– */
html {
    scroll-behavior: smooth;
}

:root {
  font-size:16px;           
  --scale-0:1rem;           
  --scale-1:1.25rem;        
  --scale-2:1.563rem;       
  --scale-3:1.953rem;       
  --scale-4:2.441rem;       
  --scale-5:3.052rem;       

  /* Spacing units */
  --spacing-xs:0.5rem;      
  --spacing-s:1rem;         
  --spacing-m:1.5rem;       
  --spacing-l:2rem;         
  --spacing-xl:3rem;        
  --spacing-xxl:4rem;       
}

/* Grid
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
.container {
    position:relative;
    width:100%;
    max-width:37.5rem;                  
    text-align:center;
    margin:0 auto;
    padding:var(--spacing-xl) var(--spacing-m) 0 var(--spacing-m);
    box-sizing:border-box;
}
.container-left {
    position:relative;
    width:100%;
    max-width:37.5rem;
    text-align:left;
    margin:0 auto;
    padding:0 1.25rem;
    box-sizing:border-box;
}
.container-left p {
    margin-bottom: 1rem;                
}
.column {
    position:center;
    width:100%;
    float:center;
    box-sizing:border-box;
}

@media (min-width:25rem) {            
    .container {
        width:85%;
        padding-left:0;
        padding-right:0;
    }
}
@media (min-width:34.375rem) {        
    .container {
        width:80%;
    }
    .column,.columns {
        margin-left:0;
    }
    .column:first-child,.columns:first-child {
        margin-left:0;
    }
}

/* Base Styles
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
body {
    margin:0;
    padding:0;
    background-color:#ffffff;
    color:#1a1a1a;
    font-family:"Open Sans",system-ui, sans-serif;
    font-size:var(--scale-1);
    font-weight:400;
    line-height:1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Typography
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
h1 {
    margin:0 0 var(--spacing-m) 0;
    font-size:var(--scale-5);           
    font-weight:800;
    line-height:1.1;
    letter-spacing:-0.02em;
    word-wrap:break-word;
    overflow-wrap:break-word;
    hyphens:auto;
}
.container p {
    margin:0 0 var(--spacing-xl) 0;
    font-size:var(--scale-1);
    line-height:1.6;
}

/* Links
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
a {
    color:#2457F5;
    text-decoration:underline;
    transition: color 0.3s ease;
}
a:hover {
    color:#083BDA;
}

/* Buttons
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.button,button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:18.75rem;                 
    min-height:3rem;                
    padding:0.75rem 1rem;
    font-size:1.125rem;
    font-weight:700;
    text-decoration:none;
    white-space:normal;
    background-color:var(--button-background,transparent);
    color:var(--button-text,#000000);
    border:var(--button-border,none);
    border-radius:0.5rem;
    cursor:pointer;
    box-sizing:border-box;
    hyphens:auto;
    margin-bottom:1rem;
    text-align:center;
    line-height:1.3;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.button:hover,button:hover {
    color:var(--button-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.button:active, button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Icons
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.icon {
    width:1.25rem;
    height:1.25rem;
    margin-right:0.5rem;
    flex-shrink:0;
    transition: transform 0.3s ease;
}
.button:hover .icon {
    transform: scale(1.1);
}

/* Footer */
footer {
    margin:var(--spacing-xxl) 0;            
    font-size:var(--scale-0);
}

/* Theme System
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
:root.theme-dark {
    color-scheme:dark;
}
:root.theme-dark :focus-visible {
    outline: 2px solid #4899F7;
    outline-offset: 2px;
}
:root.theme-dark body {
    background-color:#121212;
    color:#ffffff;
}
:root.theme-dark a:not(.button) {
    color:#4899F7;
}
:root.theme-dark a:not(.button):hover {
    color:#7AB8FF;
}
:root.theme-dark .button, :root.theme-dark button {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
:root.theme-dark .button:hover, :root.theme-dark button:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

:root.theme-auto {
    color-scheme:light dark;
}
@media (prefers-color-scheme:dark) {
    :root.theme-auto body {
        background-color:#121212;
        color:#ffffff;
    }
    :root.theme-auto :focus-visible {
        outline: 2px solid #4899F7;
        outline-offset: 2px;
    }
    :root.theme-auto a:not(.button) {
        color:#4899F7;
    }
    :root.theme-auto a:not(.button):hover {
        color:#7AB8FF;
    }
    :root.theme-auto .button, :root.theme-auto button {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    :root.theme-auto .button:hover, :root.theme-auto button:hover {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    }
}

/* Responsive Typography
  –––––––––––––––––––––––––––––––––––––––––––––––––– */
@media (max-width:34.375rem) {            
    h1 { font-size:var(--scale-4); }
    body { font-size:var(--scale-0); }
    .container p { font-size:var(--scale-0); }
    .avatar { margin-bottom:var(--spacing-m); }
    footer { margin:var(--spacing-xl) 0; }
}

/* ==========================================================================
   FAST & CLEAN SLIDE-UP ANIMATIONS (Avatar, Name, Description ONLY)
   ========================================================================== */

@keyframes fastSlideUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Profile Avatar --- */
.avatar {
    width: 8rem;             
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
    background-position: center;
    margin-bottom: var(--spacing-l);
    margin-left: auto;
    margin-right: auto;
    display: block;
    border: 4px solid #4ade80; 
    padding: 3px;
    background-color: #ffffff;
    
    /* Optimization for smooth animation */
    will-change: transform, opacity;
    
    /* Forwards ki jagah BOTH kar diya */
    animation: fastSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* --- Premium Profile Name --- */
.profile-name {
    font-size: var(--scale-5);
    font-weight: 800;
    margin-bottom: 0.2rem;
    
    /* Missing compatibility properties add kar diye */
    background: linear-gradient(90deg, #2457F5, #7AB8FF);
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    will-change: transform, opacity;
    animation: fastSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* --- Premium Profile Description --- */
.profile-desc {
    font-size: 1.125rem;
    font-weight: 500;
    color: #555555; 
    margin-bottom: 2rem;
    line-height: 1.6;
    
    will-change: transform, opacity;
    animation: fastSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Dark Mode Adjustments */
:root.theme-dark .profile-name {
    background: linear-gradient(90deg, #7AB8FF, #ffffff);
    -webkit-background-clip: text;
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    color: transparent;
}
:root.theme-dark .profile-desc {
    color: #cccccc;
}

/* --- Animated Gradient Background for Dark Mode --- */
:root.theme-dark body {
    background: linear-gradient(-45deg, #0f172a, #1e1b4b, #000000, #172554);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}