
/* ===== General Page Styling ===== */
/* General Page Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: white;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}


/* ===== Header Section ===== */
/* Header Section */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2% 5%; 
    width: 100%;
}

/* Left side */
.header-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 5%;
}

/* Right side */
.header-right {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 17%;
}

/* Profile Picture */
.profile-pic {
    width: 375px;
    height: 375px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #00c3ff;
}
.profile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px; /* Pulls image+button higher */
    margin-bottom: 10px;
}

.profile-wrapper .header-button {
    margin-top: 20px;
}


/* Center header content on landing */
.centered-header {
  align-items: center !important;
  text-align: center;
}

/* Adjust About Me strong color for balance */
.about-me p {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1em;
}


/* Prevent vertical stacking of header buttons early */
.presentation-buttons {
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.work-buttons {
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}



/* Header Buttons */
.header-button {
    display: inline-block;
    background: #00c3ff;
    padding: 1vw 2vw;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    margin: 1vw 0.5vw;
    transition: transform 0.3s ease-in-out, background 0.3s;
}

.header-button:hover {
    transform: scale(1.1);
    background: #0077b6;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Fix for technical skills layout */
    gap: 2vw;
    max-width: 80%;
    margin: 5% auto;
    text-align: center;
}

.technical-skills {
    grid-template-rows: repeat(2, auto); /* Divides technical skills into 2 rows */
}

/* Professional Skills */
.professional-skills {
    grid-template-columns: repeat(3, 1fr);
}

/* Skill Cards */
.skill {
    background: #1e1e1e; /* Keep the dark background */
    padding: 1vw;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Ensures spacing for the info icon */
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    position: relative; /* Important for popup positioning */
}

.skill:hover {
    transform: scale(1.1);
}

.info-icon {
    font-size: 18px;
    cursor: pointer;
    margin-left: 10px;
}

/* Popup Styling */
.popup {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s;
}

/* Show popup on hover */
.skill:hover .popup,
.info-icon:hover + .popup {
    opacity: 1;
    visibility: visible;
}


/* Skill Icons */
.skill img {
    width: 5vw;
    height: 5vw;
    max-width: 48px;
    max-height: 48px;
}

/* Ensure certification buttons are always visible */
.certifications-grid {
    display: flex; /* Change from grid to flex */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    justify-content: center; /* Center the buttons */
    gap: 1vw;
    position: static !important; /* Remove any hidden or scroll-triggered appearance */
    opacity: 1 !important; /* Ensure they are fully visible */
    visibility: visible !important; /* Prevent them from being hidden */
}
/*Certification Tiles*/
.certification-tile {
    background: #00c3ff;
    padding: 1.5vw 3vw;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    text-align: center;
    transition: transform 0.3s ease-in-out, background 0.3s;
    opacity: 1 !important; /* Ensure they are fully visible */
    visibility: visible !important;
}

.certification-tile:hover {
    transform: scale(1.1);
    background: #0077b6;
}

/* Headings Alignment Fix */
.content h2 {
    text-align: left;
    padding-left: 3%; /* Aligns with name */
}


/* ===== Scroll Arrow Animation ===== */
/* Scroll Arrow */
#scroll-arrow {
    position: fixed;
    bottom: 20px;
    left: 5%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
        background: white;
    border: 2px solid #9c27b0;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: bounce 1.8s infinite;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.caret-large,
.caret-small {
    font-size: 2.0rem;
    font-weight: bold;
    color: #9c27b0; /* brighter orange */
    animation: pulse 1.5s infinite;
}
#scroll-arrow span {
    line-height: 0.8;
    margin-top: -10px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}



/* ===== Experience Timeline ===== */
/* Experience Section */
.experience-section {
    max-width: 90%;
    margin: 5% auto;
    padding: 2vw;
    text-align: center;
}

.timeline {
    position: relative;
    max-width: 90%;
    margin: 0 auto;
}

/* Vertical Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 0.5vw;
    background-color: #00c3ff;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Timeline Item */
.timeline-item {
    width: 45%;
    padding: 2vw;
    background: #1e1e1e;
    color: white;
    border-radius: 10px;
    margin-bottom: 3vw;
    transition: transform 0.3s ease-in-out;
    position: relative;
    text-align: right;
    padding-right: 3vw;
}

/* Right Side Cards */
.timeline-item.right {
    left: 50%;
    text-align: left;
    padding-left: 3vw;
}

/* Content Styling */
.timeline-content {
    padding: 2vw;
    background: #282828;
    border-radius: 10px;
}

/* Animation Effect */
.timeline-item:hover {
    transform: scale(1.05);
}


