/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Ubuntu:wght@400;500;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Global Styles */
section {
    padding: 100px 0;
}

.max-width {
    max-width: 1300px;
    padding: 0 10px;
    margin: auto;
}

.about, .skills, .experience, .projects, .education, .contact, footer {
    font-family: 'Poppins', sans-serif;
}

.section-title {
    position: relative;
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 60px;
    padding-bottom: 20px;
    font-family: 'Ubuntu', sans-serif;
}

.section-title::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 180px;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateX(-50%);
}

.section-title::after {
    position: absolute;
    bottom: -8px;
    left: 50%;
    font-size: 20px;
    color: #667eea;
    padding: 0 5px;
    background: #fff;
    transform: translateX(-50%);
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 20px 0;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a {
    color: #2c3e50;
    font-size: 35px;
    font-weight: 700;
}

.navbar .logo a span {
    color: #667eea;
    transition: all 0.3s ease;
}

.navbar .menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navbar .menu li a {
    color: #333;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar .menu li a:hover,
.navbar .menu li a.active {
    color: #667eea;
}

.navbar .menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #667eea;
    transition: width 0.3s ease;
}

.navbar .menu li a:hover::after,
.navbar .menu li a.active::after {
    width: 100%;
}

/* Hero Section */
.home {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.home-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.home-content .text-1 {
    font-size: 27px;
    margin-bottom: 10px;
}

.home-content .text-2 {
    font-size: 75px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, #f0f8ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-content .text-3 {
    font-size: 40px;
    margin-bottom: 30px;
}

.home-content .text-3 span {
    color: #f0f8ff;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* About Section */
.about {
    background: #f8f9fa;
}

.about .section-title::after {
    content: "who i am";
    background: #f8f9fa;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-content .left {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-content .left img {
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-content .right {
    flex: 1.5;
    min-width: 300px;
    text-align: left;
}

.about-content .right .text {
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-content .right p {
    font-size: 18px;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 20px;
}

.about-content .right p span {
    color: #667eea;
    font-weight: 600;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #764ba2;
    transform: translateY(-3px);
}

/* Skills Section */
.skills {
    background: #2c3e50;
    color: #fff;
}

.skills .section-title {
    color: #fff;
}

.skills .section-title::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.skills .section-title::after {
    content: "what i know";
    background: #2c3e50;
    color: #667eea;
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

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

.skill-category h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #f0f8ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.skill-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Experience Section */
.experience {
    background: #f8f9fa;
}

.experience .section-title::after {
    content: "my journey";
    background: #f8f9fa;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translateX(-50%);
    border-radius: 2px;
}

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

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

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

.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: #667eea;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 5px #fff, 0 0 0 8px #667eea30;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px #fff, 0 0 0 12px #667eea40;
}

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

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

.timeline-content {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timeline-date {
    color: #667eea;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.timeline-company {
    color: #666;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.timeline-description {
    color: #555;
    line-height: 1.6;
    text-align: left;
}

.timeline-description p {
    margin-bottom: 15px;
    font-size: 16px;
}

.timeline-description ul {
    margin: 0;
    padding-left: 20px;
}

.timeline-description ul li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
}

.timeline-description ul li::marker {
    color: #667eea;
}

/* Projects Section */
.projects .section-title::after {
    content: "my work";
}

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

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

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 60px;
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.project-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: #e8f4f8;
    color: #667eea;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

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

.project-link {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.link-demo {
    background: #667eea;
    color: white;
}

.link-demo:hover {
    background: #764ba2;
}

.link-code {
    background: #2c3e50;
    color: white;
}

.link-code:hover {
    background: #34495e;
}

/* Education Section */
.education {
    background: #f8f9fa;
}

.education .section-title::after {
    content: "my learning";
    background: #f8f9fa;
}

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

.education-card {
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
}

.education-degree {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.education-school {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 5px;
}

.education-duration {
    color: #666;
    font-weight: 500;
    margin-bottom: 15px;
}

.education-description {
    color: #555;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
}

.contact .section-title {
    color: #fff;
}

.contact .section-title::before {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.contact .section-title::after {
    content: "get in touch";
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #667eea;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}

.contact-content .left {
    flex: 1;
    min-width: 300px;
}

.contact-content .right {
    flex: 1;
    min-width: 300px;
}

.contact-text {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-info {
    margin: 30px 0;
}

.contact-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-row i {
    font-size: 25px;
    color: #667eea;
    margin-right: 20px;
    width: 30px;
}

.contact-row .info .head {
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-row .info .sub-title {
    color: #bbb;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: #fff;
    transform: translateY(-2px);
}

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

.submit-btn {
    background: #667eea;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Scroll Up Button */
.scroll-up-btn {
    position: fixed;
    height: 45px;
    width: 42px;
    background: #667eea;
    right: 30px;
    bottom: 10px;
    text-align: center;
    line-height: 45px;
    color: #fff;
    z-index: 9999;
    font-size: 16px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.scroll-up-btn.show {
    bottom: 30px;
    opacity: 1;
    pointer-events: auto;
}

.scroll-up-btn:hover {
    background: #764ba2;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .menu {
        display: none;
    }

    .max-width {
        padding: 0 20px;
    }

    .home-content .text-1 {
        font-size: 22px;
    }

    .home-content .text-2 {
        font-size: 45px;
        line-height: 1.2;
    }

    .home-content .text-3 {
        font-size: 28px;
        line-height: 1.3;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .section-title::before {
        width: 120px;
    }

    /* About Section Mobile */
    .about-content {
        flex-direction: column;
        text-align: left;
        gap: 30px;
    }

    .about-content .left {
        text-align: center;
        order: 1;
    }

    .about-content .left img {
        max-width: 300px;
        height: 300px;
    }

    .about-content .right {
        order: 2;
        text-align: left;
    }

    .about-content .right .text {
        font-size: 28px;
        text-align: center;
        margin-bottom: 20px;
    }

    .about-content .right p {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 15px;
    }

    .social-links {
        justify-content: center;
        margin-top: 20px;
    }

    /* Skills Mobile */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-category {
        padding: 20px;
    }

    .skill-category h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    /* Experience Mobile */
    .timeline {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .timeline::before {
        left: 20px;
        width: 3px;
    }

    .timeline-item {
        width: 100%;
        left: 0;
        text-align: left;
        padding-left: 60px;
        padding-right: 15px;
        margin-bottom: 30px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-item::before {
        left: 10px;
        top: 25px;
        width: 18px;
        height: 18px;
    }

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

    .timeline-content {
        text-align: left;
        padding: 20px;
        border-left: 3px solid #667eea;
    }

    .timeline-title {
        font-size: 18px;
        line-height: 1.2;
        margin-bottom: 6px;
    }

    .timeline-company {
        font-size: 13px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .timeline-date {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .timeline-description {
        text-align: left;
    }

    .timeline-description p {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .timeline-description ul {
        padding-left: 15px;
        margin: 0;
    }

    .timeline-description ul li {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 5px;
    }

    /* Projects Mobile */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-card {
        margin: 0 10px;
    }

    .project-image {
        height: 150px;
        font-size: 40px;
    }

    .project-content {
        padding: 20px;
    }

    .project-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .project-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

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

    .project-link {
        text-align: center;
        justify-content: center;
    }

    /* Education Mobile */
    .education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .education-card {
        padding: 20px;
        margin: 0 10px;
    }

    .education-degree {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .education-school {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .education-duration {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .education-description {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Contact Mobile */
    .contact-content {
        flex-direction: column;
        gap: 30px;
    }

    .contact-text {
        font-size: 20px;
        text-align: center;
    }

    .contact-info {
        margin: 20px 0;
    }

    .contact-row {
        margin-bottom: 15px;
    }

    .contact-row i {
        font-size: 20px;
        margin-right: 15px;
        width: 25px;
    }

    .contact-row .info .head {
        font-size: 14px;
    }

    .contact-row .info .sub-title {
        font-size: 13px;
    }

    .contact-form {
        padding: 20px;
        margin: 0 10px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    #success-message {
        margin: 0 10px;
        margin-top: 15px;
        padding: 12px;
        font-size: 14px;
    }

    /* Footer Mobile */
    .footer {
        padding: 20px 0;
        font-size: 14px;
    }

    .footer p {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .max-width {
        padding: 0 15px;
    }

    .home-content .text-1 {
        font-size: 20px;
    }

    .home-content .text-2 {
        font-size: 36px;
    }

    .home-content .text-3 {
        font-size: 22px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-content .right .text {
        font-size: 24px;
    }

    .timeline-item {
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item::before {
        left: 5px;
        width: 16px;
        height: 16px;
    }

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

    .timeline-content {
        padding: 15px;
    }

    .timeline-title {
        font-size: 16px;
    }

    .project-card,
    .education-card,
    .contact-form {
        margin: 0 5px;
    }

    .skill-category {
        padding: 15px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
