/* Global Variables */
:root {
    --primary-color: #ff5757;
    /* Red Accent */
    --secondary-color: #5c6bf2;
    /* Blue/Violet Accent */
    --dark-bg: #1e1e1e;
    --darker-bg: #111111;
    --card-bg: #252525;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #fff;
    font-weight: 700;
}

span {
    color: var(--primary-color);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--dark-bg);
}

.btn-white {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
}

.btn-white:hover {
    background-color: transparent;
    color: #fff;
}

/* Header */
.header {
    background-color: rgba(30, 30, 30, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.navbar a {
    margin: 0 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.navbar a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('assets/hero-bg.jpg');
    /* Placeholder BG if needed, or purely CSS */
    background-size: cover;
    padding-top: 80px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns .btn {
    margin-right: 15px;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
    margin-top: 40px;
}

.hero-img img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


/* Services Section */
.services {
    background-color: var(--darker-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: #2a2a2a;
}

.icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
    color: #fff;
}

.icon-box.red {
    background-color: var(--primary-color);
}

.icon-box.blue {
    background-color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.left-align {
    text-align: left;
}

.skill-bars {
    margin: 30px 0;
}

.skill-bar {
    margin-bottom: 20px;
}

.skill-bar .info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 600;
}

.skill-bar .bar {
    height: 8px;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}


.skill-bar .bar span {
    height: 100%;
    display: block;
    background-color: var(--primary-color);
    position: absolute;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Widths will be handled by JS or modifier classes */


.about-list li {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.about-list i {
    color: var(--primary-color);
    margin-right: 10px;
}

.about-img img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Portfolio */
.portfolio {
    background-color: var(--dark-bg);
}

.portfolio-filter {
    text-align: center;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--secondary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(92, 107, 242, 0.9);
    /* Blue secondary color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
}

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

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    margin-bottom: 5px;
    transform: translateY(20px);
    transition: 0.4s;
}

.portfolio-overlay p {
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: 0.4s;
}

.portfolio-overlay a {
    width: 40px;
    height: 40px;
    background: #fff;
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(20px);
    transition: 0.4s;
}

.portfolio-item:hover h3,
.portfolio-item:hover p,
.portfolio-item:hover a {
    transform: translateY(0);
}

/* CTA Banner */
.cta-banner {
    background-color: var(--primary-color);
    text-align: center;
    padding: 80px 0;
}

.cta-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-banner p {
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Testimonials */
.testimonials {
    background-color: var(--darker-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.client-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.client-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feedback {
    font-style: italic;
    color: #ddd;
    margin-bottom: 20px;
}

.stars {
    color: #f1c40f;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.member-info {
    padding: 20px;
}

.member-info h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.member-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-links a {
    color: #fff;
    margin: 0 8px;
    font-size: 1rem;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Pricing */
.pricing {
    background-color: var(--darker-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

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

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card .badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: bold;
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card ul {
    margin-bottom: 30px;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.pricing-card ul li i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.pricing-card ul li.na {
    opacity: 0.5;
    text-decoration: line-through;
}

.pricing-card ul li.na i {
    color: #666;
}

/* Blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    position: relative;
}

.blog-img img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 20px;
}

.blog-content h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
    outline: none;
    margin-bottom: 20px;
    transition: var(--transition);
}

textarea {
    margin-bottom: 0;
    /* Handled by wrapper or button margin */
}

input:focus,
textarea:focus {
    border-color: var(--primary-color);
    background-color: #3a3a3a;
}

.contact-form button {
    margin-top: 20px;
    border: none;
}


.info-box {
    display: flex;
    margin-bottom: 30px;
}

.info-box .icon {
    width: 50px;
    height: 50px;
    background-color: var(--card-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 20px;
    flex-shrink: 0;
}

.info-box h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.info-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: #111;
    padding-top: 70px;
    border-top: 1px solid #333;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    margin-bottom: 20px;
}

.footer-col h3 span {
    color: var(--secondary-color);
}

.footer-col h4 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col p {
    color: #aaa;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #222;
    color: #777;
    font-size: 0.9rem;
}

/* Animations Trigger Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-left {
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.fade-right {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease;
}

.active.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.active.fade-up {
    opacity: 1;
    transform: translateY(0);
}

.active.fade-left {
    opacity: 1;
    transform: translateX(0);
}

.active.fade-right {
    opacity: 1;
    transform: translateX(0);
}

/* Keyframes for Hero (Auto Load) */
@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-left {
    opacity: 0;
    animation: slideLeft 1s ease forwards;
}

.slide-right {
    opacity: 0;
    animation: slideRight 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}


/* Responsive */
@media (max-width: 991px) {
    .header .container {
        padding: 0 30px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
        z-index: 1;
        border-color: #333;
    }

    .pricing-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
    }

    .navbar.active {
        left: 0;
    }

    .navbar a {
        margin: 20px 0;
        font-size: 1.2rem;
    }

    .hero {
        height: auto;
        padding: 120px 0 60px;
        text-align: center;
    }

    .hero .container {
        flex-direction: column;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .hero-content p {
        margin: 0 auto 30px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}