/* Stil modern pentru portofoliu */

:root {
    --bg: hsl(0, 0%, 98%);
    --text: #1a1a1a;
    --accent: #6c00d7;
    --card-bg: #ffffff;
    --border: #e0e0e0;
    --dark-bg: #1c1c1c;
    --dark-text: #e1e1e1;
    --dark-card: #292828;
    --transition: 0.3s ease-in-out;
  }
  
  html, body {
    height: 100%;
  }

  body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color var(--transition), color var(--transition);
    display: flex;
    flex-direction: column;
  }
  
  body.dark-mode {
    --bg: var(--dark-bg);
    --text: var(--dark-text);
    --card-bg: var(--dark-card);
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  /* Header styling */
  .header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    padding-top: 0.2rem;
    position: relative; 
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%; 
    max-width: 100%; 
    margin: 0 auto; 
  }

  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

 
  .header-left {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .logo-img {
    height: 110px;
    max-width: 100%;
    cursor: pointer;
  }

  /* Right section with name */
  .header-right {
    flex: 3; /* Bigger piece */
    text-align: right;
  }

  .logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0;
  }

  .social-links {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
  }
  .social-links li {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .social-links a {
    text-decoration: none;
    color: #fff;
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .social-links a.linkedin {
    background-color: #0077b5;
  }
  .social-links a.github {
    background-color: #333;
  }
  .social-links a.twitter {
    background-color: #1da1f2;
  }
  .social-links a.email {
    background-color: #d93025;
  }
  .social-links a.tiktok {
    background-color: #000000;
  }
  .social-links a.instagram {
    background-color: #e1306c;
  }
  .social-links a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  }
  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .section-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }

  /* Navbar styling */
  .navbar {
    display: flexbox;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    margin: 0 auto; /* Center the navbar */
    left: 0; /* Align with the body */
    right: 0; /* Align with the body */
    position: relative; /* For absolute positioning of dropdown */

  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    max-width: 100%; /* Prevent overflow */
    margin: 0 auto; /* Center the navbar */
    left: 0; /* Align with the body */
    right: 0; /* Align with the body */
    position: relative; /* For absolute positioning of dropdown */
  }
  
  .nav-links {
    display: flex;
    gap: 2rem; /* Increased space between links */
    justify-content: center;
    flex-wrap: wrap; /* Allow links to wrap when the window is smaller */
    list-style: none; /* Remove dots from links */
    padding: 0;
    margin: 0;
    flex: 1; /* Allow the nav links to take up space */
    align-items: center; /* Center vertically */
    text-align: center; /* Center text inside the links */
    position: relative; /* For absolute positioning of dropdown */
  }
  
  .nav-links li {
    flex: 0 1 auto; /* Allow links to shrink if needed */
  }
  
  .navbar a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 1.2rem; /* Slightly bigger font size */
    padding: 0.8rem 1.5rem; /* More spacious padding */
    transition: color var(--transition), background-color var(--transition);
  }

  .navbar a:hover {
    color: var(--accent); /* Highlight color on hover */
    background-color: rgba(0, 122, 255, 0.1); /* Subtle background on hover */
    border-radius: 8px; /* Rounded corners for hover effect */
  }
  
  /* Hamburger menu button */
  .menu-toggle {
    display: none; 
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text);
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
  }

  .menu-toggle:focus {
    outline: none;
  }
  
  .main-content {
    padding: 3rem 0;
    flex: 1;
  }
  
  .hero {
    text-align: center;
    padding: 4rem 2rem;
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
  }
  
  /* Button hover effect */
  .btn-primary {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
    text-decoration: none;
    display: inline-block; /* Ensure it behaves like a button */
    text-align: center; /* Center text inside the button */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  .hotel-card {
    background: linear-gradient(135deg, #05010d, #0e0eeb);
    color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-size: 200% 200%; /* To make the gradient larger for animation */
    animation: cardAnimation 5s ease infinite; /* Animation for the card */
}
.besttn-best {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(145deg, var(--accent), #4200b5); /* Gradient background */
    color: #fff;
    border: none;
    border-radius: 12px; /* Slightly rounder corners */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition), filter var(--transition);
    text-decoration: none;
    display: inline-block; /* Ensure it behaves like a button */
    text-align: center; /* Center text inside the button */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 15px rgba(66, 0, 181, 0.3); /* Added glow effect */
}

.beta-version {
    padding: 0rem 1.5rem;
    font-weight: 600;
    color: #7300ff;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-block; /* Ensure it behaves like a button */
    text-align: center; /* Center text inside the button */
    text-decoration-color: #e8e7e7;
}

.besttn-best:hover {
    background: linear-gradient(145deg, #4200b5, var(--accent)); /* Reverse the gradient on hover */
    transform: translateY(-5px) scale(1.05); /* Slightly larger and lifted */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 0 25px rgba(66, 0, 181, 0.3); /* Glow and shadow intensify */
    filter: brightness(1.1); /* Add a little brightness to highlight the button */
}


@keyframes gradientAnimation {
    0% {
        background-position: 0% 99%; /* Start from the left */
    }
    100% {
        background-position: 100% 1%; /* Move to the right */
    }
    
}

/* Style the "best" text */
.best-project {
    font-size: 1.2em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    font-weight: bold;
    color: #949494;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #dedede, #0638ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%; /* To make the gradient larger for animation */
    transition: all 0.3s ease;
}


.btn-primary:hover {
    background-color: #4200b5;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

  
  /* Project card styling */
  .project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition), box-shadow var(--transition);
    margin: 1rem 0;
  }
  
  .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  }
  
  .footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text);
  }

  /* Add hover effect for footer links */
  .footer a {
    color: var(--accent);
    text-decoration: none;
  }

  .footer a:hover {
    text-decoration: underline;
  }
  
  .fade-in {
    animation: fadeIn 0.5s ease-in-out;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Center the header content slightly to the left */
  .centered-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align to the left */
    text-align: left;
    gap: 1rem;
  }

  .centered-header .navbar {
    margin-top: 1rem;
    width: 100%;
  }

  /* Remove button-like appearance for dark mode toggle */
  .dark-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem; /* Slightly bigger icon */
    cursor: pointer;
    transition: color var(--transition);
  }

  .dark-toggle:hover {
    color: var(--accent);
  }
  .social-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.social-button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    width: auto;
    min-width: 150px;
    text-transform: uppercase;
}

