@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');

:root {
    --primary-color: #00bfff;
    --primary-dark: #009acd;
    --text-light: #bbb;
    --bg-dark: #000;
    --bg-card: #1e1e1e;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: #fff;
    line-height: 1.6;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Header */
header {
    text-align: center;
    padding: 120px 20px;
    background: linear-gradient(135deg, #000, #222);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,191,255,0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
}

.page-header {
    text-align: center;
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, #000, #222);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,191,255,0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
}

.header-content {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    margin: 0;
    color: #fff;
    animation: fadeIn 2s ease-in-out;
    letter-spacing: 2px;
}

.page-header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin: 0;
    color: #fff;
    animation: fadeIn 2s ease-in-out;
    letter-spacing: 2px;
}

header p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 400;
    margin: 15px 0 0;
    color: var(--text-light);
    animation: fadeIn 3s ease-in-out;
}

.header-content::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    animation: underlineGrow 2s ease-in-out;
}

/* Sections */
.section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 20px;
    animation: fadeIn 2s ease-in-out;
}

.section h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}

.section p {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

/* Home Page */
.home-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.home-card {
    background: rgba(30, 30, 30, 0.7);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: #fff;
    display: block;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.1);
    background: rgba(30, 30, 30, 0.9);
}

.home-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.home-card p {
    font-size: 1rem;
    color: var(--text-light);
    text-align: left;
    margin: 0;
}

/* About Page */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

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

.image-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.detail-item {
    background: rgba(30, 30, 30, 0.7);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.detail-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.detail-item p {
    font-size: 1rem;
    margin: 0;
}

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

.skills-category {
    background: rgba(30, 30, 30, 0.7);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.1);
    background: rgba(30, 30, 30, 0.9);
}

.skills-category h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.skills-list {
    list-style-type: none;
    padding: 0;
}

.skills-list li {
    margin: 10px 0;
    font-size: 1rem;
    color: var(--text-light);
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skills-list li:last-child {
    border-bottom: none;
}

.skills-list li:hover {
    color: #fff;
    transform: translateX(5px);
}

.skills-proficiency {
    margin-top: 50px;
}

.skills-proficiency h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.proficiency-item {
    margin-bottom: 20px;
}

.proficiency-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.proficiency-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.proficiency-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
}

/* Timeline Page */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
    list-style-type: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 25px 30px;
    position: relative;
    background: var(--bg-card);
    border-radius: 8px;
    margin: 30px 0;
    width: 45%;
    animation: fadeInUp 2s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 191, 255, 0.1);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--primary-color);
    border: 4px solid var(--bg-dark);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    background: #fff;
    border-color: var(--primary-color);
}

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

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

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

.timeline-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.timeline-item p {
    font-size: 1rem;
    color: var(--text-light);
    text-align: left;
    margin: 0;
}

.timeline-date {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--primary-color);
    color: #000;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline-item:nth-child(even) .timeline-date {
    left: 20px;
    right: auto;
}

.education-section {
    margin-top: 80px;
}

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

.education-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.1);
}

.education-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.education-item p {
    font-size: 1rem;
    color: var(--text-light);
    text-align: left;
    margin-bottom: 10px;
}

.education-item p:last-child {
    margin-bottom: 0;
}

/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.service-card {
    background: rgba(30, 30, 30, 0.7);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.1);
    background: rgba(30, 30, 30, 0.9);
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
    text-align: center;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}

.service-process {
    margin-top: 50px;
}

.service-process h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.process-step {
    background: rgba(30, 30, 30, 0.7);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.1);
    background: rgba(30, 30, 30, 0.9);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 15px;
}

.process-step h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.process-step p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

/* Achievements Page */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.achievement-card {
    background: rgba(30, 30, 30, 0.7);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 191, 255, 0.1);
    background: rgba(30, 30, 30, 0.9);
}

.achievement-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.achievement-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
    text-align: center;
}

.achievement-card p {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    margin: 0;
}

.projects-section {
    margin-top: 50px;
}

.projects-section h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.project-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 191, 255, 0.1);
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-content {
    padding: 25px;
}

.project-content h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.project-content p {
    font-size: 1rem;
    color: var(--text-light);
    text-align: left;
    margin-bottom: 20px;
}

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

.project-tech span {
    background: rgba(0, 191, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    background: #111;
    color: #666;
    border-top: 1px solid #222;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.social-icons a {
    text-decoration: none;
    border: 0;
    width: 40px;
    height: 40px;
    padding: 8px;
    margin: 5px;
    color: var(--primary-color);
    border-radius: 50%;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

.social-icons svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 191, 255, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
}

/* Animations */
.hover-underline-animation {
    display: inline-block;
    position: relative;
    color: #fff;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

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

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

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

@keyframes underlineGrow {
    from { width: 0; left: 50%; transform: translateX(-50%); }
    to { width: 100px; left: 50%; transform: translateX(-50%); }
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: calc(100% - 60px);
        left: 60px !important;
    }

    .timeline-item::after {
        left: -10px !important;
        right: auto !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        clip-path: circle(0% at 100% 0);
        transition: all 0.5s ease-out;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .services-grid,
    .achievements-grid,
    .skills-container,
    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .image-container {
        width: 200px;
        height: 200px;
    }

    .section {
        padding: 10px;
    }

    header, .page-header {
        padding: 100px 10px 60px;
    }

    .timeline-item {
        padding: 15px 20px;
    }
}