/* Digital Marketing Page Styles */

/* Panchang Font Family - Applied to Headings Only */
h1, h2, h3, h4, h5, h6, 
.dm-hero-title, .dm-service-title, .dm-process-title, .dm-commitment-title,
.dm-mv-title, .dm-step-title, .dm-cta-title {
    font-family: 'Panchang-Semibold', 'Panchang', 'Inter', sans-serif !important;
}

/* Default font for body text and other elements */
body, html, .dm-hero-description, .dm-service-description, .dm-process-description, 
.dm-commitment-description, .dm-mv-description, .dm-step-description, .dm-cta-subtitle,
.dm-email-input, .dm-submit-btn, .dm-website-input, .dm-proposal-btn, 
p, span, button, input, textarea {
    font-family: 'Inter', sans-serif !important;
}

/* Hero Section */
.dm-hero {
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
    padding-top: 6rem !important; /* Account for fixed header */
}

.dm-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.dm-hero-content {
    color: white;
}

.dm-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.highlight-text {
    background: linear-gradient(45deg, #00b3b3, #9c88ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dm-hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
}

.dm-hero-cta {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dm-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.dm-cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.dm-cta-form {
    display: flex;
    gap: 15px;
}

.dm-email-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dm-email-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.dm-submit-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, #090040, #00b3b3);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dm-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 179, 179, 0.3);
}

.dm-hero-image {
    text-align: center;
}

.dm-hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Services Section */
.dm-services {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.dm-services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

.dm-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Exactly 3 cards per row */
    gap: 2rem; /* Match index.html gap */
    overflow: visible;
    width: 100%;
}

.dm-service-card {
    background: rgba(255, 255, 255, 0.03); /* Match index.html background */
    backdrop-filter: blur(20px);
    padding: 1.5rem; /* Match index.html padding */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08); /* Match index.html border */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Match index.html transition */
    color: white;
    min-height: 400px; /* Changed from fixed height to minimum height */
    display: flex;
    flex-direction: column;
    width: 100%; /* Full width of grid column */
    overflow: hidden; /* Ensure content stays within bounds */
    box-sizing: border-box; /* Include padding in height calculations */
}

.dm-service-card:hover {
    transform: translateY(-10px); /* Match index.html transform */
    background: rgba(255, 255, 255, 0.06); /* Match index.html background */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); /* Match index.html shadow */
}

.dm-service-image {
    width: 100%;
    height: 180px; /* Match index.html height */
    margin-bottom: 1rem; /* Match index.html margin */
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(9, 0, 64, 0.2), rgba(0, 179, 179, 0.1)); /* Match index.html background */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; /* Remove extra padding to match index.html */
    flex-shrink: 0;
}

.dm-service-image img {
    width: 80%; /* Match index.html width */
    height: 80%; /* Match index.html height */
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2)); /* Match index.html filter */
    border-radius: 0; /* Remove border-radius to match index.html */
}

.dm-service-title {
    font-family: 'Panchang-Semibold', 'Panchang', 'Inter', sans-serif !important;
    font-size: 1.4rem; /* Match index.html font size */
    font-weight: 700;
    margin-bottom: 0.75rem; /* Match index.html margin */
    color: white;
    flex-shrink: 0;
}

.dm-service-description {
    color: rgba(255, 255, 255, 0.8); /* Match index.html color */
    line-height: 1.5; /* Match index.html line height */
    font-size: 0.9rem; /* Reduced font size */
    margin-bottom: 1rem; /* Match index.html margin */
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limit to 4 lines */
    -webkit-box-orient: vertical;
}

/* Process Section */
.dm-process {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.dm-process-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.dm-process-content {
    color: white;
}

.dm-process-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.dm-process-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
}

.dm-website-audit {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.dm-website-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dm-website-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.dm-proposal-btn {
    padding: 15px 25px;
    background: linear-gradient(45deg, #090040, #00b3b3);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.dm-proposal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 179, 179, 0.3);
}

.dm-process-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.dm-step {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.dm-step:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.dm-step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.dm-step:nth-child(1) .dm-step-number {
    background: linear-gradient(45deg, #9c3fff, #7c3aed);
}

.dm-step:nth-child(2) .dm-step-number {
    background: linear-gradient(45deg, #00b3b3, #0ea5e9);
}

.dm-step:nth-child(3) .dm-step-number {
    background: linear-gradient(45deg, #f59e0b, #ea580c);
}

.dm-step:nth-child(4) .dm-step-number {
    background: linear-gradient(45deg, #10b981, #059669);
}

.dm-step-number i {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 0.8rem;
}

.dm-step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.dm-step-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Commitment Section */
.dm-commitment {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.dm-commitment-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.dm-commitment-content {
    color: white;
}

.dm-commitment-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.dm-commitment-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
}

.dm-mission-vision {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dm-mission, .dm-vision {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dm-mission {
    background: linear-gradient(135deg, rgba(156, 63, 255, 0.1), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(156, 63, 255, 0.2);
}

.dm-vision {
    background: linear-gradient(135deg, rgba(0, 179, 179, 0.1), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(0, 179, 179, 0.2);
}

.dm-mv-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.dm-mv-header i {
    font-size: 1.2rem;
    color: #00b3b3;
}

.dm-mv-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dm-mv-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.dm-mv-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.dm-commitment-image {
    text-align: center;
}

.dm-team-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dm-hero-container,
    .dm-process-container,
    .dm-commitment-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .dm-hero-title,
    .dm-process-title,
    .dm-commitment-title {
        font-size: 2.5rem;
    }
    
    .dm-services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row on tablet */
    }
}

@media (max-width: 768px) {
    .dm-hero {
        padding: 100px 0 60px;
    }
    
    .dm-hero-title,
    .dm-process-title,
    .dm-commitment-title {
        font-size: 2rem;
    }
    
    .dm-services-grid {
        grid-template-columns: 1fr; /* 1 card per row on mobile */
    }
    
    .dm-process-steps {
        grid-template-columns: 1fr;
    }
    
    .dm-cta-form,
    .dm-website-audit {
        flex-direction: column;
    }
    
    .dm-mission-vision {
        gap: 1.5rem;
    }
    
    .dm-service-card,
    .dm-step,
    .dm-mission,
    .dm-vision {
        padding: 1.5rem;
        height: auto; /* Allow flexible height on mobile */
    }
}

@media (max-width: 480px) {
    .dm-hero-container,
    .dm-services-container,
    .dm-process-container,
    .dm-commitment-container {
        padding: 0 15px;
    }
    
    .dm-hero-title,
    .dm-process-title,
    .dm-commitment-title {
        font-size: 1.75rem;
    }
    
    .dm-hero-description,
    .dm-process-description,
    .dm-commitment-description {
        font-size: 1rem;
    }
}