/* SNC RFID Specific Styles */

/* Fix for navbar overlap */
body {
    padding-top: 80px;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fc;
    margin: 0;
    color: #1a1a2e;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.sncrfid-header {
    background: linear-gradient(135deg, #2b4e87 0%, #77c7b5 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: -80px;
}

.sncrfid-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(119, 199, 181, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(244, 198, 50, 0.15) 0%, transparent 50%);
}

.sncrfid-header .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.sncrfid-header .header-content {
    flex: 1;
    max-width: 600px;
}

.sncrfid-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.sncrfid-header .header-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sncrfid-header .image-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Features Section */
/* Features Section - Reduced gap for 2 boxes */
.features-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.features-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px; /* CHANGED: Reduced from 40px to 20px */
    justify-items: center;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    max-width: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 320px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 5rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2b4e87 0%, #77c7b5 100%);
    border-radius: 50%;
    color: white;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2b4e87;
    margin-bottom: 0;
    line-height: 1.4;
    text-align: center;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        gap: 25px; /* Slightly larger gap on tablet for single column */
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;  /* SAME GAP EVERYWHERE */
    }
}


    
    .feature-card {
        padding: 40px 30px;
        max-width: 100%;
        min-height: 280px;
    }
    
    .feature-icon {
        font-size: 4rem;
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }


@media (max-width: 480px) {
    .features-section {
        padding: 60px 0;
    }
    
    .features-grid {
        gap: 20px; /* CHANGED: Reduced from 25px to 20px */
    }
    
    .feature-card {
        padding: 30px 20px;
        min-height: 250px;
    }
    
    .feature-icon {
        font-size: 3.5rem;
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
}
/* Footer */
footer {
    background: #0d1321;
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: #77c7b5;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-section p, 
.footer-section li a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a:hover {
    color: #77c7b5;
}

.footer-bottom {
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    margin-top: 1rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 1rem;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: #77c7b5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .sncrfid-header {
        margin-top: -70px;
        padding: 50px 0 60px 0;
    }
    
    .sncrfid-header .container {
        flex-direction: column;
        text-align: center;
        padding-top: 70px;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sncrfid-header h1 {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.2rem;
    }
    
    .sncrfid-header .image-placeholder {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .feature-card {
        padding: 40px 30px;
        max-width: 100%;
        min-height: 280px;
    }
    
    .feature-icon {
        font-size: 4rem;
        width: 100px;
        height: 100px;
        margin-bottom: 25px;
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    
    .sncrfid-header {
        margin-top: -60px;
        padding: 40px 0 50px 0;
    }
    
    .sncrfid-header .container {
        padding-top: 60px;
    }
    
    .sncrfid-header h1 {
        font-size: 2rem;
    }
    
    .features-section {
        padding: 60px 0;
    }
    
    .feature-card {
        padding: 30px 20px;
        min-height: 250px;
    }
    
    .feature-icon {
        font-size: 3.5rem;
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
}


/* Header Section */
.sncrfid-header {
    background: linear-gradient(135deg, #2b4e87 0%, #77c7b5 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    margin-top: -80px;
}

.sncrfid-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(119, 199, 181, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(244, 198, 50, 0.15) 0%, transparent 50%);
}

.sncrfid-header .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.sncrfid-header .header-content {
    flex: 1;
    max-width: 600px;
}

.sncrfid-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.sncrfid-header .header-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}



/* .header-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.header-img:hover {
    transform: scale(1.05);
} */

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .sncrfid-header {
        margin-top: -70px;
        padding: 50px 0 60px 0;
    }
    
    .sncrfid-header .container {
        flex-direction: column;
        text-align: center;
        padding-top: 70px;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .sncrfid-header h1 {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.2rem;
    }
    
    .image-container {
        width: 200px; /* Reduced from 250px */
        height: 200px; /* Reduced from 250px */
        padding: 12px; /* Reduced padding */
    }
    
    /* ... rest of the existing responsive styles ... */
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    
    .sncrfid-header {
        margin-top: -60px;
        padding: 40px 0 50px 0;
    }
    
    .sncrfid-header .container {
        padding-top: 60px;
    }
    
    .sncrfid-header h1 {
        font-size: 2rem;
    }
    
    .image-container {
        width: 180px; /* Reduced from 200px */
        height: 180px; /* Reduced from 200px */
        padding: 10px; /* Reduced padding */
    }
    
    /* ... rest of the existing responsive styles ... */
}

/* Header Image Section - Medium/Fit Size (no outline) */
.sncrfid-header .header-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: 100%;
    max-width: 300px; /* Medium size */
    height: 200px; /* Fit size for card images */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Perfect for showing the full RFID card */
    transition: transform 0.6s ease;
}

.header-img:hover {
    transform: scale(1.05);
}

/* Header Image Section - Medium/Fit Size (no outline) */
.sncrfid-header .header-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: 100%;
    max-width: 300px; /* Medium size */
    height: 200px; /* Fit size for card images */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Perfect for showing the full RFID card */
    transition: transform 0.6s ease;
}

.header-img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for the image */
@media (max-width: 768px) {
    .image-container {
        max-width: 220px; /* Good tablet size */
        height: 150px;
    }
}

@media (max-width: 480px) {
    .image-container {
        max-width: 180px; /* Good mobile size */
        height: 120px;
    }
}


/* Header Image Section - Larger size for RFID card */
.sncrfid-header .header-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: 100%;
    max-width: 400px; /* INCREASED from 300px to 400px */
    height: 280px; /* INCREASED from 200px to 280px */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Perfect for showing the full RFID card */
    transition: transform 0.6s ease;
}

.header-img:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for the image */
@media (max-width: 1024px) {
    .image-container {
        max-width: 380px; /* INCREASED from default */
        height: 260px; /* INCREASED from default */
    }
}

@media (max-width: 768px) {
    .image-container {
        max-width: 320px; /* INCREASED from 220px to 320px */
        height: 220px; /* INCREASED from 150px to 220px */
    }
}

@media (max-width: 480px) {
    .image-container {
        max-width: 280px; /* INCREASED from 180px to 280px */
        height: 190px; /* INCREASED from 120px to 190px */
    }
}
