/* SADG Website Styles */

/* Variables */
:root {
    --primary-blue: #0a2158; /* Deep blue from logo */
    --secondary-blue: #3498db; /* Changed from red to blue */
    --accent-color: #3498db; /* Light blue accent */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --bg-dark: #2c3e50;
    --border-color: #dddddd;
    --shadow: 0 0 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

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

/* Header */
.header {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

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

.logo {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.logo img {
    height: 87px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Navigation */
.nav {
    display: flex;
}

.nav-item {
    margin-left: 1rem;
    position: relative;
}

.nav-link {
    color: var(--text-light);
    padding: 0.5rem 0;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: var(--secondary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-blue);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(10, 33, 88, 0.9), rgba(10, 33, 88, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 1.5rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--secondary-blue);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #2980b9;
    color: var(--text-light);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-blue);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-blue);
}

/* Cards */
.card {
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

/* Technology Integration Cards - Deep Blue Theme */
.tech-integration-card {
    background: #00008B !important;
    color: white !important;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,139,0.3);
}

.tech-integration-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,139,0.4);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    margin-bottom: 30px;
}

.col-1 { width: 8.33%; }
.col-2 { width: 16.66%; }
.col-3 { width: 25%; }
.col-4 { width: 33.33%; }
.col-5 { width: 41.66%; }
.col-6 { width: 50%; }
.col-7 { width: 58.33%; }
.col-8 { width: 66.66%; }
.col-9 { width: 75%; }
.col-10 { width: 83.33%; }
.col-11 { width: 91.66%; }
.col-12 { width: 100%; }

/* Technology Domain Cards */
.tech-domain {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary-blue);
    transition: var(--transition);
}

.tech-domain:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.tech-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.tech-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-blue);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.tech-icon i {
    font-size: 1.5rem;
}

/* Tabs */
.tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    font-weight: 500;
    background-color: #f5f5f5;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 4px 4px 0 0;
}

.tab:hover {
    color: var(--text-light);
    background-color: var(--secondary-blue);
}

.tab.active {
    color: var(--text-light);
    background-color: var(--primary-blue);
    border-bottom: 3px solid var(--secondary-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: var(--text-light);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    width: 22%;
    margin-bottom: 2rem;
}

/* Specific positioning for each footer section */
.footer-section:nth-child(1) {
    width: 25%;
}

.footer-section:nth-child(2) {
    width: 20%;
    margin-left: 8%;
}

.footer-section:nth-child(3) {
    width: 20%;
}

.footer-section:nth-child(4) {
    width: 25%;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--text-light);
}

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

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

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

.social-links {
    list-style: none;
}

.social-links li {
    margin-bottom: 0.5rem;
}

.social-links a {
    color: white;
    transition: var(--transition);
}

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

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary-blue);
}

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

/* Contact Bar */
.contact-bar {
    background-color: var(--secondary-blue);
    color: var(--text-light);
    padding: 0.8rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .col-md-1 { width: 8.33%; }
    .col-md-2 { width: 16.66%; }
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.33%; }
    .col-md-5 { width: 41.66%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.33%; }
    .col-md-8 { width: 66.66%; }
    .col-md-9 { width: 75%; }
    .col-md-10 { width: 83.33%; }
    .col-md-11 { width: 91.66%; }
    .col-md-12 { width: 100%; }
    
    .footer-section {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .col-sm-1 { width: 8.33%; }
    .col-sm-2 { width: 16.66%; }
    .col-sm-3 { width: 25%; }
    .col-sm-4 { width: 33.33%; }
    .col-sm-5 { width: 41.66%; }
    .col-sm-6 { width: 50%; }
    .col-sm-7 { width: 58.33%; }
    .col-sm-8 { width: 66.66%; }
    .col-sm-9 { width: 75%; }
    .col-sm-10 { width: 83.33%; }
    .col-sm-11 { width: 91.66%; }
    .col-sm-12 { width: 100%; }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    .nav {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .mobile-nav-toggle {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }
    
    .nav {
        display: none;
    }
    
    .nav.active {
        display: flex;
    }
    
    .footer-section {
        width: 100%;
    }
}

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

.animate {
    animation: fadeIn 0.8s ease forwards;
}

/* Technology Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

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

/* Technology Card */
.tech-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.tech-card h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Content Row */
.content-row {
    display: flex;
    margin-bottom: 2rem;
    align-items: center;
}

.image-container {
    width: 40%;
    margin-right: 2rem;
}

.image-container img, .image-container video {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Ensure videos don't overlap with text in technology domains */
.tech-domain .content-row {
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.tech-domain .image-container {
    width: 40%;
    margin-right: 2.5rem;
    align-self: flex-start;
}

.tech-domain .text-content {
    width: 55%;
    padding-top: 0.5rem;
}

.text-content {
    width: 60%;
}

@media (max-width: 768px) {
    .content-row {
        flex-direction: column;
    }
    
    .image-container, .text-content {
        width: 100%;
    }
    
    .image-container {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}