/* Custom styles for Faisal Alvi's personal website */

/* Header section improvements */
.header-title {
    font-size: 75px !important;
    line-height: 1.2;
}

.header-title .up {
    /* font-size: 1.2rem; */
    display: block;
    margin-bottom: 0.5rem;
}

.header-title .down {
    /* font-size: 2.5rem; */
    display: block;
    font-weight: 700;
}

.header-subtitle {
    font-size: 1.3rem !important;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 1rem;
    /* color: rgba(255, 255, 255, 0.95); */
}

.header-description {
    font-size: 1rem;
    /* color: rgba(255, 255, 255, 0.85); */
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-weight: 300;
    line-height: 1.5;
}

.header-photo {
    max-width: 400px;
    width: 100%;
    height: auto;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.header-photo:hover {
    transform: scale(1.05);
}

.header-text {
    padding-right: 2rem;
}

.header-image {
    text-align: center;
    padding-left: 2rem;
    position: relative;
}

.trust-card {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 160px;
    position: absolute;
}

.trust-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6c5ce7;
    line-height: 1;
}

.trust-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    font-weight: 500;
}

/* Responsive header adjustments */
@media (max-width: 1200px) {
    .header-title {
        font-size: 60px !important;
    }
    
    .header-photo {
        max-width: 350px;
    }
}

.trust-card:nth-child(2) {
    right: 40px;
    bottom: 30px;
}

.trust-card:first-child {
    left: 50px;
    top: 10px;
}

@media (max-width: 991px) {
    .header-text {
        padding-right: 0;
        text-align: center;
        margin-bottom: 2rem;
    }

    #about {
        margin-top: 240px;
    }
    
    .header-image {
        padding-left: 0;
    }

    .section#portfolio {
        padding-top: 350px;
    }
    
    .header-title {
        font-size: 45px !important;
    }
    
    .header-photo {
        max-width: 300px;
    }
    
    .header-subtitle {
        font-size: 1.1rem !important;
    }
    
    .header-description {
        font-size: 0.95rem;
    }
    
    .trust-indicators {
        position: static;
        justify-content: center;
        margin-top: 20px;
    }
    
    .trust-card {
        min-width: 100px;
        padding: 12px 15px;
    }

    .trust-card:nth-child(2) {
        right: 40px;
        bottom: 10px;
    }

    .trust-card:first-child {
        left: 30px;
        top: 10px;
    }
    
    .trust-number {
        font-size: 1.3rem;
    }
    
    .trust-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .section#portfolio{
        padding-top: 460px;
    }

    .header-title {
        font-size: 35px !important;
    }
    
    .header-photo {
        max-width: 250px;
    }
    
    .header-subtitle {
        font-size: 1rem !important;
    }
    
    .header-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .trust-card:first-child{
        position: static;
        width: 100%;
        margin-bottom: 15px;
    }
    .trust-card:nth-child(2){
        position: static;
        width: 100%;
    }

    .section#portfolio {
        padding-top: 110px;
    }

    .header-title {
        font-size: 28px !important;
        margin-bottom: 30px;
    }
    
    .header-photo {
        max-width: 200px;
    }
    
    .header-subtitle {
        font-size: 0.95rem !important;
    }
    
    .header-description {
        font-size: 0.85rem;
    }
    
    .header-text {
        padding-right: 0;
        margin-bottom: 1.5rem;
        margin-top: 100px;
    }
    
    .header-image {
        padding-left: 0;
    }
    
    .header-text .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .header-text .btn:last-child {
        margin-bottom: 0;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 10px;
    }

    .header {
        padding-top: 120px;
    }
    
    .trust-card {
        min-width: 80px;
        padding: 10px 12px;
    }
}

@media (max-width: 400px) {
    .header-title {
        font-size: 24px !important;
    }
    
    .header-photo {
        max-width: 90%;
    }
    
    .header-subtitle {
        font-size: 0.9rem !important;
    }
    
    .header-description {
        font-size: 0.8rem;
    }
}

