/* ======================
   General Styles
   ====================== */
   body {
    margin: 0;
    padding: 10px;
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/images/bg1.jpg') repeat;
    color: #fff;
    perspective: 1000px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

h2, h3 {
    text-shadow: #000000 2px 2px;
}

body h3 {
    font-size: 2rem;
    color: #ffd700;
    margin: 0;
}
body h4 {
    font-size: 1.5rem;
    color: #ffd700;
    margin: 0;
}

/* ======================
   Container for Centering Content
   ====================== */
.container {
    width: 70%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 20px;
    }
}

/* ======================
   Navigation Bar Styles
   ====================== */
/* Update the nav styles in styles.css */
nav {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on small screens */
    justify-content: center;
    padding: 15px;
    background-color: rgba(10, 10, 10, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

nav .button {
    position: relative;
    margin: 5px 10px; /* Reduced margin for mobile */
}

nav .button a {
    color: #fff;
    text-decoration: none;
    font-size: clamp(16px, 2vw, 18px); /* Fluid typography */
    padding: 8px 15px;
    transition: color 0.3s ease, background-color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    nav .button {
        margin: 5px;
    }
    nav .button a {
        padding: 6px 10px;
        font-size: 14px;
    }
}



/* ======================
   Hero Section Styles
   ====================== */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(75, 0, 130, 0.5),
        rgba(0, 0, 139, 0.5),
        rgba(195, 0, 255, 0.5)
    );
    background-size: 200% 200%;
    animation: moveGlow 20s infinite alternate ease-in-out;
    position: relative;
    overflow: hidden;
}

.hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    object-fit: cover;
    z-index: -2;
}

@keyframes moveGlow {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.hero h1 {
    font-size: 4rem;
    margin: 0;
    z-index: 2;
    color: #1A73E8;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.2), -1px -1px 5px rgba(23, 114, 226, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin: 10px 0 0;
    z-index: 1;
    color: #fff;
}

/* ======================
   Call to Action Button
   ====================== */
   .btn {
    --clr-font-main: hsla(0 0% 20% / 100);
    --btn-bg-1: rgb(150, 97, 255);
    --btn-bg-2: hsla(217 100% 56% / 1);
    --btn-bg-color: hsla(360 100% 100% / 1);
    --radii: 0.5em;
    
    cursor: pointer;
    margin-bottom: 20px;
    padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 4vw, 1.25rem);
    min-width: max(120px, 10vw);
    min-height: 44px;
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-family: 'Montserrat', sans-serif;
    transition: 0.8s;
    background-size: 280% auto;
    background-image: linear-gradient(
        325deg,
        var(--btn-bg-2) 0%,
        var(--btn-bg-1) 55%,
        var(--btn-bg-2) 90%
    );
    border: none;
    border-radius: var(--radii);
    color: var(--btn-bg-color);
    box-shadow:
        0px 0px 20px rgba(71, 83, 255, 0.5),
        0px 5px 5px -1px rgba(58, 125, 233, 0.25),
        inset 4px 4px 8px rgba(200, 117, 251, 0.5),
        inset -4px -4px 8px rgba(19, 95, 216, 0.35);
}

/* Optional: Hover effects for better interactivity */
.btn:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow:
        0px 0px 25px rgba(71, 83, 255, 0.7),
        0px 7px 7px -1px rgba(58, 125, 233, 0.3),
        inset 4px 4px 8px rgba(200, 117, 251, 0.6),
        inset -4px -4px 8px rgba(19, 95, 216, 0.4);
}

/* Active state */
.btn:active {
    transform: translateY(1px);
    box-shadow:
        0px 0px 15px rgba(71, 83, 255, 0.4),
        0px 3px 3px -1px rgba(58, 125, 233, 0.2),
        inset 4px 4px 8px rgba(200, 117, 251, 0.4),
        inset -4px -4px 8px rgba(19, 95, 216, 0.3);
}

/* Media query for very small screens if needed */
@media (max-width: 480px) {
    .btn {
        min-width: 100px;
        padding: 0.75rem 1rem;
    }
}

.btn:hover {
    background-position: right top;
}

.btn:is(:focus, :focus-visible, :active) {
    outline: none;
    box-shadow:
        0 0 0 3px var(--btn-bg-color),
        0 0 0 6px var(--btn-bg-2);
}

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: linear;
    }
}

/* ======================
   Social Icons Styles
   ====================== */
.social-icons {
    margin-top: 20px;
    z-index: 1;
}

.social-icons a {
    color: #fff;
    font-size: 2rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: #1A73E8;
    transform: translateY(-5px);
}

/* ======================
   Content Section Styles
   ====================== */
.container {
    width: 90%; /* More flexible width */
    max-width: 1200px; /* Maximum width */
    margin: 0 auto;
    padding: 0 15px;
}

.content {
    padding: 20px 0;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    .content p, .content ul li {
        font-size: 1rem; /* Slightly smaller text on mobile */
        line-height: 1.5;
    }
}


.content {
    padding: 10px 0;
    text-align: center;
}
@media (max-width: 768px) {
    .content  {
        width: 100%;
        padding: 0 0;
        
    }
}

.content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.content p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ccc;
    text-align: justify;
    padding: 10px;
}

.content ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
    margin: 0 auto;
}

.content ul li {
    margin-bottom: 10px;
    color: #ccc;
}

