/* Custom CSS for EpoxiTech - Based on Logo Design */

/* CSS Custom Properties - Logo Colors */
:root {
    /* Logo Colors */
    --primary-dark: #2c3e50;
    --primary-yellow: #f1c40f;
    --primary-red: #e74c3c;
    --primary-blue: #3498db;
    
    /* Extended Palette */
    --light-gray: #ecf0f1;
    --medium-gray: #95a5a6;
    --dark-gray: #34495e;
    --white: #ffffff;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(44, 62, 80, 0.1);
    --shadow-md: 0 4px 12px rgba(44, 62, 80, 0.15);
    --shadow-lg: 0 8px 24px rgba(44, 62, 80, 0.2);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--primary-dark);
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow));
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-red));
}

.btn-outline-primary {
    color: var(--primary-dark);
    border-color: var(--primary-dark);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background-color: var(--primary-dark) !important;
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-yellow) !important;
}

/* Logo Styles */
.logo-svg, .hero-logo-svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-svg {
    transition: var(--transition);
}

.logo-svg:hover {
    transform: scale(1.05);
}

.hero-logo-svg {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Navbar brand styling */
.navbar-brand:hover .logo-svg {
    transform: scale(1.1) rotate(5deg);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(236, 240, 241, 0.9) 0%, 
        rgba(189, 195, 199, 0.8) 100%),
        radial-gradient(circle at 20% 80%, rgba(241, 196, 15, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagon" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><polygon points="10,2 18,7 18,13 10,18 2,13 2,7" fill="none" stroke="%232c3e50" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagon)"/></svg>') repeat;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-tagline {
    color: var(--primary-blue);
    font-weight: 500;
    font-style: italic;
}

.hero-description {
    color: var(--dark-gray);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Hero Graphics */
.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-graphic {
    position: relative;
    width: 400px;
    height: 400px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-yellow), var(--primary-red));
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    box-shadow: var(--shadow-md);
}

.element-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow));
    top: 60%;
    right: 20%;
    animation-delay: 2s;
    box-shadow: var(--shadow-md);
}

.element-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
    box-shadow: var(--shadow-md);
}

.element-4 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-dark), var(--medium-gray));
    top: 40%;
    left: 60%;
    animation-delay: 1s;
    box-shadow: var(--shadow-md);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Service Cards */