.social-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.linkedin {
    background-color: #0077B5;
}

.github {
    background-color: #333;
}

.twitter {
    background-color: #1DA1F2;
}

.email {
    background-color: #EA4335;
}

/* Optional: Add focus effects for better accessibility */
.social-button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
@media (max-width: 768px) {
  /* General body adjustments */
  body {
    padding: 0;
    font-size: 90%; /* Slightly smaller font size for better readability */
  }

  .hero {
    text-align: center;
    padding: 6rem 2rem;
    margin: 0 auto;
  }

  /* Header adjustments */
  .header-container {
    flex-direction: row; /* Stack logo and name vertically */
    text-align: center;
  }

  .header-left, .header-right {
    flex: unset; /* Remove flex sizing */
    text-align: center;
  }

  .logo-img {
    height: 100px; /* Smaller logo for mobile */
  }

  .logo {
    font-size: 2.2rem; /* Smaller font size for the name */
  }

  /* Navbar adjustments */
  .nav-links {
    flex-direction: row; /* Stack links vertically */
    gap: 1.2rem; /* Add spacing between links */
  }

  .navbar a {
    font-size: 1.3em; /* Slightly smaller font size */
    padding: 0.5rem 1rem; /* Adjust padding for smaller screens */
  }

  /* Main content adjustments */
  .main-content {
    padding: 2rem 1rem; /* Reduce padding for smaller screens */
  }

  /* Project cards adjustments */
  .project-card {
    max-width: 100%; /* Allow cards to take full width */
    margin: 0.5rem 0; /* Add spacing between cards */
  }

  /* Social links adjustments */
  .social-links {
    grid-template-columns: 1fr; /* Stack icons in a single column */
    gap: 1rem; /* Add spacing between icons */
    margin-top: 2.5rem; /* Add margin above the social links */
    justify-items: center; /* Center icons within their grid cells */
  }

  .social-button {
    width: 100%; /* Make buttons take full width */
    min-width: unset; /* Remove minimum width */
    font-size: 0.9rem; /* Adjust font size */
  }

  /* Footer adjustments */
  .footer {
    font-size: 0.8rem; /* Smaller font size for footer */
    padding: 1rem; /* Adjust padding */
  }
}

