/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #f3f4f6;
    z-index: 50;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }
}

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

@media (min-width: 640px) {
    .nav-content {
        height: 4rem;
    }
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    background: linear-gradient(to right, #9333ea, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@media (min-width: 640px) {
    .logo {
        font-size: 1.5rem;
    }
}

.nav-desktop {
    display: none;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .nav-desktop {
        gap: 2rem;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #4b5563;
}

.nav-link:hover {
    color: #9333ea;
    background-color: #f9fafb;
}

.nav-link.active {
    color: #9333ea;
    background-color: #faf5ff;
}

.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #4b5563;
    transition: all 0.2s;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn:hover {
    color: #9333ea;
    background-color: #f9fafb;
}

.nav-mobile {
    display: none;
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-mobile.show {
    display: block;
}

@media (min-width: 768px) {
    .nav-mobile {
        display: none !important;
    }
}

.nav-mobile-content {
    padding: 0.5rem;
    max-height: 100vh;
    overflow-y: auto;
}

.nav-mobile-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #4b5563;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    color: #9333ea;
    background-color: #faf5ff;
}

/* Hero Section */
.hero-section {
    padding-top: 3.5rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 50%, #f0fdfa 100%);
}

@media (min-width: 640px) {
    .hero-section {
        padding-top: 4rem;
    }
}

.hero-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: 3rem 0;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        padding: 5rem 0;
    }
}

.hero-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

.hero-text {
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-text {
        margin-bottom: 2rem;
    }
}

