:root {

    /* Base Color Palette */
    --primary: #f5b841;
    --primary-light: #ffcc66;
    --secondary: #ff8c00;
    --accent: #f59e0b;

    /* Default Dark Mode Variables */
    --bg-color: #0a0a0a;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --card-bg: #16171a;
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius: 16px;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-color: #f5f7fb;
    --text-color: #111827;
    --text-muted: #4b5563;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --card-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.8);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

/* Page Fade-in Logic */
main {
    opacity: 0;
    transition: opacity 1s ease-in;
}

body.loaded main {
    opacity: 1;
}
/* Dots Loader */

.dots-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.dot {
  height: 18px;
  width: 18px;
  margin-right: 12px;
  border-radius: 50%;
  background-color: var(--primary);
  animation: pulse 1.5s infinite ease-in-out;
}

.dot:last-child {
  margin-right: 0;
}

.dot:nth-child(1) { animation-delay: -0.3s; }
.dot:nth-child(2) { animation-delay: -0.15s; }
.dot:nth-child(3) { animation-delay: 0s; }
.dot:nth-child(4) { animation-delay: 0.15s; }
.dot:nth-child(5) { animation-delay: 0.3s; }

#scrollTop{
position:fixed;
bottom:30px;
right:30px;
width:45px;
height:45px;
border-radius:50%;
border:none;
background:var(--primary);
color:white;
cursor:pointer;
display:none;
z-index:999;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    background-color: var(--primary-light);
    box-shadow: 0 0 0 0 rgba(245,184,65,0.6);
  }

  50% {
    transform: scale(1.2);
    background-color: var(--primary);
    box-shadow: 0 0 0 12px rgba(245,184,65,0);
  }

  100% {
    transform: scale(0.8);
    background-color: var(--primary-light);
    box-shadow: 0 0 0 0 rgba(245,184,65,0.6);
  }
}

/* Background Glow Effects */
.bg-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.bg-glow-1 { top: -100px; right: -100px; background: var(--primary); }
.bg-glow-2 { bottom: -100px; left: -100px; background: var(--secondary); }

body.light-mode .bg-glow { opacity: 0.05; }

/* Navbar */
header {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 70px;
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 2.5rem; }

.nav-item {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    color: var(--text-color);
    opacity: 0.7;
}

.nav-item:hover, .nav-item.active { opacity: 1; }

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-item:hover::after, .nav-item.active::after { width: 100%; }

/* Theme Switch */
.theme-switch {
    --toggle-size: 0.8;
    --container-width: 5.625em;
    --container-height: 2.5em;
    --container-radius: 6.25em;
    --container-light-bg: #3D7EAE;
    --container-night-bg: #1D1F2C;
    --circle-container-diameter: 3.375em;
    --sun-moon-diameter: 2.125em;
    --sun-bg: #ECCA2F;
    --moon-bg: #C4C9D1;
    --spot-color: #959DB1;
    --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
    
    cursor: pointer;
    display: flex;
    align-items: center;
    transform: scale(var(--toggle-size));
}

.theme-switch input { display: none; }

.theme-switch .container-switch {
    width: var(--container-width);
    height: var(--container-height);
    background-color: var(--container-light-bg);
    border-radius: var(--container-radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25) inset, 0em 0.062em 0.062em rgba(255, 255, 255, 0.75) inset;
    transition: background-color 0.5s cubic-bezier(0, 0, 0, 1);
    position: relative;
}

