/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-visual {
        order: -1;
    }

    .code-animation {
        padding: 1.5rem;
        font-size: 0.8rem;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .nickname {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-card {
        flex: 1;
        min-width: 150px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skills-tags {
        justify-content: center;
        gap: 0.8rem;
    }

    .skill-tag {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .skill-tag i {
        font-size: 1.1rem;
    }

    .skill-tag span {
        font-size: 0.85rem;
    }

    section {
        padding: 80px 0;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .greeting {
        font-size: 1rem;
    }

    .nickname {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
        justify-content: center;
    }

    .hero-description {
        font-size: 1rem;
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .code-animation {
        padding: 1rem;
        font-size: 0.7rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .about-card {
        padding: 2rem;
    }

    .about-card h3 {
        font-size: 1.5rem;
    }

    .about-info {
        gap: 1rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-card {
        min-width: auto;
    }

    .stat-number {
        font-size: 2rem;
    }

    .skills-category {
        padding: 2rem;
    }

    .category-title {
        font-size: 1.3rem;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .skill-item {
        padding: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.2rem;
    }

    .contact-info {
        gap: 1rem;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    section {
        padding: 60px 0;
    }
}

/* Mobile Medium */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 10px;
        height: 60px;
    }

    .nav-logo .logo-text {
        font-size: 1.5rem;
    }

    .nav-menu {
        top: 60px;
    }

    .hero {
        padding-top: 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .greeting {
        font-size: 0.9rem;
    }

    .nickname {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .code-animation {
        padding: 0.8rem;
        font-size: 0.6rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .about-card h3 {
        font-size: 1.3rem;
    }

    .about-role {
        font-size: 1rem;
    }

    .skills-category {
        padding: 1.5rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .skill-item {
        padding: 0.8rem;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    section {
        padding: 50px 0;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .nickname {
        font-size: 1.3rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .code-animation {
        display: none;
    }

    .hero-visual {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-card {
        padding: 1.2rem;
    }

    .skills-category {
        padding: 1.2rem;
    }

    .project-content {
        padding: 1rem;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .nickname {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .about-card h3 {
        font-size: 1.2rem;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .project-title {
        font-size: 1rem;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .hero-container {
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        margin-bottom: 1rem;
    }

    .hero-buttons {
        margin-bottom: 1rem;
    }

    .scroll-indicator {
        display: none;
    }

    section {
        padding: 50px 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before {
        background-size: 50% 50%;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator {
        animation: none;
    }

    .cursor {
        animation: none;
    }

    .hero-content {
        animation: none;
    }

    .hero-visual {
        animation: none;
    }
}

/* Shop Page Responsive Styles */

/* Desktop */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1.5rem;
    }
    
    .shop-title {
        font-size: 2.5rem;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .shop-hero {
        min-height: 50vh;
        margin-top: 70px;
    }
    
    .shop-title {
        font-size: 2.2rem;
    }
    
    .shop-description {
        font-size: 1.1rem;
    }
    
    .services-section {
        padding: 60px 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .service-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .service-title {
        font-size: 1.3rem;
    }
    
    .price-amount {
        font-size: 2.2rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .category-title {
        font-size: 1.6rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 15% auto;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .shop-hero {
        min-height: 40vh;
        padding: 2rem 0;
    }
    
    .shop-title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .shop-greeting {
        font-size: 1rem;
    }
    
    .shop-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .service-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-title {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .price-currency {
        font-size: 1rem;
    }
    
    .price-period {
        font-size: 0.8rem;
    }
    
    .service-price-secondary .price-amount {
        font-size: 1.1rem;
    }
    
    .service-content {
        padding: 1.2rem;
    }
    
    .service-features {
        margin-bottom: 1.5rem;
    }
    
    .service-features li {
        margin-bottom: 0.6rem;
        font-size: 0.9rem;
    }
    
    .service-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .category-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .service-category {
        margin-bottom: 3rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 20% auto;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .contact-options {
        gap: 0.8rem;
    }
    
    .contact-option {
        padding: 0.8rem 1.2rem;
    }
    
    .contact-option i {
        font-size: 1.3rem;
        margin-right: 0.8rem;
    }
}

/* Mobile Medium */
@media (max-width: 576px) {
    .shop-hero {
        min-height: 35vh;
        padding: 1.5rem 0;
    }
    
    .shop-title {
        font-size: 1.6rem;
    }
    
    .shop-greeting {
        font-size: 0.9rem;
    }
    
    .shop-description {
        font-size: 0.9rem;
    }
    
    .services-section {
        padding: 40px 0;
    }
    
    .service-card.featured::before {
        font-size: 0.7rem;
        padding: 3px 35px;
        right: -35px;
    }
    
    .service-header {
        padding: 1.2rem 0.8rem 0.8rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .service-title {
        font-size: 1.1rem;
    }
    
    .price-amount {
        font-size: 1.8rem;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-features li {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .service-features li i {
        font-size: 0.8rem;
        margin-right: 0.6rem;
    }
    
    .service-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .category-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .category-title::after {
        width: 80px;
        height: 3px;
    }
    
    .modal-content {
        margin: 25% auto;
    }
    
    .modal-header {
        padding: 1.2rem 1.2rem 0.8rem;
    }
    
    .modal-title {
        font-size: 1.2rem;
    }
    
    .close {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.2rem;
    }
    
    .modal-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-option {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .contact-option i {
        font-size: 1.2rem;
        margin-right: 0.7rem;
        width: 25px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .shop-hero {
        min-height: 30vh;
        padding: 1rem 0;
    }
    
    .shop-title {
        font-size: 1.4rem;
    }
    
    .shop-description {
        font-size: 0.85rem;
    }
    
    .service-card.featured::before {
        display: none;
    }
    
    .service-header {
        padding: 1rem 0.6rem 0.6rem;
    }
    
    .service-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .service-title {
        font-size: 1rem;
    }
    
    .price-amount {
        font-size: 1.6rem;
    }
    
    .price-currency {
        font-size: 0.9rem;
    }
    
    .service-content {
        padding: 0.8rem;
    }
    
    .service-features li {
        font-size: 0.8rem;
    }
    
    .service-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .category-title {
        font-size: 1.1rem;
    }
    
    .modal-content {
        margin: 30% auto;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .contact-option {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .contact-option i {
        font-size: 1.1rem;
        margin-right: 0.6rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    .shop-title {
        font-size: 1.2rem;
    }
    
    .service-title {
        font-size: 0.95rem;
    }
    
    .price-amount {
        font-size: 1.4rem;
    }
    
    .service-features li {
        font-size: 0.75rem;
    }
    
    .service-btn {
        font-size: 0.75rem;
    }
    
    .category-title {
        font-size: 1rem;
    }
    
    .modal-title {
        font-size: 1rem;
    }
    
    .contact-option {
        font-size: 0.8rem;
    }
}

/* Landscape Mobile for Shop */
@media (max-height: 500px) and (orientation: landscape) {
    .shop-hero {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .shop-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .shop-description {
        margin-bottom: 0;
    }
    
    .services-section {
        padding: 30px 0;
    }
    
    .service-category {
        margin-bottom: 2rem;
    }
    
    .modal-content {
        margin: 5% auto;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .social-links,
    .contact-form,
    .scroll-indicator,
    .service-btn,
    .modal {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero,
    .about,
    .skills,
    .projects,
    .contact,
    .shop-hero,
    .services-section {
        background: white;
    }

    .section-title,
    .hero-title .name,
    .shop-title .shop-name {
        color: black;
    }

    .about-card,
    .skills-category,
    .project-card,
    .contact-card,
    .service-card {
        border: 1px solid #ccc;
        background: white;
    }
    
    .service-card.featured::before {
        display: none;
    }
    
    .price-amount,
    .service-title,
    .category-title {
        color: black;
    }
}
