/* 
 * styles.css - Main styles for HandyTech.pro
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --navy: #0A3161;
    --bright-red: #B31942;
    --white: #FFFFFF;
    --light-blue: #E6F0FF;
    --dark-blue: #051C3D;
    --gray: #f0f0f0;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-blue);
}

::-webkit-scrollbar-thumb {
    background: var(--navy);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bright-red);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--navy), var(--bright-red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--bright-red), var(--navy));
}

h3 {
    font-size: 1.75rem;
    color: var(--bright-red);
}

p {
    margin-bottom: 1rem;
    color: #333;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--navy), var(--bright-red));
    color: var(--white);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(11, 49, 97, 0.15);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bright-red), var(--navy));
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(11, 49, 97, 0.2);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 40px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text-highlight {
    color: var(--bright-red);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--bright-red), var(--navy));
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--bright-red);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--navy);
    border-radius: 3px;
}

/* Main Sections */
section {
    padding: 100px 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero/Home Section */
#home {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 49, 97, 0.05), rgba(179, 25, 66, 0.05));
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--bright-red);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
    background: radial-gradient(circle at 80% 40%, var(--navy), transparent 60%),
                radial-gradient(circle at 20% 70%, var(--bright-red), transparent 30%);
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(10, 49, 97, 0.2), rgba(179, 25, 66, 0.2));
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 30%;
    animation-duration: 25s;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 30%;
    left: 20%;
    animation-duration: 18s;
    animation-delay: 4s;
}

/* Services Section */
#services {
    background-color: var(--light-blue);
    position: relative;
    overflow: hidden;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(11, 49, 97, 0.05);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transform: translateY(50px);
    opacity: 0;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--navy), var(--bright-red));
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(11, 49, 97, 0.1);
}

.service-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.service-list {
    list-style: none;
    margin-top: 15px;
}

.service-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--bright-red);
    font-weight: bold;
}

.animated {
    animation: fadeUp 0.6s ease forwards;
}

/* About Us Section */
#about {
    background-color: var(--white);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-30px);
}

.about-image {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(11, 49, 97, 0.1);
    opacity: 0;
    transform: translateX(30px);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 49, 97, 0.7), rgba(179, 25, 66, 0.7));
    z-index: 1;
}

.about-image-inner {
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1581092921461-eab62e97a780?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80') center/cover no-repeat;
    filter: grayscale(30%);
}

.about-values {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.value-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: var(--navy);
    font-weight: 800;
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, rgba(10, 49, 97, 0.05), rgba(179, 25, 66, 0.05));
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(11, 49, 97, 0.1);
    opacity: 0;
    transform: translateY(30px);
}

.contact-info {
    opacity: 0;
    transform: translateY(30px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--navy);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(10, 49, 97, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--navy);
    outline: none;
    box-shadow: 0 0 0 3px rgba(10, 49, 97, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--bright-red));
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
    color: var(--white);
    font-weight: 800;
    font-size: 1.5rem;
}

.contact-details h4 {
    margin-bottom: 5px;
    color: var(--bright-red);
}

.contact-details p, 
.contact-details a {
    color: #333;
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--bright-red);
}

/* Form submission status */
.form-status {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

.form-status.success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.form-status.error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 40px 10%;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--bright-red);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--white);
    margin: 0 15px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--bright-red);
}

.footer-contact {
    margin-bottom: 20px;
}

.footer-contact a {
    color: var(--white);
    margin: 0 10px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--bright-red);
}

.copyright {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--bright-red));
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(11, 49, 97, 0.2);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(11, 49, 97, 0.3);
}

/* Hidden iframe for form submission */
.hidden-iframe {
    display: none;
    width: 0;
    height: 0;
    border: 0;
    position: absolute;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(100px, 100px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}