* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* diameter of the circle */
   --d: 2px; 
   
   background : radial-gradient(
     circle at 
        var(--d) 
        var(--d), 
        
     #513989 calc(var(--d) - 2px), 
     #121212 var(--d)
   ) 
   15px 15px / 50px 50px fixed;
   background-color: #121212;
    color: #ffffff;
    min-height: 310vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}

.text-content {
    flex: 1;
    text-align: center;
}

h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 5px;
}

h2 {
    font-size: 1.2rem;
    font-weight: 400;
    color: #cccccc;
    margin-bottom: 20px;
}

p {
    margin-bottom: 30px;
    line-height: 1.6;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: white;
    color: #1e1e1e;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* Brand colors and hover effects */
.social-link.linkedin:hover {
    color: #0077b5;
    transform: scale(1.1);
}

.social-link.instagram:hover {
    color: #e4405f;
    transform: scale(1.1);
}

.social-link.github:hover {
    color: #7c3aed;
    transform: scale(1.1);
}

.social-link.email-icon:hover {
    color: #ea4335;
    transform: scale(1.1);
}

.profile-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 170px;
    object-fit: cover;
}

/* Scroll indicator styles */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    transition: opacity 0.3s ease;
}

.scroll-indicator i {
    font-size: 1.8rem;
    opacity: 0.8;
}

.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Photography gallery page styles */
.gallery-container {
    padding: 50px 5px;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h1 {
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 10px;
    color: #cccccc;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 5px;
    margin-top: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* About container styles */
.about-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 300px;
    margin-bottom: 300px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.skills-section, .education-section {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    padding: 25px;
}

/* Media query for smaller screens - reorder grid items */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Reorder grid items - education first, then skills */
    .education-section {
        order: 1;
    }
    
    .skills-section {
        order: 2;
    }
}

.skills-section h3, .education-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.skill-tag {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3a3a3a;
    color: #cccccc;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background-color: #4a4a4a;
    transform: translateY(-2px);
}

.education-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.education-text h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.education-text p {
    text-align: left;
    margin-bottom: 5px;
}

.education-logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.education-logo img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}

/* Tech Stack Section */
.tech-stack-container {
    padding: 60px 20px;
    text-align: center;
    margin-top: 300px;
    margin-bottom: 300px;
}

.tech-stack-container h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ffffff;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    min-width: 275px;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.tech-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    margin-bottom: 15px;
}

.tech-logo img {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: none; /* Remove the invert filter */
}

.tech-name {
    font-size: 0.9em;
    font-weight: 600;
    color: #cccccc;
    text-transform: uppercase;
}

