/* 
   DSNlink Systems Website
   Main Stylesheet
   Using brand colors:
   - Deep Blue: #2b388f
   - Light Blue: #00adee
   - Pink/Red: #ec297b
   - Neutral Gray: #929497
*/

/* Base Styles & Reset */
:root {
    --primary-color: #2b388f;
    --secondary-color: #00adee;
    --accent-color: #ec297b;
    --neutral-color: #929497;
    --dark-color: #222;
    --light-color: #f8f9fa;
    --body-font: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 5rem 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
    font-size: 1rem;
}

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

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

/* Portfolio View Project button hover effect */
.portfolio .btn-light {
    transition: all 0.3s ease;
}

.portfolio .btn-light:hover {
    background-color: #00adee;
    border-color: #00adee;
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--primary-color);
}

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

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Animated Quote Button with Gradient Border */
.hero .btn-primary.btn-lg {
    position: relative;
    z-index: 1;
    background-color: var(--primary-color); /* Keep original button color */
    color: white;
    border: none;
    overflow: hidden;
    text-shadow: none; /* Remove any text shadow */
    transition: background-color 0.3s ease;
}

/* Change background color on hover */
.hero .btn-primary.btn-lg:hover {
    background-color: #00adee; /* Change to light blue on hover */
}

.hero .btn-primary.btn-lg::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    background: linear-gradient(90deg, #00adee, #ec297b, #00adee);
    background-size: 200% 200%;
    border-radius: 52px; /* Slightly larger than button's border-radius */
    animation: gradientAnimation 3s linear infinite;
}

.hero .btn-primary.btn-lg::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: var(--primary-color); /* Same as button background */
    border-radius: 48px; /* Slightly smaller than the gradient border */
    z-index: -1;
    transition: background-color 0.3s ease;
}

/* Update the inner background on hover to match the button */
.hero .btn-primary.btn-lg:hover::after {
    background-color: #00adee; /* Change to light blue on hover */
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-block {
    display: block;
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--neutral-color);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.separator {
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

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

.navbar-brand .logo {
    height: 50px;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav li {
    margin-left: 2rem;
}

.navbar-nav a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.navbar-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav a:not(.btn):hover::after {
    width: 100%;
}

.navbar-nav a.btn {
    padding: 0.6rem 1.5rem;
    color: white !important;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.animated-text {
    display: inline-block;
    position: relative;
}

.animated-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* About Section */
.about {
    background-color: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #555;
}

.values-list li {
    display: flex;
    margin-bottom: 1.5rem;
}

.values-list i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1.5rem;
    margin-top: 0.2rem;
}

.values-list h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Services Section */
.service-tabs {
    margin-top: 2rem;
}

.tab-nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    margin: 0 0.5rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50px;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Digital solutions tab - arrange in rows of two */
#digital .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem; /* Slightly increase the gap for better spacing */
}

/* Responsive layout for Digital Solutions tab */
@media (max-width: 768px) {
    #digital .services-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

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

.service-card .icon {
    width: 80px;
    height: 80px;
    background-color: rgba(43, 56, 143, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-card .icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio {
    background-color: #f8f9fa;
}

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

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(43, 56, 143, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-info {
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

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

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

.branding-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .branding-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .branding-grid {
        grid-template-columns: 1fr;
    }
}

.branding-item {
    background-color: white;
    padding: 2.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition);
    height: 180px;
}

.branding-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    padding: 2rem;
    background-color: #f8f9fa;
    color: var(--dark-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 1.5rem;
    color: var(--primary-color);
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(43, 56, 143, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--secondary-color);
    color: white;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 173, 238, 0.1);
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    border-radius: 5px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.form-status.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Testimonials Section */
.testimonials {
    background-color: #f8f9fa;
    padding: 5rem 0;
}

.testimonials-header {
    margin-bottom: 3rem;
}

.testimonials-title {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--primary-color);
    max-width: 800px;
}

.testimonial-carousel {
    position: relative;
}

.carousel-container {
    overflow: hidden;
    margin-bottom: 2rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    min-width: 100%;
    flex: 0 0 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .carousel-item {
        min-width: 50%;
        flex: 0 0 50%;
    }
}

.testimonial-card {
    background-color: #f0f0f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-icon {
    font-size: 2rem;
    color: var(--neutral-color);
    margin-bottom: 1.5rem;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.testimonial-text {
    color: var(--neutral-color);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.author-prefix {
    color: var(--neutral-color);
    font-size: 0.9rem;
}

.author-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.author-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.carousel-control {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.carousel-control:hover {
    background-color: var(--primary-color);
    color: white;
}

.carousel-indicators {
    display: flex;
    gap: 0.5rem;
}

.indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 5rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 1rem;
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: var(--body-font);
}

.newsletter-form button {
    padding: 0 1.2rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--accent-color);
}

.newsletter-status {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: white;
    display: none;
}

.newsletter-status.success {
    display: block;
    color: #4cd964;
}

.newsletter-status.error {
    display: block;
    color: #ff3b30;
}

.newsletter-status.loading {
    display: block;
    color: #5ac8fa;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        padding: 4rem 2rem;
        z-index: 1001;
    }

    .navbar-menu.active {
        right: 0;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-nav li {
        margin-left: 0;
        margin-bottom: 1.5rem;
    }

    .navbar-toggle {
        display: flex;
        z-index: 1002;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

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

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

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

    .hero-content p {
        font-size: 1.1rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 576px) {
    .tab-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .tab-btn {
        width: 100%;
    }

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animated Elements */
.animate-fade-up {
    animation: fadeInUp 1s ease;
}

.animate-slide-left {
    animation: slideInLeft 1s ease;
}

.animate-slide-right {
    animation: slideInRight 1s ease;
}
