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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

html {
    scroll-behavior: smooth;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Gradients */
.gradient-bg {
    background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%);
}

.gradient-bg-secondary {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
}

.gradient-bg-accent {
    background: linear-gradient(to right, #11998e, #38ef7d);
}

/* Animations */
.floating {
    animation: floating 3s ease-in-out infinite;
}

.floating-delayed {
    animation: floating 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Portfolio Card */
.portfolio-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    position: relative;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-menu {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
}

.mobile-menu-btn {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #5b3ad1;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    flex-direction: column;
    gap: 1rem;
    min-width: 200px;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.menu-toggle:checked + .mobile-menu-btn + .mobile-menu {
    display: flex;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%);
    color: white;
    padding: 8rem 0 5rem;
    margin-top: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.hero-images {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.image-container {
    position: relative;
    width: 14rem;
    height: 14rem;
}

.hero-image-main {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    object-position: top;
}

.hero-image-secondary {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    position: absolute;
    bottom: -1.25rem;
    right: -1.25rem;
}

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

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: white;
    color: #6e45e2;
}

.btn-primary:hover {
    background: #f3f4f6;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #6e45e2;
}

.btn-gradient {
    background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%);
    color: white;
}

.btn-gradient:hover {
    opacity: 0.9;
}

.btn-submit {
    width: 100%;
    background: #fbbf24;
    color: #1e40af;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #f59e0b;
    transform: scale(1.02);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4rem;
    color: #1f2937;
}

.section-title.white {
    color: white;
}

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

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.profile-image {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.purple-border {
    border: 4px solid #8b5cf6;
}

.profile-info {
    text-align: center;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.profile-role {
    color: #8b5cf6;
    font-weight: 500;
}

.profile-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.profile-detail {
    margin-bottom: 1.5rem;
}

.detail-title {
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.detail-text {
    color: #6b7280;
}

.interest-list {
    list-style: disc;
    margin-left: 1.25rem;
    color: #6b7280;
}

/* Skills Section */
.skills-section {
    padding: 5rem 0;
    background: #f9fafb;
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

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

.skill-item {
    width: 100%;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.skill-name {
    color: #374151;
    font-weight: 500;
}

.skill-percentage {
    color: #6b7280;
}

.skill-bar {
    width: 100%;
    background: #e5e7eb;
    border-radius: 50px;
    height: 0.625rem;
    overflow: hidden;
}

.skill-progress {
    background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%);
    height: 100%;
    border-radius: 50px;
    transition: width 0.3s ease;
}

/* Tech Icons */
.tech-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-icon:hover {
    transform: translateY(-2px);
}

.tech-icon i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tech-icon .fa-html5 { color: #e34c26; }
.tech-icon .fa-css3-alt { color: #1572b6; }
.tech-icon .fa-js { color: #f7df1e; }
.tech-icon .fa-react { color: #61dafb; }
.tech-icon .fa-node-js { color: #339933; }
.tech-icon .fa-git-alt { color: #f05032; }

.tech-icon span {
    color: #374151;
    font-size: 0.875rem;
}

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    overflow: hidden;
    background: #f9fafb;
    padding: 0;
}

.project-image {
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.project-image i {
    font-size: 4rem;
    color: white;
}

.purple-bg {
    background: #c084fc;
}

.blue-bg {
    background: #60a5fa;
}

.green-bg {
    background: #34d399;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.project-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.tag {
    background: #e0e7ff;
    color: #3730a3;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.tag.blue {
    background: #dbeafe;
    color: #1e40af;
}

.tag.green {
    background: #d1fae5;
    color: #065f46;
}

.project-link {
    color: #8b5cf6;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #7c3aed;
}

.project-link.blue {
    color: #3b82f6;
}

.project-link.blue:hover {
    color: #2563eb;
}

.project-link.green {
    color: #10b981;
}

.project-link.green:hover {
    color: #059669;
}

.projects-cta {
    text-align: center;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #6e45e2 0%, #88d3ce 100%);
    color: white;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-info {
    order: 2;
}

.contact-form-container {
    order: 1;
}

.contact-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
}

.contact-details h4 {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.contact-details p {
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.social-section {
    margin-top: 2rem;
}

.social-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.social-link {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    background: #5b3ad1;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: white;
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #6d28d9;
    color: white;
    border: 1px solid #7c3aed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    cursor: pointer;
}

/* Footer */
.footer {
    background: #111827;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: #9ca3af;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #8b5cf6;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.copyright {
    color: #9ca3af;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

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

.footer-social-link:hover {
    color: white;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .tech-icons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-nav {
        flex-direction: row;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .copyright {
        text-align: left;
    }
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-content {
        flex-direction: row;
        text-align: left;
    }
    
    .hero-images {
        flex: 1;
        padding: 0;
    }
    
    .hero-text {
        flex: 1;
        text-align: left;
    }
    
    .hero-title {
        font-size: 3.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    .image-container {
        width: 20rem;
        height: 20rem;
    }
    
    .hero-image-secondary {
        width: 8rem;
        height: 8rem;
    }
    
    .profile-header {
        flex-direction: row;
        text-align: left;
    }
    
    .profile-info {
        text-align: left;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        flex-direction: row;
    }
    
    .contact-info {
        flex: 1;
        order: 1;
    }
    
    .contact-form-container {
        flex: 1;
        order: 2;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-brand {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .about-grid {
        flex-direction: row;
    }
    
    .tech-icons {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .floating,
    .floating-delayed {
        animation: none;
    }
    
    .portfolio-card {
        transition: none;
    }
    
    .portfolio-card:hover {
        transform: none;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }
    
    .hero-section {
        margin-top: 0;
    }
    
    .floating,
    .floating-delayed {
        animation: none;
    }
}