/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 10px 0;
    transition: all 0.3s;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 0; /* move brand to the extreme left */
    padding-right: 0;
}

.navbar-brand h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.navbar-brand h1 span {
    color: #000;
}

/* Logo styling - uncomment when using a logo image */
.navbar-logo {
    height: auto;
    max-height: 162px;
    width: auto;
    max-width: 810px;
    object-fit: contain;
    display: block;
    /* Visually enlarge logo without affecting layout height */
    transform: scale(0.599);
    transform-origin: left center;
    will-change: transform;
}

.navbar-header {
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: auto;
    margin-left: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    height: 100%;
    margin-left: 0;
    padding-left: 0;
}

.navbar-nav li a {
    color: #000 !important;
    font-weight: 500;
    padding: 15px 20px !important;
    transition: color 0.3s;
}

.navbar-nav li a:hover {
    color: #000 !important;
}

/* Hero Section */
.hero {
    background: #000; /* pure black banner */
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* ensure overlays clip edge-to-edge */
}

/* Spiral overlay over the black banner, edge-to-edge */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/Spiral.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover; /* connects edge to edge */
    z-index: 1; /* under stars and content */
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* no dark overlay; base is black */
    display: flex;
    align-items: center;
    z-index: 1;
}

/* Starfield overlay */
.starfield-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2; /* above spiral */
}

/* spiral overlay removed */

/* Wrapper for images needing starfield overlay */
.starfield-block {
    position: relative;
}

.hero-slider {
    width: 100%;
    position: relative;
    z-index: 3; /* above stars */
}

.slide-content {
    text-align: center;
    padding: 100px 0;
}

.slide-content h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s;
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s;
}

.slide-content .btn {
    padding: 12px 40px;
    font-size: 18px;
    border-radius: 50px;
    transition: all 0.3s;
    animation: fadeInUp 1.4s;
}

.slide-content .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Off-white primary button with black text */
.btn-primary {
    background-color: #f2f2f2 !important;
    border-color: #f2f2f2 !important;
    color: #000 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #000 !important;
    outline: none !important;
}

.go-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 3;
}

.go-down a {
    color: white;
    font-size: 30px;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.section-header p {
    font-size: 18px;
    color: #666;
}

/* About Section */
.about-section {
    background: #f8f9fa;
    color: #000; /* default text color to black */
}

.about-section h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #000;
}

.about-section p {
    color: #000;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Ensure section header inside About uses black text */
.about-section .section-header h2,
.about-section .section-header p {
    color: #000;
}

/* Services Section */
.services-section {
    background: #000;
}

/* Ensure readability on dark background */
.services-section .section-header h2 {
    color: #fff;
}

.services-section .section-header p {
    color: #ccc;
}

.services-section .service-box i {
    color: #fff;
}

.services-section .service-box h3 {
    color: #fff;
}

.services-section .service-box p {
    color: #ccc;
}

/* Ensure form labels read clearly on dark background */
.services-section label {
    color: #fff;
}

/* Force custom RAG helper text to white on dark */
.services-section .custom-rag-contact p {
    color: #fff !important;
}

.services-section .custom-rag-contact p .fa {
    color: #fff !important;
}

.service-box {
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    transition: all 0.3s;
    margin-bottom: 30px;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-box i {
    font-size: 60px;
    color: #000;
    margin-bottom: 20px;
}

.service-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.service-box p {
    color: #666;
    line-height: 1.8;
}

/* Portfolio Section */
.portfolio-section {
    background: #f8f9fa;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3,
.portfolio-overlay p {
    color: white;
    text-align: center;
}

/* Contact Section */
.contact-section {
    background: white;
}

.contact-form .form-control {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    padding: 15px 0;
    color: #666;
    font-size: 16px;
}

.contact-info ul li i {
    color: #000;
    margin-right: 10px;
    font-size: 20px;
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #000;
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #333;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Custom RAG Contact Box */
.custom-rag-contact {
    transition: all 0.3s ease;
}

.custom-rag-contact a:hover {
    color: #333;
    border-bottom-color: #666;
}

.custom-rag-contact a:hover .fa-arrow-right {
    margin-left: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 18px;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .service-box {
        margin-bottom: 40px;
    }
    
    .custom-rag-contact {
        padding: 20px !important;
    }
}

/* Elegant chamfered white underline for links on dark backgrounds */
.elegant-underline {
    position: relative;
    color: #fff !important;
    text-decoration: none;
}

.elegant-underline .fa {
    color: #fff;
}

.elegant-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px; /* slightly thicker so chamfer is visible */
    background: #fff;
    z-index: 0;
    /* chamfered ends using clip-path */
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 8px 100%, 0 50%);
    opacity: 0.9;
}

.elegant-underline:hover::after {
    opacity: 1;
}
