/* Responsive Design */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .tech-icons {
        gap: 1.5rem;
    }
    
    .tech-item {
        min-width: 100px;
    }
    
    .tech-item i {
        font-size: 2rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Header */
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        margin-bottom: 0.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image img {
        max-width: 250px;
        height: 250px;
    }
    
    /* Sections */
    .about-section,
    .projects-section,
    .services-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    /* About Section */
    .about-content {
        padding: 2rem;
    }
    
    .about-content h3 {
        font-size: 1.6rem;
    }
    
    .tech-icons {
        gap: 1rem;
    }
    
    .tech-item {
        min-width: 90px;
        padding: 0.8rem;
    }
    
    .tech-item i {
        font-size: 1.8rem;
    }
    
    /* Projects Section */
    .project-image {
        height: 200px;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-title {
        font-size: 1.3rem;
    }
    
    .project-description {
        font-size: 1rem;
    }
    
    .project-buttons {
        flex-direction: column;
    }
    
    .project-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Services Section */
    .service-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 1.8rem;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    /* Header */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        margin-top: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .hero-image img {
        max-width: 200px;
        height: 200px;
    }
    
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    /* Sections */
    .about-section,
    .projects-section,
    .services-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* About Section */
    .about-content {
        padding: 1.5rem;
    }
    
    .about-content h3 {
        font-size: 1.4rem;
    }
    
    .tech-icons {
        gap: 0.5rem;
    }
    
    .tech-item {
        min-width: 80px;
        padding: 0.6rem;
    }
    
    .tech-item i {
        font-size: 1.5rem;
    }
    
    .tech-item span {
        font-size: 0.8rem;
    }
    
    .specialties ul {
        max-width: 100%;
    }
    
    .specialties li {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    /* Projects Section */
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 1rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
    
    .project-features li {
        font-size: 0.9rem;
    }
    
    .project-buttons .btn {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
    
    /* Services Section */
    .service-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-card h4 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .footer-divider {
        margin: 1.5rem 0 0.5rem;
    }
    
    .footer p:last-child {
        font-size: 0.7rem;
    }
    
    /* Buttons */
    .btn {
        font-size: 0.8rem;
        padding: 8px 20px;
    }
    
    .btn-lg {
        font-size: 0.9rem;
        padding: 10px 25px;
    }
}

/* Extra extra small devices (very small phones, less than 375px) */
@media (max-width: 374px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-image img {
        max-width: 180px;
        height: 180px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .about-content {
        padding: 1rem;
    }
    
    .tech-icons {
        gap: 0.3rem;
    }
    
    .tech-item {
        min-width: 70px;
        padding: 0.5rem;
    }
    
    .tech-item i {
        font-size: 1.3rem;
    }
    
    .tech-item span {
        font-size: 0.7rem;
    }
    
    .project-content {
        padding: 0.8rem;
    }
    
    .service-card {
        padding: 1rem 0.8rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.3rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        padding-top: 60px;
    }
    
    .hero-section .row {
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-image img {
        max-width: 180px;
        height: 180px;
    }
    
    .about-section,
    .projects-section,
    .services-section {
        padding: 40px 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-buttons,
    .project-buttons,
    .footer {
        display: none;
    }
    
    .hero-section {
        background: white;
        color: black;
        padding: 20px 0;
    }
    
    .hero-title {
        color: black;
        text-shadow: none;
    }
    
    .section-title {
        color: black;
    }
    
    .about-section,
    .projects-section,
    .services-section {
        background: white;
        padding: 20px 0;
    }
    
    .about-content,
    .project-card,
    .service-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .tech-item {
        background: white;
        border: 1px solid #ccc;
    }
    
    .service-icon {
        background: #f0f0f0;
        color: black;
    }
    
    .service-icon i {
        color: black;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #800080;
        --accent-color: #ffa500;
        --text-color: #000000;
        --bg-color: #ffffff;
        --light-bg: #f0f0f0;
        --border-color: #000000;
    }
    
    .btn {
        border: 2px solid;
    }
    
    .card,
    .project-card,
    .service-card {
        border: 2px solid black;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-section::before {
        animation: none;
    }
    
    .scroll-animate {
        opacity: 1;
        transform: none;
    }
    
    .fade-in-up,
    .fade-in {
        animation: none;
    }
} 