/* CSS Custom Properties for Light and Dark Themes */
:root {
  /* Light Mode Colors */
  --bg-primary: #fff;
  --bg-secondary: #f0f4f8;
  --bg-tertiary: #fefefe;
  --text-primary: #333;
  --text-secondary: #555;
  --text-light: #87def0;
  --accent-primary: #00B4D8;
  --accent-secondary: #48CAE4;
  --accent-tertiary: #0096C7;
  
  /* Gradients */
  --gradient-primary: linear-gradient(150deg, #0096C7, #00B4D8, #48CAE4);
  --gradient-hero: linear-gradient(135deg, #0096C7, #00B4D8, #48CAE4);
  --gradient-card: linear-gradient(135deg, #0096C7, #00B4D8, #48CAE4);
  --gradient-contact: linear-gradient(135deg, #0096C7, #00B4D8, #48CAE4);
  --gradient-footer: linear-gradient(135deg, #0096C7, #00B4D8, #48CAE4);
  --gradient-article-bg: linear-gradient(135deg, #fefefe 80%, #e6f0ff 100%);
  --gradient-btn: linear-gradient(135deg, #00B4D8, #48CAE4);
  --gradient-btn-hover: linear-gradient(135deg, #0096C7, #00B4D8);
  
  /* Glass effects */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(200, 230, 255, 0.18);
  --glass-backdrop: rgba(255, 255, 255, 0.2);
  --glass-contact-backdrop: rgba(255, 255, 255, 0.02);
  
  /* Shadows */
  --shadow-light: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 12px 28px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-glass: 0 8px 32px rgba(0, 180, 216, 0.12);
  
  /* Focus outline */
  --focus-outline: #0078D4;
  --focus-shadow: #BEE3F8;
}

/* Dark Mode Colors */
[data-theme="dark"] {
  /* Dark Mode Colors */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #1c2128;
  --text-primary: #e6edf3;
  --text-secondary: #b1bac4;
  --text-light: #7dd3fc;
  --accent-primary: #58a6ff;
  --accent-secondary: #79c0ff;
  --accent-tertiary: #388bfd;
  
  /* Dark Mode Gradients */
  --gradient-primary: linear-gradient(150deg, #1e3a8a, #1e40af, #3b82f6);
  --gradient-hero: linear-gradient(135deg, #0f172a, #1e293b, #334155);
  --gradient-card: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
  --gradient-contact: linear-gradient(135deg, #0f172a, #1e293b, #334155);
  --gradient-footer: linear-gradient(135deg, #0f172a, #1e293b, #334155);
  --gradient-article-bg: linear-gradient(135deg, #0d1117 80%, #161b22 100%);
  --gradient-btn: linear-gradient(135deg, #3b82f6, #60a5fa);
  --gradient-btn-hover: linear-gradient(135deg, #1e40af, #3b82f6);
  
  /* Dark Glass effects */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(88, 166, 255, 0.2);
  --glass-backdrop: rgba(0, 0, 0, 0.3);
  --glass-contact-backdrop: rgba(0, 0, 0, 0.2);
  
  /* Dark Shadows */
  --shadow-light: 0 10px 25px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 12px 28px rgba(0, 0, 0, 0.4);
  --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.7);
  --shadow-glass: 0 8px 32px rgba(88, 166, 255, 0.15);
  
  /* Dark Focus outline */
  --focus-outline: #58a6ff;
  --focus-shadow: rgba(88, 166, 255, 0.3);
}

/* Auto Dark Mode based on system preference */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Dark Mode Colors */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #1c2128;
    --text-primary: #e6edf3;
    --text-secondary: #b1bac4;
    --text-light: #7dd3fc;
    --accent-primary: #58a6ff;
    --accent-secondary: #79c0ff;
    --accent-tertiary: #388bfd;
    
    /* Dark Mode Gradients */
    --gradient-primary: linear-gradient(150deg, #1e3a8a, #1e40af, #3b82f6);
    --gradient-hero: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    --gradient-card: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
    --gradient-contact: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    --gradient-footer: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    --gradient-article-bg: linear-gradient(135deg, #0d1117 80%, #161b22 100%);
    --gradient-btn: linear-gradient(135deg, #3b82f6, #60a5fa);
    --gradient-btn-hover: linear-gradient(135deg, #1e40af, #3b82f6);
    
    /* Dark Glass effects */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(88, 166, 255, 0.2);
    --glass-backdrop: rgba(0, 0, 0, 0.3);
    --glass-contact-backdrop: rgba(0, 0, 0, 0.2);
    
    /* Dark Shadows */
    --shadow-light: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 12px 28px rgba(0, 0, 0, 0.4);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.7);
    --shadow-glass: 0 8px 32px rgba(88, 166, 255, 0.15);
    
    /* Dark Focus outline */
    --focus-outline: #58a6ff;
    --focus-shadow: rgba(88, 166, 255, 0.3);
  }
}

/* Theme Toggle Button (Add this to your HTML) */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-light);
}

/* Rest of your CSS with theme variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a:focus, button:focus, .btn:focus, .contact-icon:focus {
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-shadow);
}

header {
    width: 100%;
    height: 90px;
    background: var(--gradient-primary);
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    position: fixed;
    font-family: 'quicksand', sans-serif;
    font-size: 30px;
    border-radius: 10px;
    z-index: 1000;
    opacity: 0.9;
}

img {
    width: 200px;
    height: 80px;
    margin: 10px 0 0 10px;
    padding: 0;
}

.logo-container {
    position: relative;
    width: 200px;
    height: 80px;
    margin: 10px 0 0 10px;
}

#logo1, #logo2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 60px;
    transition: opacity 0.5s ease;
}

#logo2 {
    opacity: 0;
}

.hidden {
    opacity: 0;
}

ul {
    padding: 0;
    margin-top: 15px;
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-right: 20px;
}

li {
    margin: 0 20px;
    font-size: 18px;
    color: #fff;
}

li > a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

li > a:hover {
    color: #fff;
    transition: ease-in 0.3s;
    border: dotted 2px #fff;
    padding: 5px 10px;
    border-radius: 10px;
}

/* Basic layout */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

nav ul {
  display: flex;
  gap: 1.5rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav ul {
    display: none;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
  }

  nav ul.show {
    display: flex;
  }
}

#heroVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -100;
    opacity: 0.3;
    filter: brightness(0.6);
}

#hero {
    width: 100%;
    height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0.9;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: var(--glass-backdrop);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-family: 'Baloo 2', sans-serif;
    margin-bottom: 5px;
    opacity: 0;
    animation: slideInLeft 1.5s ease forwards, fadeIn 1.5s ease forwards;
}

.hero-content h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    opacity: 0;
    animation: slideInRight 1.5s ease forwards, fadeIn 1.5s ease forwards;
    animation-delay: 0.5s;
    font-family: 'quicksand', sans-serif;
}

.hero-content p {
    font-size: 1rem;
    font-weight: lighter;
    font-family: 'quicksand', sans-serif;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #fff;
    width: 0;
    animation: fadeIn 2s ease-in-out forwards, typewriter 3s steps(30) forwards;
    animation-delay: 2.5s;
}

.cta-buttons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-cta {
  font-family: 'Quicksand', sans-serif;
  margin-top: 30px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s ease;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

.hire-me {
  background: var(--gradient-btn);
  color: white;
}

.download-resume {
  background: var(--gradient-btn);
  color: white;
}

.btn-cta:hover {
  transform: scale(0.95);
  transition: all 0.6s ease;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Add keyframes for typewriter animation */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

#about {
    width: 100%;
    min-height: 100vh;
    font-family: 'Quicksand', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--bg-secondary);
    padding: 60px 20px;
}

#about h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-secondary);
    font-size: 2.5rem;
    font-family: 'Baloo 2', cursive;
}

.about-container {
    display: flex;
    flex-direction: row;
    gap: 50px;
    background: var(--gradient-card);
    width: 85%;
    border-radius: 20px;
    margin: 0 auto;
    padding: 30px;
    box-shadow: var(--shadow-light);
    height: auto;
    align-items: center;
    justify-content: space-between;
}

.about-image {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: left;
    color: #fff;
    max-width: 600px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-text strong {
    font-weight: bold;
}

.about-container p {
    font-size: 1rem;
    color: #fff;
    opacity: 0.9;
}

.logo {
    transition: all 0.7s ease;
}

.active-link {
    background-color: white;
    color: var(--accent-primary) !important;
    padding: 6px 12px;
    border-radius: 10px;
    transition: background-color 0.7s ease, color 0.7s ease;
}

.projects-section {
    padding: 5rem 2rem;
    background-color: var(--bg-tertiary);
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-family: 'Baloo 2', 'cursive';
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-family: 'quicksand', sans-serif;
    font-weight: 400;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: 'Baloo 2', cursive;
    border: 1px solid var(--glass-border);
}

.project-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: var(--shadow-medium);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.project-image {
    width: 90%;
    height: 180px;
    align-self: center;
    object-fit: contain;
    border-radius: 10px;
}

.project-content {
    padding: 1.5rem;
    text-align: center;
}

.project-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 2rem;
    text-decoration: none;
    color: white;
    transition: background 0.3s ease;
}

.btn-preview {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 2rem;
    text-decoration: none;
    color: white;
    transition: background 0.3s ease;
}

.preview {
    background: var(--accent-tertiary);
}

.full {
    background: var(--accent-primary);
}

.preview:hover {
    background: var(--accent-secondary);
}

.full:hover {
    background: var(--accent-tertiary);
}

/* View More Card */
.view-more-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
    cursor: pointer;
    padding: 2rem;
}

.view-more-card:hover {
    transform: scale(1.03);
}

.view-more-content p {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    font-family: 'Baloo 2', cursive;
}

.view-more {
    background: var(--accent-primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    font-family: 'quicksand', sans-serif;
}

.view-more:hover {
    background: var(--accent-tertiary);
}

.certHeader {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-family: 'Baloo 2', cursive;
}

#myCerts {
    font-family: 'Quicksand', sans-serif;
    background: var(--accent-secondary);
    color: #fff;
}

#myCerts:hover {
    background: var(--accent-primary);
}

#certLink {
    text-decoration: none;
    color: #fff;
}

/* Modal Overlay */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

/* Modal Content */
.modal-content {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-glass);
    animation: popUp 0.3s ease;
    max-width: 80%;
    max-height: 90vh;
    min-width: 400px;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    max-width: 100%;
    border-radius: 12px;
    object-fit: contain;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
}

.preview-btn {
    background: var(--accent-tertiary);
    color: white;
    padding: 10px;
    display: inline-block;
}

.preview-btn:hover {
    background: var(--accent-secondary);
}

/* Animation */
@keyframes popUp {
    from {
      transform: scale(0.8);
      opacity: 0;
    }
    to {
      transform: scale(1);
      opacity: 1;
    }
}

/* Update your existing preview modal styles for mobile */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        height: auto;
        max-height: 90vh;
        margin: 20px auto;
    }

    .modal-content img {
        width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: contain;
    }

    .close-btn {
        font-size: 32px;
        top: 10px;
        right: 10px;
    }

    .logo-container {
        position: relative;
        width: 150px;
        height: 60px;
        margin: 10px 0 0 10px;
    }

    #logo1, #logo2 {
        position: absolute;
        top: 0;
        left: 0;
        width: 120px;
        height: 45px;
        transition: opacity 0.5s ease;
    }
}

#skills {
    padding: 5rem 2rem;
    background-color: var(--bg-secondary);
    text-align: center;
}

.skills-title {
    font-size: 2.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-family: 'Baloo 2', cursive;
}

.skills-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 3rem;
    font-family: 'quicksand', sans-serif;
    font-weight: 400;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 2rem;
}

