/* Modern Portfolio CSS */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #6b48ff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --dark-color: #1a1a2e;
    --light-color: #ffffff;
    --gray-color: #f5f5f7;
    --text-color: #333;
    --text-secondary: #666;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58, 134, 255, 0.6);
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background: rgba(58, 134, 255, 0.1);
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    overflow: hidden;
    transition: var(--transition);
}

.logo-image {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
    transform: scale(0.8);
}

.scrolled .logo-image {
    opacity: 1;
    transform: scale(1);
}

header nav ul {
    display: flex;
    gap: 30px;
}

header nav ul li a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

header nav ul li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: linear-gradient(170deg, rgba(245, 245, 247, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-text .bio {
    margin-bottom: 30px;
    color: var(--text-secondary);

}

.hero-cta {
    display: flex;
    gap: 15px;

}

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

.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--light-color);
    box-shadow: var(--shadow);
    transition: transform 0.5s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Skills Section */
.skills {
    background-color: var(--gray-color);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

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

.skill-item {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    overflow: hidden;
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
}

.skill-item img,
.skill-item svg,
.skill-item .iconify {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    font-size: 40px;
}

.skill-item span,
.skill-item p {
    text-align: center;
    width: 100%;
    word-wrap: break-word;
    font-size: 0.9rem;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.skill-item span:last-child {
    font-weight: 500;
    margin-top: 5px;
}

/* Frameworks Section */
.frameworks {
    background-color: var(--light-color);
}

.frameworks-wrapper {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.frameworks-container {
    display: flex;
    animation: scroll-horizontal 30s linear infinite;
    width: max-content;
}

.framework-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-right: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 280px;
    max-height: none;
    transition: var(--transition);
}

.framework-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.framework-card .iconify {
    font-size: 50px;
    margin-bottom: 15px;
}

.framework-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.framework-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.view-projects-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.view-projects-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.4);
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Projects Section */
.projects {
    background-color: var(--gray-color);
}

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

.project-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
}

.project-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    align-self: flex-start;
}

.project-link:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.4);
}

/* Contact Section */
.contact {
    background-color: var(--light-color);
}

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

.contact-info {
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
}

.contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-email .iconify {
    color: var(--primary-color);
    font-size: 24px;
}

.contact-email a {
    color: var(--primary-color);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.social-link .iconify {
    color: white;
    font-size: 24px;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(58, 134, 255, 0.4);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-content {
        gap: 20px;
    }

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

    .skill-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }

    .hero {
        padding-top: 140px;
    }

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

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

    .profile-photo {
        width: 200px;
        height: 200px;
        margin-bottom: 30px;
    }

    header nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile navigation styles would be added with JavaScript */
    header.active nav {
        display: block;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    header.active nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .logo-image {
        height: 35px;
        width: 35px;
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .skill-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

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

    .btn {
        padding: 10px 24px;
    }
}