/* General Styles */
body {
    font-family: 'SF Pro Display', Arial, sans-serif; /* Apple-like font */
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 75px;
}

body.no-scroll {
    overflow: hidden !important;
}

/* Navigation Bar */
nav {
    background: rgba(51, 51, 51, 0.9); /* Slight transparency */
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
}

/* Background Animation */
.absolute {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    display: flex;
    justify-content: center;
    gap: 1rem;
    background-color: rgb(212, 250, 237);
}
  
  .bg-shape1, .bg-shape2, .bg-shape3 {
    position: absolute;
    border-radius: 9999px;
    opacity: 0.5;
    filter: blur(90px);
    will-change: transform;
    transition: transform 0.5s ease-out; /* Smoother motion */
    /* Center initially */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  .bg-shape1 {
    width: 400px;
    height: 400px;
    background-color: rgb(255, 72, 173);
    animation: one 10s infinite;
  }
  
  .bg-shape2 {
    width: 300px;
    height: 300px;
    background-color: rgb(140, 0, 215);
    animation: two 10s infinite;
  }
  
  .bg-shape3 {
    width: 300px;
    height: 300px;
    background-color: rgb(30, 0, 255);
    animation: three 10s infinite;
  }
  
  @keyframes one {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
    17% { transform: translate(-50%, -50%) translate(-40vw, -40vh); }
    28% { transform: translate(-50%, -50%) translate(-40vw, 20vh); }
    57% { transform: translate(-50%, -50%) translate(40vw, -20vh); }
    71% { transform: translate(-50%, -50%) translate(50vw, 50vh); }
  }
  
  @keyframes two {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
    18% { transform: translate(-50%, -50%) translate(40vw, 40vh); }
    40% { transform: translate(-50%, -50%) translate(-40vw, 10vh); }
    72% { transform: translate(-50%, -50%) translate(30vw, -40vh); }
  }
  
  @keyframes three {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
    23% { transform: translate(-50%, -50%) translate(0vw, 60vh); }
    36% { transform: translate(-50%, -50%) translate(30vw, -30vh); }
    53% { transform: translate(-50%, -50%) translate(-30vw, 20vh); }
  }
  

  /* Smooth Apple-Style Buttons */
.btn {
    transition: all 0.3s ease-in-out;
    border-radius: 20px;
    font-weight: 500;
    margin: 10px 5px;

}
.btn:hover {
    transform: scale(1.10);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Featured Projects */
.featured-projects {
    background: transparent; /* Removes the white background */
    box-shadow: none;
    padding: 50px 0;
}

/* Apple-Style Cards */
.project-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 10px 0px;
}

.project-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Project Buttons (Aligned Correctly) */
.project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto; /* Pushes buttons to the bottom */
    justify-content: flex-start; /* Keeps buttons left-aligned */
}

.project-buttons a {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 15px;
}

@media (max-width: 767px) {
    .project-buttons {
        flex-direction: column;
        align-items: flex-start; /* Ensures buttons stay left-aligned when stacked */
    }

    .project-buttons a {
        width: 100%; /* Makes buttons full-width when stacked */
    }
}

/* Tech Stack Container */
.tech-stack {
    background: transparent;
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    margin: auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tech Icons Layout */
.tech-items {
    display: flex;
    flex-wrap: wrap; /* Prevents wrapping onto a new row */
    justify-content: center;
    align-items: center;
    gap: 30px; /* Increases space between icons */
    transition: transform 0.3s ease-in-out;
}

/* Individual Tech Items */
.tech-item {
    perspective: 1000px;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
    position: relative;
}

/* Flip Effect */
.tech-flip {
    position: relative;
    width: 80px;
    height: 80px;
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

/* Icon and Label Styles */
.tech-flip img,
.tech-flip .tech-label {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px; /* Prevents text from being too large */
    font-weight: bold;
    padding: 5px;
    text-align: center;
}

/* Default Icon View */
.tech-flip img {
    transform: rotateY(0deg);
}

/* Flipped Text View */
.tech-flip .tech-label {
    background: white;
    border: none;
    transform: rotateY(180deg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Hover Effect: Flip and Scale */
.tech-item:hover .tech-flip {
    transform: rotateY(180deg);
    scale: 1.2; /* Makes hovered item larger */
}

/* Shift the Other Icons on Hover */
.tech-items:hover .tech-item {
    transition: transform 0.3s ease-in-out;
}
.tech-item:hover ~ .tech-item {
    transform: translateX(40px);
}
.tech-item:has(~ .tech-item:hover) {
    transform: translateX(-40px);
}

/* Ensure Icons Remain in a Single Line */
@media (max-width: 768px) {
    .tech-items {
        flex-wrap: wrap; /* Allows wrapping on smaller screens */
    }
}

.about-me {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.test-container {
    max-width: 900px;  /* Limits width */
    margin: 0 auto;  /* Centers the bubble */
    padding: 30px;
    border-radius: 20px;  /* Smooth rounded edges */
    background: white;  /* Clean white */
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);  /* Soft Apple-like shadow */
}

.profile-picture {
    width: 250px;  /* Set a fixed width */
    height: 250px; /* Ensure height matches width (square) */
    border-radius: 50%; /* Makes it a perfect circle */
    object-fit: cover; /* Ensures the face is centered */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
}

/* Contact Section */
.contact .btn {
    width: 180px;
    padding: 12px 20px;
    font-size: 16px;
}

.contact .d-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 15px;
}

/* Mobile Fix for Contact Section */
@media (max-width: 768px) {
    .contact .btn {
        width: 100%;
        font-size: 14px;
        padding: 12px;
    }

    .contact .d-flex {
        flex-direction: column;
        gap: 15px;
    }
}

.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh;
    padding-top: 60px;
}

form {
    background: white;
    padding: 40px 30px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

form h2 {
    margin-bottom: 25px;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid #ccc;
    transition: border 0.3s ease-in-out;
}

form input:focus {
    outline: none;
    border-color: #007aff;
}

form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 30px;
    background-color: #307aff;
    color: white;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background-color 0.3s;
}

form .btn:hover {
    transform: scale(1.03);
    background-color: #2563eb;
}

.error-message {
    color: red;
    margin-bottom: 10px;
    font-weight: 500;
    text-align: center;
}

.small-link {
    margin-top: 15px;
    font-size: 14px;
}

.btn-outline {
    background: none;
    border: 1px solid #2563eb;
    color: #2563eb;
    padding: 8px 16px;
    border-radius: 30px;
    margin-left: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

.about-me ul {
    list-style: disc;
    padding-left: 1.5rem;
}


.about-me li {
    margin-bottom: 0.5rem;
}

.about-me {
    margin-top: 120px; 
}

.certifications-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
  }
  
  .cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .cert-card {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
  }
  
  .cert-card h2 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
  }
  
  .cert-card p {
    margin: 0.25rem 0;
  }
  
  .cert-card a {
    display: inline-block;
    margin-top: 0.5rem;
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
  }
  
  .cert-card a:hover {
    text-decoration: underline;
  }
  
  .cert-subtext {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
  }
  
  .btn-primary {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: #007bff;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
  }
  
  .btn-primary:hover {
    background-color: #0056b3;
  }
  
  .tesla-section {
    max-width: 900px;
    margin: auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .tesla-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .tesla-section .btn {
    background-color: #2563eb;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
  }

  .tesla-section .btn:hover {
    transform: scale(1.05);
    background-color: #174fc9;
  }

  #output, #events {
    margin-top: 30px;
    text-align: left;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }

  th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
  }

  th {
    background-color: #f8f8f8;
    font-weight: 600;
  }

  .timestamp-note {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
  }