.theme-switch .circle-container {
    width: var(--circle-container-diameter);
    height: var(--circle-container-diameter);
    background-color: rgba(255, 255, 255, 0.1);
    position: absolute;
    left: var(--circle-container-offset);
    top: var(--circle-container-offset);
    border-radius: var(--container-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: left 0.5s cubic-bezier(0, 0, 0, 1);
}

.theme-switch .sun-moon-container {
    width: var(--sun-moon-diameter);
    height: var(--sun-moon-diameter);
    background-color: var(--sun-bg);
    border-radius: var(--container-radius);
    overflow: hidden;
    transition: background-color 0.5s cubic-bezier(0, 0, 0, 1);
}

.theme-switch input:checked + .container-switch { background-color: var(--container-night-bg); }
.theme-switch input:checked + .container-switch .circle-container {
    left: calc(100% - var(--circle-container-diameter) - var(--circle-container-offset));
}
.theme-switch input:checked + .container-switch .circle-container .sun-moon-container { background-color: var(--moon-bg); }

.nav-actions { display: flex; align-items: center; gap: 1.5rem; }

/* Buttons */
.btn {
    width: 12em;
    position: relative;
    height: 3.5em;
    border: 3px ridge var(--primary);
    background-color: transparent;
    color: var(--text-color);
    transition: 1s;
    border-radius: 0.3em;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px; /* Added gap for icon spacing */
    text-decoration: none;
    overflow: hidden;
}

.btn span, .btn i { position: relative; z-index: 2; }

.btn::after, .btn::before {
    content: "";
    position: absolute;
    width: 95%;
    height: 40%;
    background-color: transparent;
    transition: 0.5s;
    transform-origin: center;
    z-index: 1;
}

.btn::after { top: -10px; left: 3%; }
.btn::before { top: 80%; left: 3%; }

.btn:hover::before, .btn:hover::after { transform: scale(0); }
.btn:hover {
    box-shadow: inset 0px 0px 25px var(--primary);
    color: var(--text-color);
    transform: translateY(-3px);
}

.btn-sm { width: 9em; height: 2.8em; font-size: 14px; gap: 8px; }

/* Sections */
.section-padding { padding: 70px 0; }
.section-title { margin-bottom: 50px; text-align: center; }
.subtitle { color: var(--primary); text-transform: uppercase; font-weight: 800; letter-spacing: 2px; font-size: 0.8rem; display: block; margin-bottom: 0.5rem; }
.section-title h2 { font-size: 3rem; }

/* Hero Section */
.hero { min-height: 85vh; display: flex; align-items: center; position: relative; padding-top: 80px; }
.hero-wrapper { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.badge { display: inline-block; padding: 0.5rem 1.2rem; background: rgba(245,184,65,0.1); color: var(--primary); border-radius: 30px; font-weight: 700; font-size: 0.8rem; margin-bottom: 1.5rem; }
.hero-content h1 { font-size: 4.5rem; margin-bottom: 1.5rem; letter-spacing: -2px; }
.text-gradient { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 1.2rem; opacity: 0.8; max-width: 500px; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1.5rem; }

.hero-visual { display: flex; justify-content: center; }
.glass-sphere {
    width: 350px;
    height: 350px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border:1px solid rgba(245,184,65,0.2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--card-shadow);
    animation: morph 8s ease-in-out infinite alternate;
}
.inner-sphere {
width:150px;
height:150px;
background:linear-gradient(135deg,var(--primary),var(--secondary));
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
font-size:4rem;
color:white;

box-shadow:0 0 60px var(--primary);
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    100% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
}

/* Common Card Styling */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

/* About Grid */
.about-grid { display: grid; grid-template-columns: 1fr 0.5fr; gap: 4rem; align-items: center; }
.about-stats { display: flex; flex-direction: column; gap: 2rem; }
.stat h3 { font-size: 3rem; color: var(--primary); }
.stat span { font-weight: 700; opacity: 0.6; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.skill-card { 
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

body.dark-mode .skill-card:hover {
    box-shadow: 0 0 20px rgba(245,184,65, 0.2);
}

.skill-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; transition: var(--transition); }

.skill-progress-wrapper { 
    margin-top: 1.5rem;
    height: 8px; 
    background: rgba(0, 0, 0, 0.05); 
    border-radius: 4px; 
    position: relative; 
    overflow: hidden;
}

body.dark-mode .skill-progress-wrapper { background: rgba(255, 255, 255, 0.05); }

.skill-progress-bar { 
    position: absolute; 
    top: 0; 
    left: 0; 
    height: 100%; 
    width: 0; 
    background: linear-gradient(90deg, var(--primary), var(--secondary)); 
    border-radius: 4px; 
    transition: width 1.5s ease; 
}

.skill-card.show .skill-progress-bar { width: var(--target-width); }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2.5rem; }
.project-card { 
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer; 
    padding: 0; 
    overflow: hidden; 
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.project-img { height: 250px; background: var(--card-border); display: flex; align-items: center; justify-content: center; position: relative; padding-top:20px; }
.project-content { padding: 4rem;}
.project-tags span { font-size: 0.75rem; font-weight: 700; color: var(--primary); background: rgba(245,184,65, 0.1); padding: 0.3rem 0.8rem; border-radius: 20px; }

/* Contact Card Special Styling */
.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 60px;
    box-shadow: var(--card-shadow);
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Modal */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); z-index: 2000;
    align-items: center; justify-content: center; padding: 2rem;
}
.modal-content { width: 100%; max-width: 900px; position: relative; padding: 4rem; animation: modalScale 0.4s ease-out; }
@keyframes modalScale { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.close-modal { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; cursor: pointer; }

/* Animation Helper */
.observe { opacity: 0; transform: translateY(40px); transition: all 1s ease-out; }
.observe.show { opacity: 1; transform: translateY(0); }

/* Scroll Down Mouse */
.mouse { width: 25px; height: 40px; border: 2px solid var(--card-border); border-radius: 15px; position: relative; }
.mouse::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--primary); border-radius: 2px; animation: scroll 2s infinite; }
@keyframes scroll { 0% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, 15px); opacity: 0; } }

/* Mobile */
@media (max-width:768px){

.nav-links{
display:none;
}

/* fix tlačítek na mobile */
.btn::before,
.btn::after{
display:none;
}

.btn{
min-height:3.2em;
padding:12px 22px;
}



/* HERO */
.hero-wrapper{
grid-template-columns:1fr;
text-align:center;
gap:40px;
}

.hero-content h1{
font-size:2.5rem;
}

.hero-content p{
font-size:1rem;
margin:auto;
}

.hero-btns{
flex-direction:column;
align-items:center;
gap:15px;
}

/* BUTTONS */
.btn{
width:auto;
padding:14px 24px;
}

/* HERO ICON */
.glass-sphere{
width:200px;
height:200px;
margin:auto;
}
/* PROJECTS */
.projects-grid{
grid-template-columns:1fr;
}

/* CONTACT */
.contact-links{
flex-direction:column;
align-items:center;
gap:20px;
}

#scrollTop{
position:fixed;
bottom:30px;
right:30px;
width:45px;
height:45px;
border-radius:50%;
border:none;
background:var(--primary);
color:white;
cursor:pointer;
display:none;
z-index:999;
}
}












