/* Main styles for portfolio website */
:root {
    --primary: #000;
    --secondary: #fff;
    --accent: #888;
    --cosmic-blue: #1a1a2e;
    --cosmic-purple: #4f46e5;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --glass: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--primary);
    color: var(--secondary);
    overflow-x: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 0 auto 20px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--accent);
}

/* Loader */
#loader {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-text {
    font-size: 24px;
    font-weight: 300;
    margin-top: 20px;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--secondary);
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--secondary)
    }
}

.progress-bar {
    width: 300px;
    height: 2px;
    background: var(--accent);
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--secondary);
    animation: progress 2s ease forwards;
}

@keyframes progress {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.nav-links li a {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
}

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

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    gap: 50px;
    align-items: center;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image-container {
    width: 320px !important;
    height: 320px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.profile-image {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: top center !important;
    display: block !important;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 50%;
}

.hero-text {
    flex: 1;
}

.hero-greeting {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--accent);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.5s;
}

.hero-name {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.8s;
}

.hero-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--accent);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 1.1s;
}

.hero-divider {
    width: 100px;
    height: 3px;
    background: var(--secondary);
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 1.4s;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 1.7s;
}

.hero-cta {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 2s;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary);
    z-index: -1;
    transition: var(--transition);
}

.btn:hover {
    color: var(--primary);
}

.btn:hover::before {
    width: 100%;
}

.btn-filled {
    background: var(--secondary);
    color: var(--primary);
}

.btn-filled::before {
    background: var(--primary);
}

.btn-filled:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 2.3s;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: var(--secondary);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s forwards 3s;
}

.scroll-text {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    margin: 0 auto;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translateX(-50%) rotate(-45deg);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        top: 0;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* New About Page Styles */
.about-section {
    padding-top: 120px;
}

.about-me-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.about-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.about-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.about-card-icon svg {
    stroke: var(--secondary);
}

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

.about-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #d0d0d0;
    flex-grow: 1;
}

.about-content-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-text-section {
    grid-column: 1 / -1;
}

.about-text-section h3 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.about-text-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.about-text-section p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.expertise-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
}

.expertise-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expertise-meter {
    width: 70px;
    height: 160px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 35px;
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
}

.expertise-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, var(--secondary), rgba(255, 255, 255, 0.5));
    transition: height 1.5s ease-out;
}

.expertise-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    font-size: 16px;
}

.expertise-label {
    font-size: 16px;
    font-weight: 500;
}

.timeline {
    position: relative;
    margin: 30px 0;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    height: calc(100% - 20px);
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: -39px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondary);
    border: 3px solid var(--primary);
}

.timeline-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.timeline-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.timeline-date {
    display: block;
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 15px;
    margin-bottom: 0;
}

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

/* About Page Legacy Styles (for compatibility) */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border: 5px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image-border {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--secondary);
    z-index: -1;
    transition: var(--transition);
}

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

.about-heading {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
}

.about-heading::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #e0e0e0;
}

.about-text ul {
    margin-bottom: 25px;
    padding-left: 20px;
}

.about-text li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.03);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-title {
    font-size: 14px;
    color: var(--accent);
}

.about-skills {
    margin-top: 30px;
    margin-bottom: 30px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: #e0e0e0;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: var(--secondary);
    border-radius: 3px;
    position: relative;
    animation: skillAnimation 1.5s ease-in-out forwards;
    transform-origin: left;
    transform: scaleX(0);
}

@keyframes skillAnimation {
    to {
        transform: scaleX(1);
    }
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-download svg {
    transition: var(--transition);
}

.btn-download:hover svg {
    transform: translateY(3px);
}

/* Footer Styles */
.footer {
    display: none;
}

.footer-content,
.footer-section,
.footer-links,
.footer-social,
.footer-bottom {
    display: none;
}

@media (max-width: 1024px) {
    .hero-name {
        font-size: 52px;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .hero-divider {
        margin: 0 auto 30px;
    }

    .hero-cta {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

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

    .about-image {
        max-width: 450px;
        margin: 0 auto 40px;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-cards {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition);
    }

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

    .nav-links li a {
        font-size: 18px;
    }

    .hero-name {
        font-size: 42px;
    }

    .hero-title {
        font-size: 20px;
    }

    .profile-image {
        width: 250px;
        height: 250px;
    }

    .section {
        padding: 70px 0;
    }

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

    .skills-container {
        grid-template-columns: 1fr;
    }

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

    .expertise-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .expertise-item {
        width: 45%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 0 10px;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    .footer-social {
        justify-content: center;
        gap: 24px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .footer-social a {
        font-size: 28px;
        padding: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.05);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }

    .footer-social a:active {
        background: rgba(255, 255, 255, 0.15);
    }

    .footer-links {
        padding-left: 0;
    }

    .footer-bottom {
        padding-top: 24px;
        margin-top: 24px;
        font-size: 13px;
    }

    .footer {
        padding: 40px 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-greeting {
        font-size: 18px;
    }

    .hero-name {
        font-size: 36px;
    }

    .hero-title {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .about-cta {
        flex-direction: column;
    }

    .expertise-item {
        width: 100%;
    }
}