/* VertexOne Enhanced CSS - More Vibrant Colors & Improved UI/UX */

/* Color Variables for Better Maintainability */
:root {
    --primary-bg: #030609;          /* Darker base background */
    --secondary-bg: #060b12;        /* Darker alternate background */
    --primary-accent: #00f7ff;      /* Brighter cyan */
    --primary-glow: rgba(0, 247, 255, 0.6); /* Cyan glow */
    --secondary-accent: #1e50ff;    /* Vibrant blue */
    --secondary-glow: rgba(30, 80, 255, 0.6); /* Blue glow */
    --tertiary-accent: #ff2a6d;     /* Vibrant magenta */
    --tertiary-glow: rgba(255, 42, 109, 0.6); /* Magenta glow */
    --text-primary: #ffffff;        /* Pure white text */
    --text-secondary: #d8e1f0;      /* Lighter text for better contrast */
    --text-tertiary: #95a1b8;       /* Muted text */
    --card-bg: rgba(255, 255, 255, 0.04); /* Slightly lighter card background */
    --card-border: rgba(255, 255, 255, 0.08); /* Subtle border */
    --card-hover-border: rgba(0, 247, 255, 0.5); /* Teal border on hover */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    position: relative;
}

/* Subtle Grid Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* Enhanced Header & Navigation */
header {
    background: rgba(3, 6, 9, 0.85);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.logo {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 247, 255, 0.3));
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(0, 247, 255, 0.5));
}

.logo-container {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-left: 12px;
    letter-spacing: 1px;
    background: linear-gradient(90deg, 
        #ffffff 0%, 
        #00f7ff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(0, 247, 255, 0.5), 
        rgba(30, 80, 255, 0.5)
    );
    transition: width 0.3s ease;
}

.logo-container:hover .logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px rgba(0, 247, 255, 0.5));
}

.logo-container:hover .logo-text::after {
    width: 100%;
}


@media (max-width: 768px) {
    .logo {
        height: 30px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.1rem;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px; /* Increased spacing */
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    padding: 8px 18px; /* Increased horizontal padding */
    border: 1px solid transparent;
    border-radius: 24px; /* More rounded */
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(120deg, 
        var(--primary-accent), 
        var(--secondary-accent), 
        var(--tertiary-accent)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

nav ul li a:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

nav ul li a:hover::before {
    opacity: 1;
}

/* Main Content Area */
main {
    padding-top: 71px;
}

/* Enhanced Hero Section */
#hero {
    min-height: calc(90vh - 71px);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px; /* Increased gap */
    padding: 60px 30px; /* Added horizontal padding */
    background: var(--primary-bg);
    position: relative;
    color: var(--text-primary);
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(0, 247, 255, 0.08) 0%,
        rgba(30, 80, 255, 0.05) 35%,
        transparent 70%
    );
    filter: blur(50px);
    z-index: 0;
}

.hero-content {
    grid-column: 1 / 2;
    max-width: none;
    padding-left: calc((100% - 1200px)/2 + 40px); /* Increased padding */
    text-align: left;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.9s 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    z-index: 1;
}

#hero h1 {
    font-size: 4em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--text-primary);
    background: linear-gradient(
        90deg,
        var(--text-primary) 0%,
        var(--primary-accent) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

#hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(
        90deg,
        var(--primary-accent),
        var(--secondary-accent)
    );
    border-radius: 2px;
}

/* Text highlight style */
#hero h1 span.highlight {
    background-color: var(--primary-accent);
    color: var(--primary-bg);
    padding: 0.1em 0.3em;
    border-radius: 4px;
    display: inline;
    line-height: 1.5;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    -webkit-text-fill-color: var(--primary-bg);
}

#hero .subtitle {
    font-size: 1.3em;
    font-weight: 300;
    color: var(--text-tertiary);
    max-width: 600px;
    margin-bottom: 0;
    line-height: 1.6;
}

.hero-graphic-container {
    grid-column: 2 / 3;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: scale(0.8);
    animation: scaleIn 1s 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    z-index: 1;
}

.hero-graphic {
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 8px 30px rgba(0, 247, 255, 0.25));
    animation: floatGraphic 6s ease-in-out infinite;
}

@keyframes floatGraphic {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Enhanced Section Styling */
section {
    padding: 100px 0; /* Increased padding */
    position: relative;
}

section:nth-child(odd) {
    background-color: var(--secondary-bg);
}

section h2 {
    font-size: 2.8em;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.7s 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    position: relative;
    width: 100%; /* Full width to ensure proper centering */
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--primary-accent), 
        var(--secondary-accent)
    );
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.15em;
    font-weight: 300;
    color: var(--text-tertiary);
    text-align: center;
    margin-bottom: 60px; /* Increased margin */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.7s 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Enhanced About Section */
#about .about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.7s 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    position: relative;
}

#about .about-content::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(0, 247, 255, 0.05) 0%,
        rgba(30, 80, 255, 0.02) 50%,
        transparent 70%
    );
    top: -70px;
    left: -100px;
    filter: blur(40px);
    z-index: -1;
}

#about p {
    font-size: 1.15em;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Enhanced Services Section */
#services {
    position: relative;
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(255, 42, 109, 0.06) 0%,
        rgba(30, 80, 255, 0.03) 50%,
        transparent 70%
    );
    top: 10%;
    right: -100px;
    filter: blur(60px);
    z-index: 0;
}

#services .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.service-item {
    background-color: var(--card-bg);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Add service icons */
