/* ============================================
   PORTFOLIO WEBSITE - MAIN STYLESHEET
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #4facfe;
    --accent-color: #00f2fe;
    --dark-color: #1a1a2e;
    --darker-color: #16213e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #6c63ff 0%, #4facfe 100%);
    --gradient-2: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-3: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 15px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.admin-btn {
    background: var(--gradient-1);
    color: var(--white) !important;
    padding: 10px 20px !important;
    border-radius: 25px;
    -webkit-text-fill-color: white;
}

.admin-btn::after {
    display: none;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.4);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ============================================
   HOME SECTION
   ============================================ */
.home-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.home-text {
    animation: fadeInLeft 1s ease;
}

.greeting {
    display: inline-block;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
    position: relative;
    padding-left: 40px;
}

.greeting::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.name {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.title {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 600;
}

.description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.4);
}

.home-image {
    position: relative;
    animation: fadeInRight 1s ease;
}

.home-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: var(--shadow-hover);
    animation: morphing 8s ease-in-out infinite;
}

.placeholder-image {
    width: 400px;
    height: 400px;
    background: var(--gradient-1);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: morphing 8s ease-in-out infinite;
}

.placeholder-image i {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

.side-text {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    white-space: nowrap;
}

.side-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.home-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: -100px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--secondary-color);
    bottom: 20%;
    right: 5%;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    top: 60%;
    left: 10%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    z-index: -1;
}

.about-img-wrapper img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-img-wrapper .placeholder-image {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.extra-info {
    font-style: italic;
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin: 20px 0 !important;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.skills-section .section-title {
    color: var(--white);
}

.skills-section .section-title::after {
    background: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.skill-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(10deg);
}

.skill-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.skill-progress {
    position: relative;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 5px;
    width: 0%;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

.progress-fill.animate {
    animation: fillProgress 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fillProgress {
    from {
        width: 0%;
    }
    to {
        width: var(--progress-target, 0%);
    }
}

.progress-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-section {
    padding: 100px 0;
    background: var(--light-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.placeholder-project {
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-project i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 99, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link,
.project-details-btn {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    transform: translateY(20px);
}

.project-card:hover .project-link,
.project-card:hover .project-details-btn {
    transform: translateY(0);
}

.project-link:hover,
.project-details-btn:hover {
    background: var(--dark-color);
    color: var(--white);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.project-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-color);
}

#modalBody {
    padding: 30px;
}

#modalBody img {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

#modalBody h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

#modalBody p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

#modalBody .btn {
    margin-top: 20px;
}

/* ============================================
   CERTIFICATES SECTION
   ============================================ */
.certificates-section {
    padding: 100px 0;
    background: var(--white);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.certificate-card {
    background: var(--light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.certificate-image {
    height: 220px;
    overflow: hidden;
    cursor: pointer;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.05);
}

.placeholder-cert {
    width: 100%;
    height: 100%;
    background: var(--gradient-3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-cert i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.5);
}

.certificate-info {
    padding: 20px;
}

.certificate-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.certificate-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--border-radius);
    animation: modalFadeIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary-color);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .home-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .home-text {
        order: 2;
    }

    .home-image {
        order: 1;
    }

    .greeting::before {
        display: none;
    }

    .greeting {
        padding-left: 0;
    }

    .description {
        max-width: 100%;
    }

    .home-image img,
    .placeholder-image {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .side-text {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-img-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .extra-info {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 0;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .hamburger {
        display: flex;
    }

    .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);
    }

    .name {
        font-size: 2.5rem;
    }

    .title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.8rem;
    }

    .title {
        font-size: 1.2rem;
    }

    .greeting {
        font-size: 1rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .home-image img,
    .placeholder-image {
        width: 200px;
        height: 200px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .skill-card {
        padding: 25px 15px;
    }

    .skill-name {
        font-size: 1.1rem;
    }

    .skill-icon {
        width: 60px;
        height: 60px;
    }

    .skill-icon i {
        font-size: 1.8rem;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 180px;
    }

    .project-info {
        padding: 15px;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }

    .certificate-image {
        height: 180px;
    }

    .certificate-info {
        padding: 15px;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .modal-content {
        margin: 10px;
    }

    #modalBody {
        padding: 20px;
    }

    #modalBody h2 {
        font-size: 1.4rem;
    }

    .home-section {
        padding-top: 70px;
    }

    .nav-container {
        padding: 12px 15px;
    }

    .logo {
        font-size: 1.4rem;
    }

    .footer {
        padding: 20px 0;
    }

    .footer p {
        font-size: 0.85rem;
    }
}
