/* Base Styles */
:root {
    --primary-color: #0a192f;
    --secondary-color: #172a45;
    --accent-color: #64ffda;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --light-color: #f8f8f8;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* outline: 1px solid red; */

}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Calibre', 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-color);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.highlight {
    color: var(--accent-color);
}

/* Sections */
section {
    padding:  50px 0 50px 0; /*padding: 100px 0;*/
    background-color: transparent;
}

.section-title {
    position: relative;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: var(--accent-color);
}

/* .dark-section {
    background-color: var(--secondary-color);
    width: 100%;
} */

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent; /*(10, 25, 47, 0.9); */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    height: 60px;
    /* box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7); */
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    position: relative;
    z-index: 1001;
}

.logo-img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    object-fit: contain;
    transition: var(--transition);
}

/* .logo-text {
    font-family: 'SF Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
} */

.logo:hover .logo-img {
    transform: rotate(15deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: 28px;
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    padding: 10px 10px;
    display: inline-block;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 7px;
    left: 0;
    background-color: var(--accent-color);
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.nav-link:hover::before {
    visibility: visible;
    width: 100%;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    outline: none;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.2s ease-in-out;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    width: 100%;
    height: 2px;
    background-color: white;
    position: absolute;
    left: 0;
    transition: transform 0.2s ease-in-out;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    top: 8px;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner {
    background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::before {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    #navbar .container {
        padding: 0 25px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(75vw, 300px);
        height: 100vh;
        background-color: var(--primary-color);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 100px 40px;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
        box-shadow: -10px 0 30px -15px rgba(2, 12, 27, 0.7);
        z-index: 1000;
    }
    
    .nav-menu.show {
        transform: translateX(0);
    }
    
    .nav-menu li {
        margin: 0 0 30px 0;
        width: 100%;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 5px 10px;
    }
    
    .nav-link::before {
        bottom: 0;
    }
    
    .resume-btn {
        margin: 20px 0 0 0;
        padding: 1rem 1.5rem;
        width: 100%;
        text-align: center;
    }
}

/* Hero Section */
#hero {
    background-color: var(--secondary-color);
    padding-top: 100px;
    min-height: 100vh; 
    display: flex;
    align-items: center;
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

.hero-content {
    flex: 0 1 60%;
    max-width: 700px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 650px;
    margin-bottom: 30px;
}

.hero-image {
    flex: 0 1 40%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    position: relative;
}

.profile-orbit {
    position: relative;
    width: 100%;
    height: auto;
}

.hero-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.hero-image img:hover {
    filter: none;
}

.orbit-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    pointer-events: none;
    z-index: 1;
}

.orbit-circle-1 {
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
    border-right-color: transparent;
    border-bottom-color: transparent;
    animation: orbit 3s linear infinite;
}

.orbit-circle-2 {
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    border-left-color: transparent;
    border-top-color: transparent;
    animation: orbit 5s linear infinite reverse;
}

@keyframes orbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h2,
.hero-content h3,
.hero-content p {
  opacity: 0;
  animation: slideInLeft 1s ease forwards;
}

.hero-content h2:nth-of-type(1) {
  animation-delay: 0.2s;
}

.hero-content h2:nth-of-type(2) {
  animation-delay: 0.4s;
}

.hero-content h3 {
  animation-delay: 0.6s;
}

.hero-content p {
  animation-delay: 0.8s;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.primary-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    background: transparent;
    padding: 1rem 1.75rem;
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    font-family: 'SF Mono', monospace;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    z-index: 1;
}

.primary-btn i {
    margin-right: 10px;
    font-size: 1rem;
}

.hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(100, 255, 218, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.primary-btn:hover .hover-effect {
    width: 100%;
}

.primary-btn.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(100, 255, 218, 0); }
    100% { box-shadow: 0 0 0 0 rgba(100, 255, 218, 0); }
}

.social-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn span {
    display: none;
    margin-left: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-btn:hover::before {
    opacity: 1;
}

.github-btn {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    border: 2px solid #333;
}

.github-btn:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
}

.linkedin-btn {
    background-color: rgba(10, 102, 194, 0.2);
    color: var(--text-primary);
    border: 2px solid #0a66c2;
}

.linkedin-btn:hover {
    background-color: rgba(10, 102, 194, 0.3);
    color: #fff;
}

.instagram-btn {
    background-color: rgba(193, 53, 132, 0.2);
    color: var(--text-primary);
    border: 2px solid #c13535;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .social-buttons {
        gap: 12px;
        justify-content: center; 
        width: 100%;
    }

    .social-btn {
        width: auto;
        height: auto;
        padding: 12px 20px;
        border-radius: 30px;
    }

    .social-btn span {
        display: inline-block;
    }

    .social-btn i {
        font-size: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .social-btn {
        padding: 10px 15px;
        font-size: 1rem;
    }

    .social-btn span {
        font-size: 0.8rem;
    }
}
.hero-actions{
  opacity: 0;
  animation: slideInOut 1.2s ease-out forwards;
  animation-delay: 1s;
}

@keyframes slideInOut {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'SF Mono', monospace;
    opacity: 0;
    animation: mouseScrollOut 1.2s ease-out forwards;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.wheel {
    width: 5px;
    height: 8px;
    background-color: var(--text-secondary);
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes  mouseScrollOut {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scroll {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(15px); opacity: 0; }
}

@media (max-width: 1000px) {
    .scroll-indicator{
        display: none;
    }
}


/* About Section */
.about-content {
    max-width: 800px;
}

.about-content p {
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-category {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 10px;
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
}

.skill-category ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.skill-name {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.skill-category ul li:hover .skill-name {
    color: var(--accent-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    .skill-category h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .skill-category ul li {
        margin-bottom: 10px;
        padding-left: 22px;
    }
}

/* Projects Section - Enhanced */
#projects {
    position: relative;
}

.section-header {
    text-align: left;
    margin-bottom: 60px;
}
.section-header .section-subtitle{
    text-align: center;
}
.section-subtitle {
    color: var(--accent-color);
    font-family: 'SF Mono', monospace;
    font-size: 1.1rem;
    margin-top: 10px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background-color: var(--primary-color);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border: 1px solid rgba(100, 255, 218, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 30px -15px rgba(100, 255, 218, 0.2);
}

.card-header {
    padding: 25px 25px 15px;
    position: relative;
}

.card-project-img {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.card-project-img img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 0;
    transition: var(--transition);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.project-tech span {
    font-family: 'SF Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-color);
    background-color: rgba(100, 255, 218, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
}

.card-body {
    padding: 0 25px;
    flex-grow: 1;
}

.card-body h3 {
    color: var(--light-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    padding: 0 25px 25px;
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: 'SF Mono', monospace;
}

.project-link:hover {
    color: var(--light-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .card-header {
        padding: 20px 20px 10px;
    }
    
    .card-body, .card-footer {
        padding: 0 20px 20px;
    }
}

/* Certifications Section*/
#credentials {
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: left;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--accent-color);
    font-family: 'SF Mono', monospace;
    font-size: 1.1rem;
    margin-top: 10px;
}

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

.certification-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(2, 12, 27, 0.5);
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
    display: flex;
    position: relative;
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(100, 255, 218, 0.2);
}

.certification-badge {
    width: 60px;
    background-color: rgba(100, 255, 218, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.certification-badge i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.certification-content {
    flex: 1;
    padding: 20px;
}

.certification-header {
    cursor: pointer;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.certification-header h3 {
    color: var(--light-color);
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

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

.certification-issuer {
    font-family: 'SF Mono', monospace;
    font-size: 0.85rem;
    color: var(--accent-color);
    opacity: 0.8;
}

.certification-header i {
    color: var(--accent-color);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.certificate-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.certificate-details.active {
    max-height: 1000px;
    padding-top: 20px;
}

.certificate-image-container {
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(100, 255, 218, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.certificate-image-container:hover {
    transform: scale(1.02);
}

.certificate-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.certificate-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.verify-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'SF Mono', monospace;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
}

.verify-btn:hover {
    background-color: rgba(100, 255, 218, 0.2);
    transform: translateY(-2px);
}

/* Modal Styles */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--primary-color);
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    padding: 30px;
    position: relative;
    border: 1px solid var(--accent-color);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

#modalCertificateImage {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px) {
    .certifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .certification-card {
        flex-direction: column;
    }
    
    .certification-badge {
        width: 100%;
        padding: 15px 0;
    }
    
    .modal-content {
        width: 90%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 40px;
    }
    
    .certification-header h3 {
        font-size: 1.1rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
}

/* Education Section */
#education {
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.education-header {
    margin-bottom: 60px;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, 
                transparent 0%, 
                var(--accent-color) 10%, 
                var(--accent-color) 90%, 
                transparent 100%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px 40px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(2, 12, 27, 0.3);
    margin-bottom: 50px;
    transition: all 0.4s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(100, 255, 218, 0.2);
    border-color: rgba(100, 255, 218, 0.3);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    top: 40px;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(100, 255, 218, 0.2);
}

.timeline-item:nth-child(odd)::before {
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-item h3 {
    color: var(--light-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
    position: relative;
}

.timeline-item h4 {
    color: var(--accent-color);
    margin: 15px 0 10px;
    font-family: 'SF Mono', monospace;
    font-size: 0.95rem;
}

.timeline-item .date_gpa {
    display: inline-block;
    padding: 5px 15px;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 10px 0;
    font-family: 'SF Mono', monospace;
    border: 1px solid var(--accent-color);
}

@media (max-width: 768px) {
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        width: 100%;
        padding: 25px;
        margin-left: 0;
        left: 0 !important;
        margin-bottom: 30px;
    }
    
    .timeline-item::before,
    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        display: none;
    }
    
    .timeline-item .institute-logo {
        position: static;
        display: inline-block;
        margin-right: 15px;
        vertical-align: middle;
        width: 30px;
        height: 30px;
    }
    
    .timeline-item h3 {
        display: inline-block;
        vertical-align: middle;
        width: calc(100% - 50px);
    }
}

@media (max-width: 480px) {
    .timeline-item {
        padding: 20px;
    }
    
    .timeline-item h3 {
        font-size: 1.2rem;
    }
    
    .timeline-item .institute-logo {
        width: 25px;
        height: 25px;
    }
}


/* Leadership Section */
#leadership {
    background-color: var(--primary-color);
    position: relative;
}

.leadership-header {
    margin-bottom: 60px;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.leadership-item {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(2, 12, 27, 0.3);
    transition: all 0.4s ease;
    border: 1px solid rgba(100, 255, 218, 0.1);
    position: relative;
    overflow: hidden;
}

.leadership-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(100, 255, 218, 0.2);
    border-color: rgba(100, 255, 218, 0.3);
}

.leadership-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
}

.leadership-item:hover::before {
    width: 6px;
    background: linear-gradient(to bottom, 
                var(--accent-color), 
                #64ffda88);
}

.leadership-item h3 {
    color: var(--light-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
    position: relative;
    padding-left: 20px;
    padding-right: 40px;
}

.leadership-item h3::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.leadership-item h4 {
    color: var(--accent-color);
    font-family: 'SF Mono', monospace;
    font-size: 0.95rem;
    margin-bottom: 15px;
    padding-left: 20px;
}

.leadership-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    padding-left: 20px;
    padding-right: 20px;
    text-align: justify;
}

.leadership-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    color: rgba(100, 255, 218, 0.1);
    font-size: 1.8rem;
    z-index: 0;
}

@media (max-width: 768px) {
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .leadership-item {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .leadership-header {
        margin-bottom: 40px;
    }
    
    .leadership-item h3 {
        font-size: 1.2rem;
    }
    
    .leadership-icon {
        font-size: 2rem;
    }
}


/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
    padding-bottom: 50px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(100, 255, 218, 0.3);
    border-radius: 5px;
    background-color: rgba(10, 25, 47, 0.5);
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 7px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    pointer-events: none;
    background-color: rgba(10, 25, 47, 0.7);
    padding: 0 5px;
}

.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 15px;
    font-size: 0.8rem;
    color: var(--accent-color);
    background-color: var(--primary-color);
}

.form-success {
    display: none;
    background-color: rgba(46, 125, 50, 0.2);
    border: 1px solid #2e7d32;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    position: relative;
}

.popup-content h3{
    margin-bottom: 5px;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.popup-icon {
    font-size: 50px;
    color: #4CAF50;
    margin-bottom: 15px;
}


.secondary-btn{
    display: inline-block;
    color: rgb(255, 255, 255);
    padding: 12px 30px;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    height: 50px;
    background-color: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.secondary-btn i{
    margin-right: 8px;
}

.secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.2);
}

.secondary-btn:hover .hover-effect {
    width: 100%;
}

@media (max-width: 768px) {
    .secondary-btn {
        padding: 10px 20px;
        height: 45px;
        font-size: 0.9em;
    }
    
    .social-links {
        gap: 20px;
        margin-top: 20px;
    }
    
    .social-links .social-links-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .secondary-btn {
        padding: 8px 16px;
        height: 40px;
        font-size: 0.85em;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-links .social-links-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .social-links {
        gap: 12px;
    }
    
    .social-links .social-links-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    #hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content,
    .hero-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .hero-image {
        margin-top: 50px;
    }
    
    .hero-content h2 {
        font-size: 2.8rem;
    }
    
    .hero-content h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    #navbar .container {
        padding: 5px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    #navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        background-color: rgba(10, 25, 47, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
    }
    
    #navbar ul.show {
        display: flex;
    }
    
    #navbar ul li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block !important;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: white;
        z-index: 999;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 10px 0;
        background-color: rgba(10, 25, 47, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 998;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        margin: 10px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-content h3 {
        font-size: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .social-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .social-buttons a {
        flex-grow: 1;
        text-align: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 5px;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-item::before {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-content h3 {
        font-size: 1.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-image img {
        max-width: 250px;
    }
    
    .primary-btn, .social-buttons a {
        width: 100%;
        justify-content: center;
    }
    
    .form-group input, 
    .form-group textarea {
        padding: 10px;
    }
    
    .contact-form {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: transparent;
    color:var(--text-secondary);
    border: 2px solid var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#back-to-top.visible {
    transition: all 1s ease;
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: rgb(1, 0, 43);
    border: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(71, 71, 71, 0.484);
}

#back-to-top i {
    transition: transform 1s ease;
}

#back-to-top:hover i {
    transform: translateY(-5px);
}

@media (max-width: 600px) {
    #back-to-top {
       display: none;
    }
}