/*
 * Adtel International - Modern Design 2025
 * Mobile-first responsive design
 */

/* CSS Variables for easy theming */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-medium);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Container and Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.wrapper {
    background-color: var(--bg-white);
    min-height: 100vh;
}

/* Header and Navigation */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.header h1 {
    color: var(--bg-white);
    font-size: 2rem;
    margin: 0;
    text-indent: 0;
    background: none;
}

#topmenu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav li {
    margin: 0;
}

.nav a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav a:hover,
.nav a.selected {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
}

/* Login Box */
.loginbox {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.loginbox table {
    color: var(--bg-white);
}

.loginbox input[type="text"],
.loginbox input[type="password"] {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.9);
    width: 120px;
}

.loginbox .btn {
    background: var(--secondary-color);
    color: var(--bg-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.loginbox .btn:hover {
    background: #059669;
}

/* Hero/Showcase Section */
.showcase {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

#slider {
    color: var(--bg-white);
}

.slider_item h2 {
    color: var(--bg-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.slider_item p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem;
    line-height: 1.8;
}

.slider_item a {
    color: var(--accent-color);
    font-weight: 600;
}

#slideshow1 {
    display: flex;
    justify-content: center;
    align-items: center;
}

#slideshow1 img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-xl);
}

/* Page Title for Subpages */
.page-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem 0;
    text-align: center;
    color: var(--bg-white);
}

.page-title h2 {
    color: var(--bg-white);
    margin: 0;
}

/* Content Section */
.sub-header {
    background-color: var(--bg-white);
}

.content {
    padding: 3rem 0;
}

.content-top,
.content-btm {
    display: none;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.block {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.block h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.block p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

.block img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

.block a {
    display: inline-block;
    margin-top: 0.5rem;
}

/* Two Column Layout */
.colleft, .colright {
    width: 100%;
}

/* Services Page */
.services-list h5 {
    color: var(--primary-color);
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.services-list h5 a {
    color: var(--primary-color);
    font-weight: 600;
}

.services-list ul {
    list-style: none;
    padding-left: 0;
}

.services-list ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.services-list ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Contact Form */
form#contactform {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

form#contactform ul {
    list-style: none;
    padding: 0;
}

form#contactform li {
    margin-bottom: 1.5rem;
}

form#contactform label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

form#contactform input[type="text"],
form#contactform input[type="email"],
form#contactform textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form#contactform input:focus,
form#contactform textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

form#contactform .submit {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

form#contactform .submit:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer .copy {
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.9);
}

.footer a:hover {
    color: var(--bg-white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border-radius: 0.375rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-secondary:hover {
    background: #059669;
}

/* Utility Classes */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    .top-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    #topmenu {
        width: 100%;
    }

    .nav {
        flex-direction: column;
        width: 100%;
    }

    .nav a {
        text-align: center;
    }

    .loginbox {
        width: 100%;
        position: static;
        margin-top: 1rem;
    }

    .showcase-content {
        grid-template-columns: 1fr;
    }

    #slideshow1 {
        order: -1;
    }

    .slider_item h2 {
        font-size: 1.75rem;
    }

    .slider_item p {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .colleft, .colright {
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

@media (min-width: 769px) {
    .showcase {
        padding: 6rem 0;
    }

    .content {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Featured Services Header */
h3.topfeatures {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 2rem;
}

h3.topfeatures span {
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: normal;
}

h3.topfeatures span a {
    color: var(--primary-color);
    font-weight: 600;
}

/* Legacy Support */
.subpage .header {
    position: relative;
    height: auto;
}

.pics {
    position: relative;
    right: auto;
    top: auto;
    margin: 0 auto;
}

.showcase .laptop {
    display: none;
}