/* Service cards styling */
.service-card {
    background: #fff;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

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

.service-icon {
    margin-bottom: 1.5rem;
}

.service-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    color: #555;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: "✓";
    color: #6c5ce7;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Contact section styling */
.contact-card {
    background: linear-gradient(135deg, #6c5ce7 0%, #5a4fcf 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.contact-card h4 {
    color: white;
    font-weight: 600;
}

.contact-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.contact-card .btn-primary {
    background: white;
    color: #6c5ce7;
    border: 2px solid white;
    font-weight: 600;
}

.contact-card .btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.contact-card .btn-outline-primary {
    color: white;
    border-color: white;
    font-weight: 600;
}

.contact-card .btn-outline-primary:hover {
    background: white;
    color: #6c5ce7;
    border-color: white;
}

.contact-info {
    padding: 1rem;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.contact-info:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.contact-info h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* About section improvements */
.about {
    max-width: 800px;
    margin: 0 auto;
}

.about-caption {
    text-align: left;
    padding: 0 2rem;
}

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

@media (max-width: 768px) {
    .about-caption {
        text-align: center;
        padding: 0 1rem;
    }
    
    .about-caption p {
        font-size: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 2rem;
    }
    
    .contact-card {
        padding: 2rem 1rem;
    }
    
    .contact-card .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .contact-card .btn:last-child {
        margin-bottom: 0;
    }
    
    .header-description {
        font-size: 1rem;
    }
}

/* Animation for service cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-card:nth-child(4) {
    animation-delay: 0.3s;
}

.service-card:nth-child(5) {
    animation-delay: 0.4s;
}

.service-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* Navbar responsive behavior */
@media (min-width: 992px) {
    #nav-toggle { display: none !important; }
    .custom-navbar ul.nav {
        display: flex !important;
        align-items: center;
    }
}

@media (max-width: 991.98px) {
    .custom-navbar ul.nav { display: none; }
    .custom-navbar ul.nav.show { display: block; }
}

/* Fix desktop nav visibility (override vendor animation) */
@media (min-width: 992px) {
    .custom-navbar .nav .item {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        -webkit-transform: none !important;
    }
}

/* Mobile nav link colors on white dropdown */
@media (max-width: 991.98px) {
    .custom-navbar .nav {
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .custom-navbar .nav .item {
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .custom-navbar .nav .item:last-child {
        margin-bottom: 0;
    }
    
    .custom-navbar .nav .item .link {
        color: #333 !important;
        display: block;
        padding: 12px 20px;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        background-color: #f8f9fa;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        min-height: 48px; /* Touch-friendly size */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .custom-navbar .nav .item .link:hover,
    .custom-navbar .nav .item .link.active {
        color: white !important;
        background-color: #6c5ce7 !important;
        border-color: #6c5ce7 !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    }
    
    /* Contact button styling */
    .custom-navbar .nav .item .link.btn {
        background-color: #6c5ce7 !important;
        color: white !important;
        border-color: #6c5ce7 !important;
    }
    
    .custom-navbar .nav .item .link.btn:hover {
        background-color: #5a4fcf !important;
        border-color: #5a4fcf !important;
    }
}

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

/* Blog styles */
.page-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.blog-post-card {
    margin-bottom: 3rem;
}

.post-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.post-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #6c5ce7;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.post-meta i {
    color: #6c5ce7;
}

.post-excerpt {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
}

.post-content {
    line-height: 1.8;
    color: #333;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #6c5ce7;
    padding-bottom: 0.5rem;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
}

.post-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid #6c5ce7;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.post-footer {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

/* Contact form styles */
.contact-form {
    text-align: left;
}
.contact-form .form-row {
    display: block;
}
.contact-form .form-group {
    margin-bottom: 1rem;
}
.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
    color: rgba(255, 255, 255, 0.95);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 8px;
    padding: .75rem .9rem;
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}
.contact-form .btn.btn-light {
    font-weight: 700;
    border-width: 2px;
    margin-top: 20px;
}
.contact-thanks {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: .75rem 1rem;
    border-radius: 8px;
}

@media (max-width: 576px) {
    .contact-form .btn {
        width: 100%;
    }
}
