/* General Styles */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --text-color: #333;
    --border-radius: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
    color: var(--dark-color);
}

.hero-section .lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    font-weight: 300;
    opacity: 1;
    color: var(--dark-color);
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    position: relative;
    z-index: 10;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    opacity: 0.8;
    text-decoration: none;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-icon-link:hover,
.social-icon-link:hover .social-icon {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.2) translateY(-3px);
}

.hero-image {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-radius: var(--border-radius);
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.services-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.card {
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2) !important;
}

.service-card {
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.card i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.card:hover i {
    transform: scale(1.1);
}

/* Service icon SVG styling */
.service-icon svg {
    fill: currentColor !important;
    stroke: currentColor !important;
    color: inherit;
    width: 1em;
    height: 1em;
}

.service-icon svg path,
.service-icon svg circle,
.service-icon svg rect,
.service-icon svg polygon,
.service-icon svg polyline,
.service-icon svg line {
    fill: currentColor !important;
    stroke: currentColor !important;
}


/* Tech Icons */
.tech-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.tech-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.tech-icon:hover {
    color: var(--primary-color);
    opacity: 1;
    transform: scale(1.2) translateY(-3px);
}

/* Tech Icon SVG - Custom SVG icons */
.tech-icon-svg {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    fill: var(--secondary-color) !important; /* matches .tech-icon color */
    stroke: var(--secondary-color) !important; /* for stroked SVGs */
    color: var(--secondary-color);
    transition: all 0.3s ease;
    opacity: 0.8;
}

/* Ensure all paths and shapes inherit color */
.tech-icon-svg path,
.tech-icon-svg circle,
.tech-icon-svg rect,
.tech-icon-svg polygon,
.tech-icon-svg polyline,
.tech-icon-svg line {
    fill: var(--primary-color) !important;
    stroke: var(--primary-color) !important;
}

.tech-icon:hover .tech-icon-svg {
    fill: var(--primary-color) !important;
    stroke: var(--primary-color) !important;
    stroke: var(--primary-color) !important;
}

.tech-icon-svg:hover {
    transform: scale(1.2);
}

/* Optional size utilities */
.tech-icon-svg-sm { font-size: 0.75em; }
.tech-icon-svg-md { font-size: 1em; }
.tech-icon-svg-lg { font-size: 1.5em; }
.tech-icon-svg-xl { font-size: 2em; }

/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
    background: white;
}

.portfolio-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.portfolio-card-link {
    text-decoration: none;
    display: block;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 300px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    transform: translateY(-10px);
}