.hero-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-name {
    display: block;
    background: linear-gradient(to right, #9333ea, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.7;
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .hero-description {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .hero-description {
        margin: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(to right, #9333ea, #06b6d4);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

@media (min-width: 640px) {
    .btn-primary {
        padding: 1rem 2rem;
    }
}

.btn-primary:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid #9333ea;
    color: #9333ea;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    background: none;
    cursor: pointer;
    transition: all 0.3s;
}

@media (min-width: 640px) {
    .btn-secondary {
        padding: 1rem 2rem;
    }
}

.btn-secondary:hover {
    background-color: #9333ea;
    color: white;
}

.btn-secondary:active {
    transform: scale(0.95);
}

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

@media (min-width: 1024px) {
    .hero-image {
        justify-content: flex-end;
    }
}

.hero-avatar {
    width: 16rem;
    height: 16rem;
    position: relative;
}

@media (min-width: 640px) {
    .hero-avatar {
        width: 20rem;
        height: 20rem;
    }
}

@media (min-width: 1024px) {
    .hero-avatar {
        width: 24rem;
        height: 24rem;
    }
}

.avatar-border {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    border-radius: 50%;
    padding: 0.25rem;
}

.avatar-container {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-img {
    width: 83.333333%;
    height: 83.333333%;
    object-fit: cover;
    border-radius: 50%;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s infinite;
}

.floating-1 {
    top: -1rem;
    right: -1rem;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to right, #fb923c, #ec4899);
}

@media (min-width: 640px) {
    .floating-1 {
        width: 6rem;
        height: 6rem;
    }
}

.floating-2 {
    bottom: -1rem;
    left: -1rem;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    animation-delay: 1s;
}

@media (min-width: 640px) {
    .floating-2 {
        width: 8rem;
        height: 8rem;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 1.875rem;
    }
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 48rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .section-subtitle {
        font-size: 1.25rem;
    }
}

/* About Section */
.about-section {
    padding: 3rem 0;
    background: white;
}

@media (min-width: 640px) {
    .about-section {
        padding: 5rem 0;
    }
}

.about-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.about-content {
    order: 2;
}

@media (min-width: 1024px) {
    .about-content {
        order: 1;
    }
}

.about-text {
    font-size: 1rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .about-text {
        font-size: 1.125rem;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .stats-grid {
        gap: 1.5rem;
    }
}

.stat-card {
    text-align: center;
    padding: 1rem;
    border-radius: 0.75rem;
}

@media (min-width: 640px) {
    .stat-card {
        padding: 1.5rem;
    }
}

.stat-purple {
    background: linear-gradient(135deg, #faf5ff, #f0fdfa);
}

.stat-cyan {
    background: linear-gradient(135deg, #f0fdfa, #dbeafe);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .stat-number {
        font-size: 1.875rem;
    }
}

.stat-purple .stat-number {
    color: #9333ea;
}

.stat-cyan .stat-number {
    color: #06b6d4;
}

.stat-label {
    font-size: 0.875rem;
    color: #4b5563;
}

@media (min-width: 640px) {
    .stat-label {
        font-size: 1rem;
    }
}

.about-visual {
    order: 1;
}

@media (min-width: 1024px) {
    .about-visual {
        order: 2;
    }
}

.about-image {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .about-image {
        height: 20rem;
    }
}

.philosophy-card {
    background: linear-gradient(to right, #9333ea, #06b6d4);
    padding: 1rem;
    border-radius: 0.75rem;
    color: white;
}

@media (min-width: 640px) {
    .philosophy-card {
        padding: 1.5rem;
    }
}

.philosophy-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .philosophy-title {
        font-size: 1.25rem;
    }
}

.philosophy-text {
    font-size: 0.875rem;
    line-height: 1.7;
}

@media (min-width: 640px) {
    .philosophy-text {
        font-size: 1rem;
    }
}

/* Projects Section */
.projects-section {
    padding: 3rem 0;
    background: #f9fafb;
}

@media (min-width: 640px) {
    .projects-section {
        padding: 5rem 0;
    }
}

.projects-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.project-card:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    transition: transform 0.3s;
}

@media (min-width: 640px) {
    .project-image img {
        height: 14rem;
    }
}

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.project-card:hover .project-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.project-overlay i {
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay i {
    opacity: 1;
}

.project-content {
    padding: 1rem;
}

@media (min-width: 640px) {
    .project-content {
        padding: 1.5rem;
    }
}

.project-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
    .project-title {
        font-size: 1.25rem;
    }
}

.project-description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .project-description {
        font-size: 1rem;
    }
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(to right, #faf5ff, #f0fdfa);
    color: #7c3aed;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

@media (min-width: 640px) {
    .tag {
        font-size: 0.875rem;
    }
}

/* Skills Section */
.skills-section {
    padding: 3rem 0;
    background: white;
}

@media (min-width: 640px) {
    .skills-section {
        padding: 5rem 0;
    }
}

.skills-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .skills-list {
        gap: 2rem;
    }
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.skill-name {
    font-size: 1rem;
    font-weight: 500;
    color: #1f2937;
}

@media (min-width: 640px) {
    .skill-name {
        font-size: 1.125rem;
    }
}

.skill-percentage {
    font-size: 1rem;
    font-weight: 500;
    color: #9333ea;
}

@media (min-width: 640px) {
    .skill-percentage {
        font-size: 1.125rem;
    }
}

.skill-bar {
    width: 100%;
    background: #e5e7eb;
    border-radius: 9999px;
    height: 0.5rem;
}

@media (min-width: 640px) {
    .skill-bar {
        height: 0.75rem;
    }
}

.skill-progress {
    background: linear-gradient(to right, #9333ea, #06b6d4);
    height: 100%;
    border-radius: 9999px;
    transition: width 1s ease-out;
}

.tools-section {
    background: linear-gradient(135deg, #faf5ff, #f0fdfa);
    padding: 1.5rem;
    border-radius: 0.75rem;
}

@media (min-width: 640px) {
    .tools-section {
        padding: 2rem;
    }
}

.tools-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .tools-title {
        font-size: 1.5rem;
    }
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .tools-grid {
        gap: 1rem;
    }
}

.tool-item {
    background: white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-weight: 500;
    color: #374151;
    transition: box-shadow 0.2s;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .tool-item {
        padding: 1rem;
        font-size: 1rem;
    }
}

.tool-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 50%, #f0fdfa 100%);
}

@media (min-width: 640px) {
    .contact-section {
        padding: 5rem 0;
    }
}

.contact-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .contact-info {
        gap: 2rem;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .contact-item {
        padding: 1.5rem;
    }
}

.contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .contact-icon {
        width: 3rem;
        height: 3rem;
    }
}

.contact-icon-purple {
    background: linear-gradient(to right, #9333ea, #06b6d4);
}

.contact-icon-cyan {
    background: linear-gradient(to right, #06b6d4, #3b82f6);
}

.contact-icon i {
    color: white;
}

.contact-details {
    min-width: 0;
    flex: 1;
}

.contact-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

@media (min-width: 640px) {
    .contact-title {
        font-size: 1.125rem;
    }
}

.contact-text {
    font-size: 0.875rem;
    color: #4b5563;
    word-break: break-all;
}

@media (min-width: 640px) {
    .contact-text {
        font-size: 1rem;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 1024px) {
    .social-links {
        justify-content: flex-start;
    }
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

@media (min-width: 640px) {
    .social-link {
        width: 3rem;
        height: 3rem;
    }
}

.social-purple {
    background: linear-gradient(to right, #9333ea, #06b6d4);
}

.social-gray {
    background: linear-gradient(to right, #374151, #1f2937);
}

.social-blue {
    background: linear-gradient(to right, #3b82f6, #1d4ed8);
}

.social-link:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.social-link:active {
    transform: scale(0.95);
}

.contact-form {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .contact-form {
        padding: 2rem;
    }
}

.form-group {
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .form-group {
        margin-bottom: 1.5rem;
    }
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

@media (min-width: 640px) {
    .form-input,
    .form-textarea {
        padding: 0.75rem 1rem;
    }
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px #9333ea;
}

.form-textarea {
    resize: none;
}

.form-submit {
    width: 100%;
    background: linear-gradient(to right, #9333ea, #06b6d4);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

.form-submit:active {
    transform: scale(0.95);
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 2rem 0;
}

@media (min-width: 640px) {
    .footer {
        padding: 3rem 0;
    }
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: bold;
    background: linear-gradient(to right, #a855f7, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .footer-logo {
        font-size: 1.5rem;
    }
}

.footer-text {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .footer-text {
        font-size: 1rem;
    }
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .footer-social {
        margin-bottom: 2rem;
    }
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #a855f7;
}

.footer-copyright {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    color: #6b7280;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .footer-copyright {
        margin-top: 2rem;
        padding-top: 2rem;
        font-size: 0.875rem;
    }
}

/* Utility Classes */
.show {
    display: block !important;
}

.hide {
    display: none !important;
}