/* ========================================
   Responsive Styles
   ======================================== */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199px) {
    .hero-name {
        font-size: 3.8rem;
    }
    
    .hero-role {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991px) {
    :root {
        --section-padding: 80px 0;
    }
    
    /* Navigation */
    .navbar-collapse {
        background: white;
        padding: 20px;
        margin-top: 15px;
        border-radius: 10px;
        box-shadow: var(--shadow-md);
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        margin: 5px 0;
    }
    
    .navbar-nav .nav-link::before {
        left: 15px;
        transform: translateX(0) scaleX(0);
        width: 3px;
        height: 100%;
        bottom: auto;
        top: 0;
    }
    
    .navbar-nav .nav-link:hover::before,
    .navbar-nav .nav-link.active::before {
        transform: translateX(0) scaleY(1);
    }
    
    /* Hero Section */
    .hero-name {
        font-size: 3.2rem;
    }
    
    .hero-role {
        font-size: 1.6rem;
        min-height: 50px;
    }
    
    .hero-description {
        font-size: 1.05rem;
    }
    
    .hero-image {
        margin-bottom: 40px;
    }
    
    .image-wrapper {
        max-width: 400px;
    }
    
    /* About Section */
    .about-heading {
        font-size: 1.9rem;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Contact Form */
    .contact-form {
        padding: 30px;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }
    
    /* Typography */
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-role {
        font-size: 1.3rem;
        min-height: 40px;
    }
    
    .hero-greeting {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        padding: 12px 30px;
        text-align: center;
    }
    
    /* Social Links */
    .social-links {
        justify-content: center;
    }
    
    /* Hero Image */
    .image-wrapper {
        max-width: 320px;
    }
    
    .image-decoration {
        top: 20px;
        left: 20px;
    }
    
    /* About Section */
    .about-heading {
        font-size: 1.7rem;
        text-align: center;
    }
    
    .about-text {
        font-size: 1rem;
        text-align: center;
    }
    
    .personal-info {
        margin-top: 30px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .service-card {
        text-align: center;
    }
    
    .service-icon {
        margin: 0 auto 20px;
    }
    
    /* Projects */
    .project-card {
        margin-bottom: 30px;
    }
    
    .project-image {
        height: 200px;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .project-description {
        font-size: 0.95rem;
    }
    
    /* Skills */
    .skill-category {
        padding: 25px;
        margin-bottom: 25px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 25px;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    .contact-item i {
        font-size: 2rem;
    }
    
    .contact-item h4 {
        font-size: 1.2rem;
    }
    
    /* Footer */
    .footer {
        padding: 25px 0;
    }
    
    .footer-content p {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575px) {
    :root {
        --section-padding: 50px 0;
    }
    
    /* Container Padding */
    .container {
        padding: 0 20px;
    }
    
    /* Navigation */
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-collapse {
        padding: 15px;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-role {
        font-size: 1.1rem;
        min-height: 35px;
    }
    
    .hero-greeting {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .image-wrapper {
        max-width: 280px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    /* Section Headers */
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* About Section */
    .about-heading {
        font-size: 1.5rem;
    }
    
    .about-text {
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.7rem;
    }
    
    .service-card h4 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    /* Projects */
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .project-links {
        gap: 15px;
    }
    
    .project-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .tech-badge {
        padding: 5px 12px;
        font-size: 0.8rem;
    }
    
    /* Skills */
    .skill-category {
        padding: 20px;
    }
    
    .category-title {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .skill-item {
        margin-bottom: 20px;
    }
    
    .skill-name {
        font-size: 0.85rem;
    }
    
    .skill-percentage {
        font-size: 0.85rem;
    }
    
    .progress-bar {
        height: 8px;
    }
    
    /* Contact Section */
    .contact-form {
        padding: 20px;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .btn-submit {
        padding: 12px 40px;
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 20px;
    }
    
    .contact-item i {
        font-size: 1.8rem;
    }
    
    .contact-item h4 {
        font-size: 1.1rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .contact-social a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Very Small Devices (less than 360px) */
@media (max-width: 359px) {
    .hero-name {
        font-size: 1.8rem;
    }
    
    .hero-role {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .image-wrapper {
        max-width: 250px;
    }
}

/* Landscape Orientation */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .hero-name {
        font-size: 2.2rem;
    }
    
    .hero-role {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        margin-bottom: 20px;
    }
    
    .image-wrapper {
        max-width: 250px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .hero-buttons,
    .social-links,
    .contact-form,
    .footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero-section {
        min-height: auto;
        padding: 20px 0;
    }
    
    .section-padding {
        padding: 30px 0;
    }
    
    .project-overlay,
    .image-decoration {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000;
        --text-secondary: #333;
        --border-color: #000;
    }
    
    .btn-outline {
        border-width: 3px;
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-image {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --bg-primary: #111827;
        --bg-secondary: #1f2937;
        --bg-dark: #000000;
        --border-color: #374151;
    }
    
    .navbar {
        background: rgba(17, 24, 39, 0.95);
    }
    
    .hero-section {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }
    
    .service-card,
    .project-card,
    .skill-category,
    .contact-form,
    .contact-item {
        background: #1f2937;
    }
    */
}