/* ======================
   Projects Section Styles
   ====================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}
#projects {
    text-align: center;
}

#projects .container {
    border-radius: 5px;
    box-shadow: #000000 2px 2px 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

.project-card {
    background: rgba(7, 12, 82, 0.5);
    border-radius: 8px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.3), 0 0 0 2px #1A73E8;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5), 0 0 30px #1A73E8;
}

.project-card img {
    width: 90%;
    height: auto;
    border-radius: 0px 0px 8px 8px;
}

.project-card h3 {
    margin: 1rem 0;
    color: #ffd700;
}

.project-card p {
    padding: 0 1rem;
    color: #ccc;
    font-size:medium;
}

.project-card a {
    display: inline-block;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background: #1A73E8;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* ======================
   Footer (Contact Section) Styles
   ====================== */
footer {
    width: 70%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    background-color: rgba(26, 26, 26, 0.7);
    text-align: center;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    footer {
        width: 100%;
        padding: 0 10px;
        align-items: center; /* Ensure content stays centered */
        text-align: center; /* Center-align text */
    }
}

footer h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ffd700;
}

footer p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #ccc;
}

footer a {
    color: #ffd700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* Contact Form Styles */
.contact-form {
    max-width: 700px;
    width: 100%;
    padding: 20px;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 8px;
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.3);
    margin: 20px auto; /* Center horizontally */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content inside */
    justify-content: center; /* Center vertically */
}
@media (max-width: 768px) {
    .contact-form {
        width: 100%;
        padding: 0 0px;
    }
}

.contact-form input,
.contact-form textarea {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #1A73E8;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.fchart {
    width: 90%;    
    padding: auto;
}


/* ======================
   About Me Section Styles
   ====================== */
#about .container {
    border-radius: 5px;
    box-shadow: #000000 2px 2px 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* About Me Grid Styles */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 20px;
}
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.about-card {
    background: rgba(7, 12, 82, 0.5);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    perspective: 1000px;
    opacity: 0.8;
}

.about-card:hover {
    transform: translateY(-10px) rotateX(10deg) rotateY(10deg);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5), 0 0 30px #1A73E8;
}

.about-card i {
    font-size: 3rem;
    color: #1A73E8;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

.about-card:hover i {
    transform: rotateY(180deg) scale(1.2);
    color: #ffd700;
}

.about-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1A73E8;
}

.about-card p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
}

/* Navigation Buttons */
.project-navigation {
  display: flex;    
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}

.project-navigation .btn {
  background-color: #1a73e8;
  color: #fff;
  padding: 20px 20px 0px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  row-gap: 10px;
  flex: 1;
  min-width: 150px;
  max-width: 200px;
}

.project-navigation .btn:hover {
  background-color: #1557a3;
  transform: translateY(-2px);
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    min-width: 0; /* Prevent overflow */
}

@media (max-width: 480px) {
    .grid-list {
        grid-template-columns: 1fr;
    }
    .list-item {
        padding: 10px;
    }
}
.image-content-grid, .content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: center;
}

.center-image, .image-content-grid img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .image-content-grid, .content-grid {
        grid-template-columns: 1fr;
    }
}

/* Graphic Design Grid Styles */
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
  }
  
  .design-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
  }
  
  .design-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
  }
  
  .design-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .design-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 115, 232, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .zoom-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
  }
  
  /* Hover Effects */
  .design-item:hover {
    transform: translateY(-10px);
  }
  
  .design-item:hover .design-img {
    transform: scale(1.1);
  }
  
  .design-item:hover .design-overlay {
    opacity: 1;
  }
  
  /* Lightbox Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
  }
  
  .modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }
  
  .modal-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
  }
  
  .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    cursor: pointer;
  }
  
  @media (max-width: 768px) {
    .design-grid {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
  }
/* Dynamic Grid System - Preserves Full Image Content */
.dynamic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-gap: 25px;
    grid-auto-flow: dense;
    margin-top: 40px;
  }
  
  .grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1a; /* Dark background for empty spaces */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
  }
  
  .grid-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Changed from 'cover' to 'contain' */
    padding: 10px; /* Creates breathing space around images */
    transition: transform 0.5s ease;
  }
  
  /* Size Variations */
  .grid-item.tall {
    grid-row: span 2;
    height: 425px; /* 200px + 200px + 25px gap */
  }
  
  .grid-item.wide {
    grid-column: span 2;
  }
  
  .grid-item.large {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  /* Hover Effects */
  .grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
  }
  
  .grid-item:hover img {
    transform: scale(1.03);
  }
  
  .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 115, 232, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .img-overlay i {
    color: white;
    font-size: 2rem;
  }
  
  .grid-item:hover .img-overlay {
    opacity: 1;
  }
  
  /* Lightbox Styles */
  .lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    box-sizing: border-box;
  }
  
  .lightbox-content {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
  }
  
  .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    cursor: pointer;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .dynamic-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      grid-auto-rows: 180px;
    }
    
    .grid-item.tall {
      height: 385px; /* 180px + 180px + 25px gap */
    }
    
    .grid-item.wide,
    .grid-item.large {
      grid-column: span 1;
    }
  }

  /* ======================
   Instagram, Twitter link area
   ====================== */
  @import url("https://fonts.googleapis.com/icon?family=Material+Icons");
  .spread {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: rgb(255, 192, 203,0.1);
    /* color: #fff; */
    padding: 0px;
    border-radius: 8px;
    margin-top: 0px;
  }
  .spread .material-icons {
    color: #ff00bb;
    font-size: 1.5rem;
  }
  .spread .bold {
    font-size: 1.2rem;
    align-content: space-between;
    color: #ff00bb;        
  }

  /*tooltip styles*/
  .tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-content: center;
    text-align: center;
  }

  .tool-item {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* Added to center items */
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
  }

  .tool-item img {
    width: 40px;
    height: 40px;
  }