/* ===== Responsive Design (Media Queries) ===== */
/* Media Queries */
@media (max-width: 1024px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .header-left,
    .header-right {
        width: 100%;
        padding: 0;
    }

    .profile-pic {
        width: 100%;
        max-width: 250px;
    }

    .certifications-grid {
        grid-template-columns: repeat(1, 1fr);
        max-width: 80%;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-item {
        width: 90%;
        text-align: center;
        padding: 2vw;
    }

    .timeline-item.right {
        left: 0;
        text-align: center;
        padding: 2vw;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .job-title {
        font-size: 1rem;
    }

    .header-button {
        font-size: 0.9rem;
        padding: 3vw;
    }

    .profile-pic {
        width: 70%;
    }

    .certifications-grid {
        max-width: 90%;
    }

    .skills-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.se-skill {
    background-color: #34A853; /* Light Green for SE */
    color: #000;
}

.sre-skill {
    background-color: #EA4335; /* Light Red for SRE */
    color: #000;
}

.tam-skill {
    background-color: #FBBC05; /* Light Yellow for TAM */
    color: #000;
}

/* Contact Info Styling */
.contact-info {
    margin-top: 10px;
    font-size: 1rem;
    color: white;
}

.contact-info a {
    color: #00c3ff;
    text-decoration: none;
    font-weight: bold;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Architecture Section */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2vw;
    max-width: 80%;
    margin: 5% auto;
    text-align: center;
}

.architecture-item {
    background: #1e1e1e;
    padding: 1vw;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease-in-out;
}

.architecture-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.architecture-item:hover {
    transform: scale(1.05);
}
/* Architecture Detail Page */
.architecture-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    margin: 2% auto;
}

/* Image Container */
.architecture-image {
    width: 100%;
    max-width: 900px;
}

.architecture-image img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.architecture-image img:hover {
    transform: scale(1.02);
}

/* Fullscreen Image */
.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.fullscreen img {
    width: 95%;
    max-height: 95vh;
    border-radius: 0;
}

/* Close Button */
.close-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 1000;
}

/* Text Section */
.architecture-text {
    max-width: 70%;
    text-align: center;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
}

/* Title Styling */
.architecture-text h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #00c3ff;
    text-align: center;
}

/* Text Styling */
.architecture-text p {
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* Bullet Points */
.architecture-text ul {
    padding-left: 20px;
    text-align: left;
    display: inline-block;
}

.architecture-text li {
    margin-bottom: 10px;
}

/* Back Button */
.back-button {
    display: inline-block;
    background: #00c3ff;
    padding: 1vw 2vw;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    margin: 1vw 5%;
    transition: transform 0.3s ease-in-out;
}

.back-button:hover {
    transform: scale(1.1);
    background: #0077b6;
}


/* ===== Scroll Arrow Animation ===== */
/* Scroll Arrow */



.quiz-container {
    max-width: 600px;
    margin: auto;
    text-align: center;
    padding: 20px;
    background: #1e1e1e;
    border-radius: 10px;
    color: white;
}

.quiz-option {
    display: block;
    background: #00c3ff;
    color: white;
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.quiz-option:hover {
    transform: scale(1.05);
    background: #0077b6;
}

#quiz-timer {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
}

#quiz-feedback {
    font-size: 20px;
    margin-top: 10px;
}

#quiz-example-title {
    font-size: 22px;
    font-weight: bold;
    margin-top: 15px;
    color: #ff8c00;
}

#quiz-example-text {
    font-size: 18px;
    margin-top: 10px;
}


#next-question {
    margin-top: 15px;
    background: #00c3ff;
    padding: 10px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

#next-question:hover {
    background: #0077b6;
}

#back-to-main {
    margin-top: 15px;
    background: #ff8c00;
    padding: 10px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    width: fit-content;
    margin: 15px auto;
}

#back-to-main:hover {
    background: #cc7000;
}

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

/* Modal Content */
.modal-content {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Close Button */
.close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.close-btn:hover {
    color: red;
}

/* Form Styling */
#contact-form {
    display: flex;
    flex-direction: column;
}

#contact-form label {
    text-align: left;
    font-weight: bold;
    margin-top: 10px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: none;
    border-radius: 5px;
    background: #282828;
    color: white;
}

#contact-form textarea {
    resize: none;
    height: 100px;
}

.submit-btn {
    background: #00c3ff;
    color: white;
    border: none;
    padding: 10px;
    margin-top: 15px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.submit-btn:hover {
    background: #0077b6;
}

#contact-form input,
#contact-form textarea {
    background-color: white;
    color: #000;
    border: 1px solid #ccc;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: 2px solid #00c3ff;
}