@media (max-width: 310px){
  .nav-links {
    grid-template-columns: repeat(2, 1fr); /* Create 2 columns */
    gap: 0.5rem; /* Adjust spacing between links */
    display: grid; /* Use grid layout */
    justify-items: center; /* Center items in each cell */
  }
}

/* Responsive Design for Extra Small Devices */
@media (max-width: 480px) {
  /* Header adjustments */
  .logo-img {
    height: 80px; /* Even smaller logo for very small screens */
  }
  .nav-links {
    flex-direction: row; /* Stack links horizontallt */
    gap: 0.5rem; /* Reduce spacing between links */
  }
  
   
  /* Make the header smaller */
  .header {
    padding: 0rem 0; /* Reduce padding */
  }
  .header-container {
    padding: 0.3rem 0; /* Reduce padding */
  }
  .header-left, .header-right {
    flex: unset; /* Remove flex sizing */
    text-align: center;
  }
  /* Center the header content */
  .centered-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the content */
    text-align: center;
    gap: 0.5rem; /* Reduce gap between elements */
  }
  .besttn-best{
    padding: 0.5rem 1rem; /* Adjust padding for smaller screens */
    font-size: 0.9rem; /* Smaller font size */
  }
  .logo {
    font-size: 1.6rem; /* Smaller font size for the name */
    margin-right: 0.5rem;
    }

  /* Navbar adjustments */
  .navbar a {
    font-size: 1rem; /* Smaller font size for links */
    padding: 0.4rem 0.8rem; /* Adjust padding */
  }

  /* Project cards adjustments */
  .project-card {
    padding: 1rem; /* Reduce padding inside cards */
    margin: 0.2rem 0;
  }

  /* Social links adjustments */
  .social-links {
    gap: 0.8rem; /* Reduce spacing between icons */
  }

  .social-button {
    font-size: 0.8rem; /* Smaller font size for buttons */
  }
  .social-links {
    list-style: none;
    padding: 0;
    margin: 0; 
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* Automatically adjust columns */
    gap: 1.5rem; /* Add spacing between icons */
    justify-items: center; /* Center icons within their grid cells */
}
  .social-links li {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .social-links a {
    text-decoration: none;
    color: #fff;
    font-size: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .social-links a.linkedin {
    background-color: #0077b5;
  }
  .social-links a.github {
    background-color: #333;
  }
  .social-links a.twitter {
    background-color: #1da1f2;
  }
  .social-links a.email {
    background-color: #d93025;
  }
  .social-links a.tiktok {
    background-color: #000000;
  }
  .social-links a.instagram {
    background-color: #e1306c;
  }
  .social-links a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  }
  .btn-primary {
    padding: 0.5rem 1rem; /* Adjust padding for smaller screens */
    font-size: 0.9rem; /* Smaller font size */
  }
  .skills li{
    margin: 0.8rem; /* Adjust margin for smaller screens */
  }
  .hero {
    text-align: center;
    padding: 4rem 2rem;
    margin: 0 auto;
  }
}
.social-links {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* Automatically adjust columns */
  gap: 1.5rem; /* Add spacing between icons */
  justify-items: center; /* Center icons within their grid cells */
}
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: left;
}
.skills li {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1rem;
  margin: 0.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition), box-shadow var(--transition);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: left;
}
.skills li:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
  .skills li img {
    width: 30px;
    height: 30px;
    margin-right: 0.5rem;
  }
  .skills li span {
    font-size: 1rem;
    color: var(--text);
  }
  .skills li:hover span {
    color: var(--accent);
  }
  .skills li:hover img {
    filter: brightness(0) invert(1);
  }
