/* Custom styles for the web development site */

/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

body {
    padding-top: 76px; /* Account for fixed navbar */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        margin: 0 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

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

/* Service Cards */
.service-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

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

.service-icon i {
    transition: color 0.3s ease;
}

.service-card:hover .service-icon i {
    color: var(--primary-color) !important;
}

@media (max-width: 767.98px) {
    .service-card {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }
    
    .service-card h4 {
        font-size: 1.2rem;
    }
    
    .service-icon i {
        font-size: 2rem !important;
    }
}

/* Skill Cards */
.skill-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 1rem;
}

.skill-card:hover {
    transform: translateY(-3px);
}

@media (max-width: 767.98px) {
    .skill-card {
        padding: 1rem !important;
    }
    
    .skill-card i {
        font-size: 2rem !important;
    }
    
    .skill-card h5 {
        font-size: 1rem;
    }
}

/* Process Steps */
.process-step .step-number {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 767.98px) {
    .process-step {
        margin-bottom: 2rem;
    }
    
    .process-step .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .process-step h5 {
        font-size: 1.1rem;
    }
    
    .process-step p {
        font-size: 0.9rem;
    }
}

/* Portfolio Items */
.portfolio-item {
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

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

.portfolio-image {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.placeholder-image {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
}

/* Portfolio image styling */
.portfolio-image img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.portfolio-image img:hover {
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    .portfolio-item {
        margin-bottom: 2rem;
    }
    
    .portfolio-image {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .portfolio-content h5 {
        font-size: 1.1rem;
    }
    
    .portfolio-content p {
        font-size: 0.9rem;
    }
    
    .btn-sm {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .portfolio-image {
        height: 180px;
    }
}

/* Contact Form */
.contact-form {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info {
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
}

.contact-info:hover {
    transform: translateY(-3px);
}

.contact-icon i {
    transition: transform 0.3s ease;
}

.contact-info:hover .contact-icon i {
    transform: scale(1.1);
}

@media (max-width: 767.98px) {
    .contact-form {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .contact-info {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
}

/* About Page */
.profile-placeholder {
    transition: transform 0.3s ease;
}

.profile-placeholder:hover {
    transform: scale(1.05);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Price Tags */
.price-tag {
    font-size: 1.2rem;
    margin-top: auto;
    padding-top: 1rem;
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch-friendly minimum height */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .service-card:hover,
    .portfolio-item:hover,
    .skill-card:hover {
        transform: none;
    }
    
    .contact-info:hover {
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

/* Accordion */
.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Responsive Design */
/* Mobile First - Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    body {
        padding-top: 60px;
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
        text-align: center;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .display-5 {
        font-size: 1.5rem;
    }
    
    .display-6 {
        font-size: 1.3rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .portfolio-image {
        height: 150px !important;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .contact-form {
        padding: 1.5rem !important;
    }
    
    .accordion-button {
        font-size: 0.9rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        min-height: 90vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .portfolio-image {
        height: 180px !important;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    body {
        padding-top: 76px;
    }
    
    .hero-section {
        min-height: 100vh;
    }
}

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

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Form validation styles */
.form-control:invalid {
    border-color: #dc3545;
}

.form-control:valid {
    border-color: #28a745;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.7;
}

/* Language Switcher */
.navbar-nav .nav-item.dropdown .nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

.navbar-nav .nav-item.dropdown .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Language flag emoji styling */
.nav-link {
    font-size: 1rem;
}

.dropdown-item {
    font-size: 0.95rem;
}

/* Responsive language switcher */
@media (max-width: 991.98px) {
    .navbar-nav .nav-item.dropdown {
        margin-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 1rem;
    }
    
    .navbar-nav .dropdown-menu {
        background-color: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        margin: 0;
        position: static;
        float: none;
        width: auto;
    }
    
    .navbar-nav .dropdown-item {
        color: rgba(255, 255, 255, 0.75);
        text-align: center;
        padding: 0.75rem 0;
        margin: 0 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navbar-nav .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
}