.portfolio-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-card-image {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    padding: 20px;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h5 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.portfolio-overlay p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

/* Portfolio Detail Section */
.portfolio-detail-section {
    background: white;
    padding: 60px 0;
}

.portfolio-gallery {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.main-image-container {
    position: relative;
    background: #f5f5f5;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 500px;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

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

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 15px;
    background: #f9f9f9;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border: 2px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: var(--border-radius);
}

.portfolio-info h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.portfolio-meta {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 20px;
}

.portfolio-meta p {
    margin-bottom: 10px;
    color: #666;
    font-size: 0.95rem;
}

.portfolio-body {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.portfolio-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--dark-color);
}

.portfolio-body .content {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

.portfolio-body .content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.portfolio-body .content p {
    margin-bottom: 15px;
}

.portfolio-body .content ul,
.portfolio-body .content ol {
    margin-bottom: 15px;
    margin-left: 20px;
}

.portfolio-body .content li {
    margin-bottom: 8px;
}

.portfolio-body .content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-body .content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.portfolio-body .content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

.portfolio-body .content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.portfolio-body .content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Review Styles */
.review-item {
    transition: all 0.3s ease;
}

.review-item:hover {
    background-color: #f9f9f9;
    padding: 15px;
    margin: -15px;
    border-radius: 5px;
}

.review-item h6 {
    color: #667eea;
    font-weight: 600;
}

.review-item .rating-stars {
    display: flex;
    gap: 3px;
}

.review-item .review-text {
    color: #555;
    line-height: 1.8;
    margin-top: 12px;
    font-size: 0.95rem;
}

.alert-info {
    background-color: #e7f3ff;
    border-color: #b3d9ff;
    color: #004085;
}

.alert-info strong {
    color: #667eea;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.button-group .btn {
    transition: all 0.3s ease;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.cta-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.cta-button {
    background-color: white;
    color: #667eea;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #f0f0f0;
    color: #764ba2;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-button i {
    margin-right: 8px;
}

/* Testimonials Section */
.testimonials-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.testimonials-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid #667eea;
    max-width: 600px;
    margin: 0 auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.testimonial-text {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    margin: 20px 0;
    flex-grow: 1;
}

.testimonial-footer {
    color: #666;
}

.testimonial-footer strong {
    color: #667eea;
}

/* Carousel Styling */
#testimonialsCarousel {
    position: relative;
}

#testimonialsCarousel .carousel-control-prev,
#testimonialsCarousel .carousel-control-next {
    width: auto;
    background: none;
    border: none;
    opacity: 1;
    color: #667eea;
    font-size: 24px;
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
}

#testimonialsCarousel .carousel-control-prev:hover,
#testimonialsCarousel .carousel-control-next:hover {
    color: #764ba2;
    transform: translateY(-50%) scale(1.2);
}

#testimonialsCarousel .carousel-control-prev {
    left: -60px;
}

#testimonialsCarousel .carousel-control-next {
    right: -60px;
}

#testimonialsCarousel .carousel-indicators {
    bottom: -50px;
}

#testimonialsCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #667eea;
    opacity: 0.5;
    transition: all 0.3s ease;
}

#testimonialsCarousel .carousel-indicators button.active {
    background-color: #667eea;
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

#testimonialsCarousel .carousel-indicators button:hover {
    opacity: 0.8;
}

/* Reviews Page */
.reviews-section {
    background: white;
    min-height: 100vh;
}

.reviews-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.review-card {
    transition: all 0.3s ease;
    border: none;
    border-top: 4px solid #667eea;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2) !important;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.about-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-section img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.about-section img:hover {
    transform: scale(1.02);
}

.skill-item {
    margin-bottom: 25px;
}

.skill-item .d-flex {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.progress {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.6s ease;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.contact-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.contact-item {
    padding: 30px;
    text-align: center;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    margin-bottom: 20px;
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.contact-item i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item h5 {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.contact-item p {
    color: #666;
    font-size: 0.95rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form .form-control {
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    margin-top: 80px;
    padding: 60px 0 20px;
    border-top: 1px solid #e9ecef;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

footer a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    transform: translateX(5px);
}

footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: white !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .services-section h2,
    .portfolio-section h2,
    .about-section h1,
    .contact-section h1 {
        font-size: 1.8rem;
    }

    .portfolio-card {
        height: 250px;
    }

    .tech-icons {
        gap: 8px;
    }

    .tech-icon {
        font-size: 1.1rem;
    }

    .tech-icon-svg {
        width: 1.1em;
        height: 1.1em;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-section {
        padding: 60px 0;
    }

    .testimonials-section h2 {
        font-size: 1.8rem;
    }

    .testimonial-card {
        padding: 25px;
        min-height: 280px;
    }

    .testimonial-text {
        font-size: 0.9rem;
        margin: 15px 0;
    }

    #testimonialsCarousel .carousel-control-prev {
        left: -40px;
    }

    #testimonialsCarousel .carousel-control-next {
        right: -40px;
    }

    #testimonialsCarousel .carousel-control-prev,
    #testimonialsCarousel .carousel-control-next {
        font-size: 18px;
    }

    .reviews-section h1 {
        font-size: 1.8rem;
    }
}