.service-card {
    transition: var(--transition);
    border-radius: 15px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card .card-body {
    padding: 2rem;
}

.service-icon i {
    transition: var(--transition);
}

.service-card:hover .service-icon i {
    transform: scale(1.1);
}

/* Gallery Cards */
.gallery-card {
    transition: var(--transition);
    border-radius: 15px;
    overflow: hidden;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-placeholder {
    transition: var(--transition);
    border-radius: 10px;
    margin: 1rem;
    height: 250px !important;
}

.gallery-card:hover .gallery-placeholder {
    transform: scale(1.05);
}

.card-img-overlay {
    background: linear-gradient(
        transparent 0%,
        rgba(44, 62, 80, 0.7) 70%,
        rgba(44, 62, 80, 0.9) 100%
    );
}

/* Contact Form */
.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-control-lg {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.form-control-lg:focus {
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* Logo Responsive Styles */
.hero-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.navbar-brand-text {
    font-size: 1.25rem;
}

/* Responsive Design */
/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-logo-img {
        max-height: 120px;
    }
    
    .hero-description {
        font-size: 1rem !important;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-image {
        height: 200px;
        margin-top: 1rem;
    }
    
    .hero-graphic {
        width: 200px;
        height: 200px;
    }
    
    .element-1, .element-2, .element-4 {
        width: 40px;
        height: 40px;
    }
    
    .element-3 {
        width: 60px;
        height: 60px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .navbar-brand-text {
        font-size: 1.1rem;
    }
    
    .display-5 {
        font-size: 1.8rem !important;
    }
    
    .service-card .card-body {
        padding: 1.5rem;
    }
    
    .service-icon i {
        font-size: 2.5rem !important;
    }
    
    .gallery-placeholder {
        height: 200px !important;
    }
    
    .card-body.p-5 {
        padding: 2rem !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-logo-img {
        max-height: 150px;
    }
    
    .hero-image {
        height: 250px;
        margin-top: 1.5rem;
    }
    
    .hero-graphic {
        width: 250px;
        height: 250px;
    }
    
    .element-1, .element-2, .element-4 {
        width: 50px;
        height: 50px;
    }
    
    .element-3 {
        width: 70px;
        height: 70px;
    }
    
    .logo-img {
        height: 38px;
    }
    
    .navbar-brand-text {
        font-size: 1.15rem;
    }
    
    .hero-buttons .btn {
        width: auto;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-logo-img {
        max-height: 180px;
    }
    
    .hero-image {
        height: 300px;
        margin-top: 2rem;
    }
    
    .hero-graphic {
        width: 300px;
        height: 300px;
    }
    
    .element-1, .element-2, .element-4 {
        width: 60px;
        height: 60px;
    }
    
    .element-3 {
        width: 80px;
        height: 80px;
    }
    
    .logo-img {
        height: 42px;
    }
    
    .navbar-brand-text {
        font-size: 1.2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-logo-img {
        max-height: 200px;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .navbar-brand-text {
        font-size: 1.25rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-logo-img {
        max-height: 220px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .navbar-brand-text {
        font-size: 1.5rem;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
    
    .hero-logo-img {
        max-height: 80px;
    }
    
    .hero-image {
        height: 150px;
    }
    
    .hero-graphic {
        width: 150px;
        height: 150px;
    }
    
    .element-1, .element-2, .element-3, .element-4 {
        width: 30px;
        height: 30px;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-warning {
    color: var(--primary-yellow) !important;
}

.text-danger {
    color: var(--primary-red) !important;
}

.text-dark {
    color: var(--primary-dark) !important;
}

.bg-primary {
    background-color: var(--primary-blue) !important;
}

.bg-warning {
    background-color: var(--primary-yellow) !important;
}

.bg-danger {
    background-color: var(--primary-red) !important;
}

.text-success {
    color: #198754 !important;
}

.text-secondary {
    color: #6c757d !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

/* Loading Animation */
.btn-loading {
    display: none;
}

.btn-loading.show {
    display: inline-block;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    .nav-link {
        padding: 12px 16px;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .gallery-card:hover {
        transform: none;
    }
    
    .service-card:hover .service-icon i {
        transform: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Contact Card Styles */
.contact-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    margin: 2rem 0;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow), var(--primary-red));
}

.contact-header {
    margin-bottom: 2rem;
}

.contact-main-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
    transition: var(--transition);
}

.contact-main-logo:hover {
    transform: scale(1.05);
}

.contact-info-grid {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-yellow));
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.contact-details {
    flex: 1;
}

.contact-title {
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-text {
    color: var(--dark-gray);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.contact-actions {
    border-top: 2px solid var(--light-gray);
    padding-top: 1.5rem;
}

.btn-success {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-success:hover {
    background: linear-gradient(135deg, #128c7e, #25d366);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Additional responsive utilities */
.text-responsive {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
}

.hero-title-responsive {
    font-size: clamp(1.5rem, 5vw, 3rem);
}

/* Contact Card Responsive */
@media (max-width: 991.98px) {
    .contact-card {
        padding: 2.5rem 1.5rem;
    }
    
    .contact-main-logo {
        max-width: 180px;
    }
}

@media (max-width: 767.98px) {
    .contact-card {
        padding: 2rem 1rem;
    }
    
    .contact-main-logo {
        max-width: 150px;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .contact-title {
        font-size: 1rem;
    }
    
    .contact-text {
        font-size: 0.9rem;
    }
}

/* Improved button spacing on mobile */
@media (max-width: 575.98px) {
    .hero-buttons {
        gap: 1rem !important;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .contact-card {
        margin: 1rem 0;
        border-radius: 15px;
        padding: 1.5rem 1rem;
    }
    
    .contact-main-logo {
        max-width: 120px;
    }
    
    .contact-actions {
        margin-top: 2rem !important;
    }
}