.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, 
        var(--primary-accent), 
        var(--secondary-accent)
    );
    transition: height 0.4s ease;
}

.service-item:hover::before {
    height: 100%;
}

.service-item:nth-child(1) { animation-delay: 0.4s; }
.service-item:nth-child(2) { animation-delay: 0.5s; }
.service-item:nth-child(3) { animation-delay: 0.6s; }
.service-item:nth-child(4) { animation-delay: 0.7s; }
.service-item:nth-child(5) { animation-delay: 0.8s; }
.service-item:nth-child(6) { animation-delay: 0.9s; }

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25),
                0 0 10px var(--primary-glow);
    border-color: var(--card-hover-border);
    background-color: rgba(255, 255, 255, 0.06);
}

.service-item h4 {
    font-size: 1.35em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
    position: relative;
}

.service-item p {
    font-size: 0.95em;
    color: var(--text-tertiary);
    flex-grow: 1;
    line-height: 1.8;
}

/* Enhanced Approach Section */
#approach {
    position: relative;
    overflow: hidden;
}

#approach::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(0, 247, 255, 0.05) 0%,
        rgba(30, 80, 255, 0.03) 50%,
        transparent 70%
    );
    bottom: 10%;
    left: -100px;
    filter: blur(60px);
    z-index: 0;
}

#approach .approach-steps {
    max-width: 900px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 50px; /* Increased gap */
    position: relative;
    z-index: 1;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 30px; /* Increased gap */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    position: relative;
}

.step-item:nth-child(1) { animation-delay: 0.4s; }
.step-item:nth-child(2) { animation-delay: 0.5s; }
.step-item:nth-child(3) { animation-delay: 0.6s; }

/* Add connecting line between steps */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 70px;
    width: 1px;
    height: calc(100% + 20px);
    background: linear-gradient(to bottom, 
        var(--primary-accent) 0%,
        var(--secondary-accent) 100%
    );
    opacity: 0.3;
}

.step-number {
    font-size: 2.8em; /* Larger step number */
    font-weight: 700;
    color: var(--primary-accent);
    line-height: 1;
    min-width: 50px;
    text-align: center;
    text-shadow: 0 0 10px var(--primary-glow);
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 1.5em; /* Larger heading */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.step-content p {
    font-size: 1.05em; /* Slightly larger text */
    color: var(--text-tertiary);
    line-height: 1.8;
}

/* Enhanced Footer Design */
footer {
    background-color: #030609;
    position: relative;
    padding: 70px 0 50px;
    overflow: hidden;
}

/* Gradient border at top */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 247, 255, 0.5) 50%,
        transparent 100%
    );
}

/* Background glow elements */
footer::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        rgba(0, 247, 255, 0.05) 0%,
        rgba(30, 80, 255, 0.03) 40%,
        transparent 70%
    );
    filter: blur(80px);
    z-index: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-info {
    text-align: left;
}

.footer-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #00f7ff, #1e50ff);
    border-radius: 1px;
}

.footer-info p {
    font-size: 1rem;
    line-height: 1.8;
    color: #95a1b8;
    margin-bottom: 25px;
    max-width: 90%;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.footer-links-column h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-links-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #00f7ff, #1e50ff);
    border-radius: 1px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: #95a1b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: fit-content;
    position: relative;
}

.footer-nav a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00f7ff;
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}

.footer-nav a:hover::before {
    width: 100%;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    font-size: 0.9rem;
    color: #7a8495;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Add these utility classes */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #95a1b8;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: rgba(0, 247, 255, 0.1);
    color: #00f7ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.15);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-info h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-info p {
        max-width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-nav a {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 50px 0 30px;
    }
}

/* Enhanced Animation Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 0.9; /* Increased opacity */
        transform: scale(1);
    }
}

/* --- Responsive Design --- */

@media (max-width: 992px) {
    nav ul {
        display: none;
    }
    #hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 40px; /* Increased horizontal padding */
    }
    .hero-content {
        grid-column: 1 / 2;
        padding-left: 0;
        padding-right: 0;
        text-align: center;
        margin-bottom: 40px;
        transform: translateY(30px);
        animation-name: fadeInUp;
    }
    .hero-graphic-container {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        justify-content: center;
        animation-delay: 0.7s;
    }
    .hero-graphic {
        max-width: 60%;
    }
    #hero h1 {
        font-size: 3.2em;
    }
    #hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    #hero .subtitle {
        font-size: 1.15em;
        margin: 0 auto;
    }
    section h2 {
        font-size: 2.3em;
    }

    /* Adjust connecting line between steps */
    .step-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 71px;
    }
    #hero {
        min-height: auto;
        padding: 50px 15px;
    }
    #hero h1 {
        font-size: 2.6em;
    }
    #hero .subtitle {
        font-size: 1.1em;
    }
    .hero-graphic {
        max-width: 70%;
    }
    section {
        padding: 70px 0;
    }
    section h2 {
        font-size: 2em;
    }
    .section-subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }
    #services .services-grid {
        grid-template-columns: 1fr;
    }
    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .step-number {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    body {
        line-height: 1.6;
    }
    #hero h1 {
        font-size: 2.2em;
    }
    #hero .subtitle {
        font-size: 1em;
    }
    .hero-graphic {
        max-width: 80%;
    }
    section h2 {
        font-size: 1.8em;
    }
    .service-item, .step-content p {
        font-size: 0.9em;
    }
    .service-item {
        padding: 25px;
    }
    .logo {
        height: 36px;
    }
    footer {
        padding: 40px 15px;
    }
}