.skills-card {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.skills-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.skills-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-family: 'Baloo 2', cursive;
}

.skills-card ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px 32px;
}

.skills-card ul li {
    font-size: 1rem;
    margin: 12px 0;
    color: var(--text-secondary);
    font-family: 'quicksand', sans-serif;
    display: inline-block;
    text-align: center;
    position: relative;
    padding-left: 20px;
    min-width: 160px;
    box-sizing: border-box;
}

.skills-card ul li::before {
    content: '•';
    color: var(--accent-primary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* Update the existing skills section media queries */
@media screen and (max-width: 1024px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem;
    }

    .skills-card {
        text-align: center;
    }

    .skills-card ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .skills-card ul li {
        text-align: center;
        margin: 8px 0;
    }

    .skills-card h3 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
}

/* Additional adjustments for even smaller screens */
@media screen and (max-width: 768px) {
    .skills-container {
        padding: 0 1rem;
    }

    .skills-card {
        padding: 1.5rem;
    }
}

#contacts {
    width: 100%;
    min-height: 100vh;
    background: var(--gradient-contact);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

#contacts::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: var(--glass-contact-backdrop);
    z-index: 1;
}

#contacts h2 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 1rem;
    font-family: 'Baloo 2', cursive;
    position: relative;
    z-index: 2;
}