/* Media queries for ponsive tech stack grid */
@media screen and (max-width: 992px) {
    .tech-stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .tech-stack-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects container styles */
.projects-container {
    width: 100%;
    max-width: 950px;
    margin-top: 300px;
    margin-bottom: 300px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.projects-container h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ffffff;
}

.projects-grid {
    display: grid;
    grid-template-rows: repeat(auto-fill, minmax(150px, 1fr));
    gap: 30px;
    width: 100%;
}

.project-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-image {
    height: 150px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.project-content p {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #3a3a3a;
    color: #cccccc;
    border-radius: 15px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: #ffffff;
    font-size: 0.8rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.project-links a:hover {
    color: #cccccc;
    /* transform: translateY(-2px); */
}

.project-link-btn {
    text-decoration: none;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 5px;
    scroll-behavior: smooth;
}

.project-link-btn i {
    font-size: 1.1rem;
}

.project-link-btn:hover {
    color: #ffffff;
}

/* My Hobbies container styles */
.myhobbies-container {
    width: 100%;
    max-width: 1025px;
    margin-top: 300px;
    margin-bottom: 300px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.myhobbies-container h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    color: #ffffff;
}

.hobbies-content {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 30px;
}

.hobby-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hobby-image {
    height: 400px;
    overflow: hidden;
}

.hobby-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hobby-card:hover .hobby-image img {
    transform: scale(1.05);
}

.hobby-content {
    padding: 20px;
}

.hobby-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.hobby-content p {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.5;
}

.hobby-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.hobby-tag {
    display: inline-block;
    padding: 5px 10px;
    background-color: #3a3a3a;
    color: #cccccc;
    border-radius: 15px;
    font-size: 0.8rem;
}

.hobby-link {
    display: flex;
    margin-top: 20px;
}

.photo-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.photo-btn:hover {
    background-color: white;
    color: #1e1e1e;
}

.photo-btn i {
    font-size: 0.9rem;
}

/* Relevant Classes Section */
.relevant-classes-container {
    margin-top: 400px;
    margin-bottom: 350px;
    max-width: 900px;
    background: rgba(30, 30, 30, 0.7);
    border-radius: 18px;
    padding: 32px 28px 18px 28px;
    box-shadow: 0 2px 16px 0 rgba(50, 50, 50, 0.13);
    text-align: center;
}

.relevant-classes-container h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: 1px;
    color: #ffe7a0;
}

.relevant-classes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.class-tag {
    background: #222;
    color: #ffe7a0;
    border-radius: 12px;
    padding: 7px 16px;
    font-size: 0.97rem;
    font-weight: 500;
    margin-bottom: 7px;
    border: 1px solid #2d2d2d;
    transition: background 0.2s, color 0.2s;
}

.class-tag:hover {
    background: #ffe7a0;
    color: #222;
}

/* Live Viewer Count */
.live-count-container {
    position: fixed;
    bottom: 10px;
    left: 30px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.live-count-container i {
    margin-right: 5px;
    color: white;
}

.live-count-container:hover {
    color: white;
}

.viewer-count {
    font-weight: bold;
    margin: 0 3px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  /* Hide viewer count on smaller screens */
  .viewer-count {
    display: none; /* Hide the number itself */
  }

  /* Hide the eye icon as well by targeting the parent span */
  .viewer-count-container, /* If you add this class to the parent span */
  span:has(.viewer-count) { /* More general selector if no specific class */
    display: none;
  }
}

/* Footer styles */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgb(30 30 30 / 85%) ;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1;
    transform: translateY(100%);
    transition: transform 0.7s ease;
    border-top: 1px solid #3a3a3a;
}

.footer.visible {
    transform: translateY(0);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.back-to-top-btn {
    position: fixed;
    right: 30px;
    bottom: 12px;
    background-color: #2d2d2d;
    color: #cccccc;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    font-family: inherit;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.back-to-top-btn:hover {
    background-color: #3a3a3a;
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.back-to-top-btn span {
    margin-right: 8px;
}

.back-to-top-btn i {
    font-size: 1em;
}

.footer .social-icons {
    margin: 0;
}

.footer .social-icons a {
    font-size: 1.4rem;
    margin: 0 15px;
}

/* Responsive design */
@media (max-width: 768px) {
    .profile-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .education-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .education-text p {
        text-align: center;
    }
    
    .education-logo {
        margin-bottom: 20px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hobbies-content {
        grid-template-columns: 1fr;
    }
}

.back-to-top-btn i {
    font-size: 1.1rem;
}

/* Invisible button in the top right */
.invisible-db-btn {
  position: fixed;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  opacity: 0;
  z-index: 100;
  cursor: pointer;
}

/* Email Icon Tooltip */
.email-icon {
    position: relative;
    display: inline-block;
    transition: transform 0.18s cubic-bezier(0.4,0,0.2,1);
}

.email-icon:hover {
    transform: translateY(-2px) scale(1.11);
}

.contact-tooltip {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    color: #ffe7a0;
    text-align: center;
    border-radius: 8px;
    padding: 5px 14px;
    position: absolute;
    left: 50%;
    top: 38px;
    transform: translateX(-50%) scale(0.95);
    font-size: 0.7rem;
    font-weight: 500;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(255, 231, 160, 0.13);
    z-index: 10;
    transition: opacity 0.22s cubic-bezier(0.4,0,0.2,1),
                transform 0.22s cubic-bezier(0.4,0,0.2,1),
                visibility 0.22s;
}

.email-icon:hover .contact-tooltip,
.email-icon:focus .contact-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
}

.github-link, .social-link.github {
    position: relative;
}

.github-tooltip {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    color: #7c3aed;
    text-align: center;
    border-radius: 8px;
    padding: 5px 14px;
    position: absolute;
    left: 50%;
    top: 38px;
    transform: translateX(-50%) scale(0.95);
    font-size: 0.75rem;
    font-weight: 500;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.13);
    z-index: 10;
    transition: opacity 0.22s cubic-bezier(0.4,0,0.2,1),
                transform 0.22s cubic-bezier(0.4,0,0.2,1),
                visibility 0.22s;
}

.github-link:hover .github-tooltip,
.github-link:focus .github-tooltip,
.social-link.github:hover .github-tooltip,
.social-link.github:focus .github-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
}

.linkedin-tooltip {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    color: #0a66c2;
    text-align: center;
    border-radius: 8px;
    padding: 5px 14px;
    position: absolute;
    left: 50%;
    top: 38px;
    transform: translateX(-50%) scale(0.95);
    font-size: 0.75rem;
    font-weight: 500;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(10, 102, 194, 0.13);
    z-index: 10;
    transition: opacity 0.22s cubic-bezier(0.4,0,0.2,1),
                transform 0.22s cubic-bezier(0.4,0,0.2,1),
                visibility 0.22s;
}

.social-link.linkedin:hover .linkedin-tooltip,
.social-link.linkedin:focus .linkedin-tooltip,
.footer-center .social-icons a[href*="linkedin"]:hover .linkedin-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
}

.instagram-tooltip {
    visibility: hidden;
    opacity: 0;
    width: max-content;
    color: #e1306c;
    text-align: center;
    border-radius: 8px;
    padding: 5px 14px;
    position: absolute;
    left: 50%;
    top: 38px;
    transform: translateX(-50%) scale(0.95);
    font-size: 0.75rem;
    font-weight: 500;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(225, 48, 108, 0.13);
    z-index: 10;
    transition: opacity 0.22s cubic-bezier(0.4,0,0.2,1),
                transform 0.22s cubic-bezier(0.4,0,0.2,1),
                visibility 0.22s;
}

.social-link.instagram:hover .instagram-tooltip,
.social-link.instagram:focus .instagram-tooltip,
.footer-center .social-icons a[href*="instagram"]:hover .instagram-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
}

/* Scroll Indicator Navigation */
.scroll-indicator-nav {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.scroll-dot {
    width: 30px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.scroll-dot.active {
    width: 50px;
    background-color: rgba(255, 255, 255, 0.8);
}

/* Hide scroll indicator on mobile */
@media (max-width: 768px) {
    .scroll-indicator-nav {
        display: none;
    }
}

.animated-text {
    color: #513989; /* A nice blue color that stands out */
    font-weight: 600;
    border-right: 2px solid #4a90e2; /* Cursor effect */
    animation: blink 1.1s infinite;
    padding-right: 2px;
}

@keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: rgba(255, 255, 255, 0.8); }
}
