/* --- GLOBAL VARIABLES --- */
:root {
    --primary-blue: #0b1d3a; 
    --accent-blue: #0066cc;  
    --accent-hover: #005bb5;
    --accent-teal: #148F8B; /* Vibrant Teal */ 
    --light-bg: #f4f7f9;
    --bg-light: #F8F9FA;
    --white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-color: #e0e6ed;
    --text-main: #333333;
    --text-muted: #666666;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; /* Prevents side-scrolling on mobile */
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: color 0.3s;
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--primary-blue);
    color: #a0aec0;
    font-size: 0.85rem;
    padding: 8px 5%;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.top-bar a {
    color: #a0aec0;
}

.top-bar a:hover {
    color: var(--white);
}

.top-bar-separator {
    color: #a0aec0;
}

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--white);
}

/* --- HERO SECTION --- */
.hero {
    background-color: #0b1d3a; 
    background-image: linear-gradient(to right, rgba(11, 29, 58, 0.85), rgba(11, 29, 58, 0.5)), url('https://techrevolution.lt/techrevolution_webpage_background.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 140px 5% 120px 5%;
    color: var(--white);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #d1d5db;
    font-weight: 400;
    max-width: 650px;
}

/* --- TRUST STRIP --- */
.trust-strip {
    background-color: var(--accent-blue);
    color: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 30px 5%;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    text-align: center;
}

.trust-item h4 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.trust-item p {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* --- SERVICES --- */
.section-padding {
    padding: 100px 5%;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-top: 4px solid var(--accent-blue);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: var(--white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- ABOUT SECTION --- */
.about-section {
    background-color: var(--primary-blue);
    color: var(--white);
    display: flex;
    flex-wrap: wrap;
}

.about-content {
    flex: 1;
    padding: 100px 5% 100px 10%;
    min-width: 300px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content h3 {
    color: #60a5fa;
    margin-bottom: 30px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-content p {
    margin-bottom: 20px;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.about-list {
    list-style: none;
    margin-top: 30px;
}

.about-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.about-image {
    flex: 1;
    background-color: #1e293b;
    min-height: 500px;
    min-width: 300px;
}

/* --- CONTACT CTA --- */
.contact-cta {
    background-color: var(--light-bg);
    text-align: center;
    padding: 80px 5%;
}

.contact-cta h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-cta p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-box {
    background: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-method {
    flex: 1;
    min-width: 250px;
}

.contact-method-email {
    border-left: 2px solid #e0e6ed; 
    padding-left: 40px;
}

.contact-method h4 {
    color: var(--text-gray);
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.contact-method a {
    color: var(--primary-blue);
    font-size: 1.4rem;
    font-weight: 700;
    /* This stops phone numbers from breaking onto two lines */
    white-space: nowrap; 
}

/* --- FOOTER --- */
footer {
    background-color: #050d1a;
    color: #8892b0;
    padding: 60px 5% 20px 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col a {
    display: block;
    color: #8892b0;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
}

/* =======================================================
   📱 MOBILE RESPONSIVE FIXES 
   ======================================================= */
@media (max-width: 768px) {
    /* Stack top bar vertically and hide the | separator */
    .top-bar {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px 5%;
    }
    .top-bar-separator {
        display: none;
    }

    /* Stack navigation elements nicely */
    nav {
        flex-direction: column;
        gap: 20px;
        padding: 20px 5%;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .btn-primary {
        width: 100%; /* Make button full width on mobile */
    }

    /* Shrink the massive Hero fonts and padding */
    .hero {
        padding: 80px 5% 60px 5%;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }

    /* Stack the trust strip items */
    .trust-strip {
        flex-direction: column;
        gap: 30px;
    }

    /* Ensure grids stack into 1 column */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Shrink About section padding and font */
    .about-content {
        padding: 60px 5%;
    }
    .about-content h2 {
        font-size: 2rem;
    }

    /* Fix the contact box stacking and borders */
    .contact-box {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }
    .contact-method-email {
        /* Change vertical border to a horizontal divider on mobile */
        border-left: none;
        padding-left: 0;
        border-top: 2px solid #e0e6ed;
        padding-top: 30px;
    }
    .contact-method a {
        font-size: 1.2rem; /* slightly smaller to fit narrow screens */
    }
    
    .section-padding {
        padding: 60px 5%;
    }
}
footer .logo {
    color: #ffffff; 
}

/* From cv.html */

        body {
            background-color: var(--bg-light);
            color: var(--text-main);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            margin: 0;
            padding: 0;
        }

        /* Hero Header */
        .cv-header {
            background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
            color: white;
            padding: 60px 20px;
            text-align: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        .cv-header h1 {
            margin: 0;
            font-size: 2.8em;
            letter-spacing: 1px;
        }

        .cv-header h2 {
            margin: 5px 0 20px 0;
            font-weight: 300;
            color: #E0F2F1;
            font-size: 1.4em;
        }

        .cv-contact {
            margin-top: 15px;
        }

        .cv-contact a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            margin: 0 10px;
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 25px;
            transition: background 0.3s ease, transform 0.2s ease;
            display: inline-block;
        }

        .cv-contact a:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        /* Main Content Container */
        .cv-container {
            max-width: 900px;
            margin: 40px auto;
            padding: 0 20px;
        }

        /* Section Titles */
        .cv-section-title {
            color: var(--primary-blue);
            font-size: 1.8em;
            border-bottom: 3px solid var(--accent-blue);
            padding-bottom: 10px;
            margin-top: 40px;
            margin-bottom: 30px;
        }

        /* Profile Text */
        .cv-profile {
            font-size: 1.1em;
            color: var(--text-muted);
            background: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
            border-top: 4px solid var(--primary-blue);
        }

        /* Job Experience Cards */
        .cv-card {
            background: white;
            padding: 30px;
            margin-bottom: 25px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.04);
            border-left: 5px solid var(--accent-blue);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .cv-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.08);
        }

        .cv-card h4 {
            color: var(--primary-blue);
            margin: 0 0 5px 0;
            font-size: 1.3em;
        }

        .cv-date-role {
            color: var(--accent-blue);
            font-weight: 600;
            font-size: 0.95em;
            margin-bottom: 15px;
            display: block;
        }

        .cv-card ul {
            padding-left: 20px;
            color: var(--text-muted);
            margin-bottom: 0;
        }

        .cv-card li {
            margin-bottom: 8px;
        }

        /* Skills Area */
        .skills-group {
            margin-bottom: 20px;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.03);
        }

        .skills-group strong {
            color: var(--primary-blue);
            display: block;
            margin-bottom: 10px;
            font-size: 1.1em;
        }

        .skill-tag {
            display: inline-block;
            background: var(--accent-blue);
            color: var(--white);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.9em;
            font-weight: 600;
            margin: 4px;
            border: 1px solid rgba(20, 143, 139, 0.2);
        }

        /* Back button */
        .back-btn {
            display: inline-block;
            margin: 20px 0;
            color: var(--primary-blue);
            text-decoration: none;
            font-weight: bold;
        }
        .back-btn:hover {
            color: var(--accent-blue);
            text-decoration: underline;
        }

	.cv-link-container {
    		margin-top: 20px;
	}

	.cv-link {
		font-weight: bold;
    		text-decoration: underline;
    		color: #FFFFFF; /* Pure white. Change to #E0E0E0 for light grey */
    		transition: color 0.2s ease; /* Makes the hover effect smooth */
	}

	/* This adds a nice interactive feel when the user points at the link */
	.cv-link:hover {
		color: #CCCCCC; /* Changes to a slightly darker grey on hover */
	}