#contacts p {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #fff;
    font-family: 'quicksand', sans-serif;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.contact-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.contact-icon {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: var(--shadow-light);
}

.contact-icon:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    color: #fff;
}

.contact-icon:hover i {
    transform: scale(1.1);
}

.contact-icon span {
    font-size: 1.2rem;
    font-family: 'quicksand', sans-serif;
    color: #fff;
}

/* Footer Styles */
.footer {
    width: 100%;
    background: var(--gradient-footer);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: var(--glass-contact-backdrop);
    z-index: 1;
}

.copyright {
    position: relative;
    z-index: 2;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-glass);
    max-width: 600px;
    margin: 0 auto;
}

.copyright p {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    letter-spacing: 1px;
}

.back-to-top {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glass);
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
.theme-toggle {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    position: fixed;
    top: auto; /* optional reset */
    bottom: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glass);
    z-index: 1000;
}

.theme-toggle:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* Show the button when user scrolls down */
.show {
    display: flex;
}

/* Articles Section - Glassmorphism Theme */
.articles-section {
  padding: 5rem 2rem;
  background: var(--gradient-article-bg);
}

.articles-section .section-title {
  font-size: 2.4rem;
  font-family: 'Baloo 2', cursive;
  color: var(--accent-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.articles-section .section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--accent-tertiary);
  margin-bottom: 2.5rem;
  font-family: 'Quicksand', sans-serif;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.article-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-glass);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.3s, transform 0.3s;
}

