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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #1e40af;
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #1e40af;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1e40af;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: #374151;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.mobile-profile-icon {
    display: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #fbbf24;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
    min-height: 4.4rem;
    display: block;
    opacity: 0;
    visibility: hidden;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #e5e7eb;
    font-weight: 500;
    line-height: 1.4;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #d1d5db;
    line-height: 1.8;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    margin-top: 2rem;
}

.btn {
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.btn-primary {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e40af;
    border-color: #fbbf24;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
    border: 4px solid #fbbf24;
}

.desktop-profile-photo {
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.profile-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: #d1d5db;
}

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

.section-subtitle {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background: white;
}

.about-description {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.about-text p {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.skills {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    justify-items: center;
}

.skill-item {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item i {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.skill-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.skill-item p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: #f8fafc;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    overflow: hidden;
}

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}


.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
}

.portfolio-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.portfolio-link:hover {
    color: #3b82f6;
}

.external-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.external-link:hover {
    color: #3b82f6;
}

/* Social Media Section */
.social-media {
    padding: 80px 0;
    background: white;
}

.social-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: #d1d5db;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #374151;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-methods {
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: #1e40af;
    width: 30px;
}

.contact-method h4 {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.contact-method p {
    color: #6b7280;
    margin: 0;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: #1e40af;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #3b82f6;
    transform: translateY(-3px);
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e40af;
}

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

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

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

.footer-links {
    display: flex;
    gap: 2rem;
}

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

.footer-links a:hover {
    color: #fbbf24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero {
        padding: 140px 0 100px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 5rem;
        padding: 0 40px;
    }

    .mobile-profile-icon {
        display: block;
        width: 100px;
        height: 100px;
        border-radius: 50%;
        margin: 0 auto 2.5rem;
        overflow: hidden;
        box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
        border: 4px solid #fbbf24;
    }

    .profile-photo {
        width: 100%;
        height: 100%;
        object-fit: fill;
        object-position: center;
        pointer-events: none;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
        user-drag: none;
    }

    .hero-title {
        font-size: 2.8rem;
        line-height: 1.2;
        margin-bottom: 2.5rem;
        min-height: 3.36rem;
        display: block;
        opacity: 0;
        visibility: hidden;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 3rem;
        line-height: 1.5;
        padding: 0 20px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 3.5rem;
        line-height: 1.6;
        padding: 0 20px;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1.8rem;
        align-items: center;
        padding: 0 30px;
        margin-top: 2rem;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 12px 28px;
        font-size: 1rem;
        border-radius: 25px;
    }

    .profile-card {
        display: none;
    }

    .mobile-profile-icon {
        display: block;
    }

    .profile-image {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .profile-info h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .profile-info p {
        font-size: 0.9rem;
    }

    .about {
        padding: 60px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 15px;
    }

    .about-description {
        font-size: 0.85rem;
        margin-bottom: 3rem;
        padding: 0 20px;
    }

    .skills {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
        width: 100%;
    }

    .skill-item {
        padding: 1.5rem;
        width: 100%;
        box-sizing: border-box;
    }

    .skill-item i {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .skill-item h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .skill-item p {
        font-size: 0.75rem;
    }

    .portfolio {
        padding: 60px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }

    .social-media {
        padding: 60px 0;
    }

    .social-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 15px;
    }

    .gallery-item {
        height: 200px;
    }

    .contact {
        padding: 60px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 15px;
    }

    .contact-form {
        padding: 1.5rem;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 2rem;
        min-height: 2.2rem;
        display: block;
        opacity: 0;
        visibility: hidden;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 15px;
        line-height: 1.4;
    }

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 3rem;
        line-height: 1.5;
        padding: 0 15px;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .btn {
        width: 100%;
        max-width: 160px;
        text-align: center;
        padding: 6px 16px;
        font-size: 0.8rem;
        border-radius: 20px;
    }

    .profile-card {
        display: none;
    }

    .mobile-profile-icon {
        display: block;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        margin: 0 auto 2rem;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
        border: 3px solid #fbbf24;
    }

    .profile-image {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }

    .about-description {
        font-size: 0.8rem;
        margin-bottom: 2.5rem;
        padding: 0 15px;
    }

    .skills {
        gap: 1rem;
        width: 100%;
    }

    .skill-item {
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .skill-item i {
        font-size: 1.5rem;
    }

    .skill-item h3 {
        font-size: 1rem;
    }

    .skill-item p {
        font-size: 0.7rem;
    }

    .social-gallery {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .gallery-item {
        height: 180px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.portfolio-item,
.skill-item {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
}