/* Center Presentation Buttons */
.presentation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    flex-wrap: wrap;
}
.work-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    flex-wrap: wrap;
}

/* Center the Quiz Button */
.quiz-button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    flex-wrap: wrap;
}

/* Quiz Button - Standout in Orange */
.header-button.quiz-button {
    background: #ff8c00; /* Bright Orange */
    font-size: 1.2rem;
    padding: 1.2vw 2.5vw;
    border-radius: 12px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.header-button.quiz-button:hover {
    transform: scale(1.1);
    background: #cc7000;
    box-shadow: 0px 0px 15px rgba(255, 140, 0, 0.6);
}

/* Contact Me Button - Trustworthy Green */
.header-button.contact-button {
    background: #34A853; /* Green */
    font-size: 1.2rem;
    padding: 1.2vw 2.5vw;
    border-radius: 12px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.header-button.contact-button:hover {
    transform: scale(1.1);
    background: #238636;
    box-shadow: 0px 0px 15px rgba(52, 168, 83, 0.6);
}

/* Center align the title */
.presentation-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-top: 20px;
}

/* Ensure video is at the top and full width */
.video-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 10px;
}

.video-container iframe {
    width: 100%;
    max-width: 900px;
    height: 500px; /* Adjust for a better aspect ratio */
    border-radius: 10px;
}

/* Move Back to Portfolio button to bottom */
.footer-container {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

/* Architecture module explanation */
.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30%, 1fr)); /* previously 280px */
    gap: 20px;
    margin-top: 2rem;
    padding: 0 5%;
}

.component-card {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.3);
    transition: transform 0.2s ease-in-out;
}

.component-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.5);
}

.component-card h3 {
    margin-bottom: 10px;
    color: #00c3ff;
}

.component-card p {
    font-size: 0.95rem;
    color: #eee;
}

.component-card {
    background-color: #1a1a2e; /* darker blue-gray background */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2); /* more visible */
    transition: transform 0.2s ease-in-out;
    border: 1px solid #00c3ff;
}

body a {
    color: #00b7ff;
}

body a:hover {
    color: #ffd700;
}


/* Shrink blog tiles to match other grids */
.architecture-grid .architecture-item {
    width: 300px;
    height: auto;
    padding: 20px;
    margin: 10px;
    border-radius: 8px;
    background-color: #267c34;
    transition: transform 0.2s ease-in-out;
}

.architecture-grid .architecture-item:hover {
    transform: scale(1.03);
	box-shadow: 0 0 12px rgba(0, 183, 255, 0.5);
}

.architecture-item {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    color: #fff;
}

.architecture-item p {
    color: #00b7ff;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
}

.name-gradient {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(to right, #00c3ff, #34A853, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 10px;
}

.job-subtitle {
    font-size: 1.4rem;
    color: #00c3ff;
    text-align: center;
    margin-top: -10px;
    margin-bottom: 20px;
    font-weight: 500;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0, 195, 255, 0);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 195, 255, 0.5);
    transform: scale(1.2);
  }
}

.pulse-button {
  animation: pulse-glow 1s infinite ease-in-out;
}

/* ===== Rating Star Button ===== */
.rating-star-button {
    position: fixed;
    bottom: 25px;
    right: 5%;
    font-size: 2.4rem;
    line-height: 1;
    background: transparent;
    border: none;
    color: #ffd700;
    cursor: pointer;
    z-index: 1000;
    animation: pulse-glow 1.4s infinite ease-in-out, spin-scale 20s infinite ease-in-out;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.7));
}

.rating-star-button:hover{
    transform:scale(1.2) rotate(10deg);
}

/* Star group inside modal */
.star-group{
    display:flex;
    flex-direction:row-reverse;     /* largest star left-most */
    justify-content:center;
    margin:10px 0;
}
.star-group input{display:none;}
.star-group label{
    font-size:2rem;
    color:#ccc;
    cursor:pointer;
    transition:transform .2s;
}
.star-group input:checked ~ label,
.star-group label:hover,
.star-group label:hover ~ label{
    color:#ffd700;
    transform:scale(1.3);
}

@keyframes spin-scale {
  0%   { transform: rotate(0deg) scale(1); }
  25%  { transform: rotate(360deg) scale(2); }
  50%  { transform: rotate(720deg) scale(1.5); }
  75%  { transform: rotate(360deg) scale(2); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Wrapper for star and label */
.rating-star-wrapper {
    position: fixed;
    bottom: 25px;
    right: 2.5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

/* Label styling */
.rating-star-label {
    font-size: 1.2rem;
    color: #ffd700;
    margin-bottom: 50px; 
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
    pointer-events: none; 
}


