/* =========== General Styles =========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent: #00e1ff;
    --accent-dark: #0097a7;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

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

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

/* =========== Button Styles =========== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin-right: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--text-primary);
}

.secondary-btn:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.small-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* =========== Navigation =========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
}

nav.scrolled {
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* =========== Hero Section =========== */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

#hero .subtitle {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.hero-cta {
    margin-top: 30px;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

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

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

/* =========== About Section =========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
}

.skills h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid var(--accent);
}

.about-image {
    width: 100%;
    height: 400px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

/* =========== Experience Section =========== */
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--accent);
}

.timeline-item {
    padding-left: 60px;
    position: relative;
    margin-bottom: 50px;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 0 0 0 5px var(--bg-primary), 0 0 0 7px var(--accent-dark);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 5px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.timeline-content ul {
    margin-top: 15px;
    list-style-position: inside;
}

.timeline-content li {
    margin-bottom: 5px;
}

/* =========== Education Section =========== */
.education-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.education-card {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--accent);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.education-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.education-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.education-institution {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.education-date {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 15px;
}

/* =========== Projects Section =========== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

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

.project-image {
    width: 100%;
    height: 200px;
    position: relative;
    background-color: var(--bg-primary);
}

.project-content {
    padding: 20px;
}

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

.project-content p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

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

.project-tags span {
    background-color: var(--bg-primary);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
}

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

.project-model-container {
    width: 100%;
    height: 100%;
}

/* =========== Footer =========== */
footer {
    background-color: var(--bg-secondary);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50%;
    height: 2px;
    background-color: var(--accent);
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section i {
    margin-right: 10px;
    color: var(--accent);
}

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

.social-link {
    display: flex;
    /* align-items: center; */
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    text-decoration: none;
    /* transition: var(--transition); */
}
.fa-brands {
    font-size: 1.5rem;
    text-align: center;
    align-self: center;
}
.social-link:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    /* transform: translateY(-3px); */
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========== Responsive Styles =========== */
/* Menu Open State */
body.menu-open {
    overflow: hidden;
}

@media screen and (max-width: 1024px) {
    html {
        font-size: 14px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        height: 300px;
        order: -1;
    }
    
    /* Fix for 3D canvas on mobile */
    canvas {
        touch-action: none;
    }
}

@media screen and (max-width: 768px) {
    nav {
        padding: 15px;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        z-index: 100;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
        z-index: 101;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero .subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero .subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .hero-cta {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .education-cards {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 45px;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-marker {
        left: 6px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-links {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .scroll-indicator {
        left: 41%;
    }
}