* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #1c1c1c;
    --primary-blue: #4a90e2;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --card-bg: #555555;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 80px;
}

.hero-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.hero-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: var(--text-white);
}

.hero-title {
    font-size: 60px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-name {
    color: var(--primary-blue);
    font-weight: 700;
    display: block;
}

.hero-subtitle {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-white);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--primary-blue);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.3);
}

/* Fixed Navigation Dots */
.nav-dots {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.nav-line {
    position: absolute;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        var(--primary-blue) 10%, 
        var(--primary-blue) 90%, 
        transparent 100%);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.nav-dot {
    width: 16px;
    height: 16px;
    background-color: rgba(74, 144, 226, 0.3);
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot:hover {
    background-color: var(--primary-blue);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.6);
}

.nav-dot.active {
    background-color: var(--primary-blue);
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.8);
}

.nav-tooltip {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-blue);
    color: var(--text-white);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.nav-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background-color: var(--primary-blue);
}

.nav-dot:hover .nav-tooltip {
    opacity: 1;
    right: 35px;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 2000;
    background: var(--primary-blue);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.mobile-nav-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
}

.mobile-nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(28, 28, 28, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1999;
    padding: 100px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-link {
    display: block;
    color: var(--text-white);
    text-decoration: none;
    padding: 18px 20px;
    margin-bottom: 5px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(74, 144, 226, 0.1);
    border-left-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateX(5px);
}

/* Section Title */
.section-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -15px;
    width: 200px;
    height: 4px;
    background-color: var(--primary-blue);
}

/* About Section */
.about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.about-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.about-image {
    position: relative;
    flex-shrink: 0;
}

.about-image img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.about-image:hover img {
    transform: translate(-8px, -8px);
}

.image-border {
    position: absolute;
    width: 320px;
    height: 320px;
    border: 3px solid var(--primary-blue);
    border-radius: 20px;
    top: 15px;
    left: 15px;
    z-index: 1;
    transition: all 0.3s ease;
}

.about-image:hover .image-border {
    top: 20px;
    left: 20px;
}

.about-content {
    flex: 1;
}

.about-intro {
    font-size: 22px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-white);
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-white);
}

.about-content .highlight {
    color: var(--primary-blue);
    font-weight: 600;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 50px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border-left: 4px solid var(--primary-blue);
}

.tech-category h4 {
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tech-category p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Skills Section */
.skills {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.skills .section-title {
    text-align: center;
    width: 100%;
    margin-bottom: 80px;
}

.skills .section-title::before {
    content: '';
    position: absolute;
    left: -250px;
    top: 50%;
    width: 200px;
    height: 4px;
    background-color: var(--primary-blue);
}

.skills .section-title::after {
    left: auto;
    right: -250px;
    top: 50%;
    transform: translateY(-50%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    aspect-ratio: 1;
    background-color: var(--card-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skill-card:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.4);
    z-index: 10;
}

.skill-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.skill-card:hover .skill-icon {
    opacity: 0;
    transform: scale(0.8);
}

.skill-card img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.skill-card svg {
    width: 60%;
    height: 60%;
}

.skill-label {
    position: absolute;
    bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
}

.skill-description {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
}

.skill-card:hover .skill-description {
    opacity: 1;
    transform: scale(1);
}

.skill-description h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.skill-description p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-white);
}

/* Experience Section */
.experience {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.timeline {
    max-width: 900px;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-blue), transparent);
}

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

.timeline-marker {
    position: absolute;
    left: -41px;
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 0 3px var(--primary-blue);
}

.experience-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.experience-content:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.experience-title {
    font-size: 24px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 8px;
}

.experience-date {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.experience-list {
    list-style: none;
    padding-left: 0;
}

.experience-list li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    color: var(--text-white);
}

.experience-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-size: 20px;
}

.experience-list li strong {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Projects Section */
.projects {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.projects-intro {
    max-width: 800px;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-white);
    margin-bottom: 50px;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

.project-card.featured {
    border-color: rgba(74, 144, 226, 0.3);
}

.project-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.project-icon svg {
    width: 100%;
    height: 100%;
}

.project-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 15px;
}

.project-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: 20px;
}

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

.project-tags span {
    padding: 6px 15px;
    background: rgba(74, 144, 226, 0.15);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.projects-note {
    max-width: 800px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-gray);
    font-style: italic;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
}

/* Education Section */
.education {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 900px;
}

.education-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 20px;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.education-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.2);
}

.education-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
}

.education-icon svg {
    width: 100%;
    height: 100%;
}

.education-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 10px;
}

.education-place {
    font-size: 16px;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.education-date {
    font-size: 14px;
    color: var(--text-gray);
}

/* Extra Section */
.extra {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.extra-content {
    max-width: 900px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    padding: 50px;
    border-radius: 20px;
    border: 2px solid rgba(74, 144, 226, 0.3);
}

.extra-icon {
    min-width: 80px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 15px;
}

.extra-icon svg {
    width: 50px;
    height: 50px;
}

.extra-text h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.extra-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-white);
    margin-bottom: 20px;
}

.extra-text .highlight {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Contact Section */
.contact {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.contact .section-title {
    text-align: center;
    width: 100%;
    margin-bottom: 80px;
}

.contact .section-title::before {
    content: '';
    position: absolute;
    left: -300px;
    top: 50%;
    width: 250px;
    height: 4px;
    background-color: var(--primary-blue);
}

.contact .section-title::after {
    left: auto;
    right: -300px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    align-items: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 35px;
    background-color: var(--card-bg);
    color: var(--text-white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
    justify-content: center;
}

.contact-btn svg {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.contact-btn:hover {
    background-color: #666666;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
}

.contact-btn.linkedin svg {
    fill: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .skills .section-title::before,
    .skills .section-title::after,
    .contact .section-title::before,
    .contact .section-title::after {
        display: none;
    }
    
    .nav-dots {
        right: 20px;
    }
    
    .about-image img,
    .image-border {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-dots {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .about-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .about-image {
        text-align: center;
    }
    
    .about-image img,
    .image-border {
        width: 250px;
        height: 250px;
    }
    
    .hero-title,
    .hero-subtitle {
        font-size: 40px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid,
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .extra-content {
        flex-direction: column;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .contact-btn{
        font-size: 12px;
        padding: 18px 10px;
    }
    
    .hero {
        padding: 0 20px;
    }
    
    .hero-title,
    .hero-subtitle {
        font-size: 32px;
    }
    
    .about-image img,
    .image-border {
        width: 220px;
        height: 220px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about-content p,
    .experience-list li {
        font-size: 16px;
    }
    
    .about-intro {
        font-size: 18px;
    }
    
    .tech-stack {
        padding: 25px;
    }
    
    .project-card {
        padding: 25px;
    }
    
    .extra-content {
        padding: 25px;
    }
    
    .extra-icon {
        min-width: 60px;
        width: 60px;
        height: 60px;
    }
    
    .mobile-nav-toggle {
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .mobile-nav {
        width: 100%;
    }
}

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

/* Selection Color */
::selection {
    background-color: var(--primary-blue);
    color: var(--text-white);
}