.article-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-4px) scale(1.03);
}

.article-title {
  font-size: 1.3rem;
  font-family: 'Baloo 2', cursive;
  color: var(--accent-primary);
  margin-bottom: 0.7rem;
}

.article-desc {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: 'Quicksand', sans-serif;
}

.article-platform {
  font-size: 0.95rem;
  color: var(--accent-tertiary);
  margin-bottom: 1.2rem;
  font-family: 'Quicksand', sans-serif;
}

.btn-article {
  background: var(--gradient-btn);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-weight: 600;
  text-decoration: none;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  box-shadow: var(--shadow-glass);
  transition: background 0.3s, transform 0.3s;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-block;
}

.btn-article:hover, .btn-article:focus {
  background: var(--gradient-btn-hover);
  color: #fff;
  transform: scale(0.97);
  box-shadow: var(--shadow-medium);
}

.back-btn {
  display: inline-block;
  margin: 2.5rem 0 1.5rem 2vw;
  padding: 0.5rem 1.2rem;
  background: var(--accent-primary);
  color: #fff;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-glass);
  transition: background 0.2s, color 0.2s;
  position: relative;
  top: 4.5rem;
}

.back-btn:hover {
  background: var(--accent-secondary);
  color: #fff;
  transition: ease-in 0.3s;
  border: dotted 2px #fff;
  padding: 5px 10px;
  border-radius: 10px;
}

/* Media Queries */
/* Large Screens (1200px and up) */
@media screen and (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        padding: 0 4rem;
    }

    .contact-icons {
        grid-template-columns: repeat(5, 1fr);
        gap: 2rem;
        padding: 0 4rem;
    }
}

/* Medium Screens (768px to 1199px) */
@media screen and (max-width: 1199px) {
    /* Header */
    header {
        height: 80px;
        border-radius: 0 0 10px 10px;
    }

    img {
        width: 160px;
        height: 60px;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }

    /* About Section */
    .about-container {
        width: 90%;
        padding: 25px;
        gap: 30px;
    }

    .about-image {
        width: 200px;
        height: 200px;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        padding: 0 2rem;
    }

    /* Contact Section */
    .contact-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Tablet Screens (768px to 991px) */
@media screen and (max-width: 991px) {
    /* Navigation */
    ul {
        margin-top: 30px;
    }

    li {
        margin: 0 15px;
        font-size: 16px;
    }

    /* About Section */
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: center;
        align-items: center;
    }

    /* Skills Section */
    .skills-container {
        padding: 0 1rem;
    }
}

/* Mobile Screens (576px to 767px) */
@media screen and (max-width: 767px) {
    .btn-preview {
        display: none;
    }
    
    /* Header */
    header {
        height: 60px;
        padding: 0 10px;
        flex-direction: row;
        align-items: center;
    }

    img {
        width: 170px;
        height: 70px;
    }

    ul {
        margin: 0;
        flex-direction: row;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    li {
        margin: 0 5px;
        font-size: 12px;
    }

    li > a {
        padding: 3px 6px;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: minmax(100px, 2fr);
        gap: 1.5rem;
        padding: 0 1rem;
    }

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

    /* Contact Section */
    .contact-icons {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    #contacts h2 {
        font-size: 2.2rem;
    }
    
    /* Articles Section */
    .articles-section {
        padding: 3rem 0.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .article-card {
        padding: 1.2rem 0.7rem;
    }
}

/* Small Mobile Screens (575px and below) */
@media screen and (max-width: 575px) {
    /* Hero Section */
    .hero-content h1 {
        font-size: 1.8rem;
    }

    /* About Section */
    .about-image {
        width: 180px;
        height: 180px;
    }

    .about-text p {
        font-size: 1rem;
    }

    /* Contact Section */
    .contact-icons {
        grid-template-columns: 2fr;
        gap: 1rem;
    }

    .contact-icon {
        padding: 1.5rem;
    }

    /* Footer */
    .copyright {
        width: 90%;
        padding: 1rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
}


}

/* Extra Small Screens */
@media screen and (max-width: 380px) {
    li {
        font-size: 11px;
        margin: 0 3px;
    }

    img {
        width: 80px;
        height: 30px;
    }
}

/* Landscape Mode Fixes */
@media screen and (max-height: 500px) and (orientation: landscape) {
    #hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0;
    }

    .about-container {
        padding: 20px;
    }

    #contacts {
        height: auto;
        min-height: 100vh;
        padding: 80px 20px;
    }
}