/* ==========================================
   PORTFOLIO STYLES - Ruben Munilla
   Dreamweaver Compatible Version
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/*===========================================
  Home Page HERO SECTION TEXT under logos
  ===========================================*/
		/*.keywords {
            display: flex;
            flex-wrap: nowrap;
            margin-right: 8px;  
    		justify-content: left;
            margin-bottom: 10px;
        }*/
        
        .keyword {
            font-size: 0.95rem;
            font-weight: 600 !important;
            color: #333;
            cursor:none !important;
            transition: all 0.3s ease;
            margin-right: 8px;
			position: relative;
        }
        
		
        .keyword:hover {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            transform: translateY(-2px);
        }
        
        .keyword:active {
            transform: translateY(0);
        }
        
        .keyword-label {
            text-align: center;
            font-size: 0.85rem;
            color: #999;
            margin-bottom: 1rem;
            font-style: italic;
        }

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.blue-text {
    color: #4a89f3;
}

.highmark-blue {
    color: #0066CC;
}

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */

header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

nav a:hover {
    color: #333;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
    display: flex;
}

.nav-menu.active {
    display: flex;
}

/* ==========================================
   HERO SECTION (Index Page)
   ========================================== */

.hero {
    margin-top: 80px;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #222;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.cta-buttons .btn {
    margin: 0 0.5rem;
}

/* Hero Content Layout (for index page side-by-side) */
.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.hero-content > * {
    margin: 0 2rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3rem;
    color: #222;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: left;
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left;
}

/* ==========================================
   COMPANY LOGOS (Index Page)
   ========================================== */

.company-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.company-logos > * {
    margin: 0.75rem;
}

.company-logos a {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    overflow: hidden;
}

.company-logos a:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.company-logos img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

/* Interactive Keywords */
.keywords {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.keywords .keyword {
    margin: 0 1rem;
}

.keyword {
    font-size: 0.95rem;
    font-weight: 400;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.keyword:hover {
    color: #667eea;
    transform: translateY(-2px);
}

.keyword:active {
    transform: translateY(0);
}

/* ==========================================
   PORTFOLIO SECTION (Index Page)
   ========================================== */

.portfolio {
    padding: 80px 0;
    background: #f9f9f9;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
}

.portfolio-grid > * {
    margin: 1.5rem;
}

.portfolio-item {
    overflow: hidden;
	scroll-margin-top: 100px;
	padding-top:20px;
	background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.portfolio-item img {
    max-width: 100%;
	padding:8px 8px 0px 8px;
    height: auto;
    display: block;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.portfolio-content p {
    color: #666;
    margin-bottom: 1rem;
}

.portfolio-content a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.portfolio-content a:hover {
    text-decoration: underline;
}

/* ==========================================
   HERO SECTION (Case Study Pages)
   ========================================== */

.hero-left {
    text-align: left;
}

.hero-left h1 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-meta {
    margin-bottom: 2rem;
    text-align: left;
}

.hero-meta h4 {
    font-size: 1rem;
    color: #0066CC;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.hero-meta p {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-right {
    position: relative;
    align-self: flex-start;
}

.final-design-preview {
    background: linear-gradient(135deg, #0066CC 0%, #4a90e2 100%);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 5px 20px rgba(0,102,204,0.2);
}

.final-design-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,102,204,0.3);
}

.final-design-preview img {
    width: 100%;
    border-radius: 8px;
}

/* ==========================================
   SECTION STYLES
   ========================================== */

section {
    padding: 60px 0;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #0066CC;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    color: #222;
    margin-bottom: 2rem;
}

.section-gray {
    background: #f9f9f9;
}

/* ==========================================
   PROBLEM SECTION
   ========================================== */

.problem-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.problem-content > * {
    margin: 0 2rem;
}

.problem-text ul {
    list-style: none;
    margin-top: 2rem;
}

.problem-text li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    color: #666;
}

.problem-text li:before {
    content: "×";
    position: absolute;
    left: 0;
    color: #f44336;
    font-size: 2rem;
    font-weight: bold;
}

.legacy-images {
    display: grid;
    grid-template-columns: 1fr;
}

.legacy-images > * {
    margin-bottom: 1.5rem;
}

.legacy-image-wrapper {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.legacy-image-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.legacy-image-wrapper img {
    width: 100%;
    display: block;
}

/* ==========================================
   IMAGE MODAL
   ========================================== */

.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.image-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    padding: 10px 20px;
    border-radius: 5px;
}

.modal-prev {
    left: -60px;
}

.modal-next {
    right: -60px;
}

/* ==========================================
   IMAGES
   ========================================== */

.img-full {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 3rem 0;
}

.image-grid > * {
    margin: 1rem;
}

.image-grid-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.image-grid-item img {
    width: 100%;
    display: block;
}

.image-grid-item h4 {
    padding: 1rem;
    background: white;
    font-size: 1.1rem;
    color: #222;
}


/* ==========================================
   VERTICAL LAYOUT (NEW - FOR LARGE IMAGES)
   ========================================== */
.vertical-layout {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 3rem;
}

.vertical-layout > * {
    margin: 0 0 4rem 0;
}

.vertical-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.vertical-item-image {
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.vertical-item-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.vertical-item-content {
    max-width: 800px;
}

.vertical-item h3 {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 1rem;
}

.vertical-item h4 {
    font-size: 1.3rem;
    color: #0066CC;
    margin-bottom: 1rem;
}

.vertical-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Responsive for vertical layout */
@media screen and (max-width: 768px) {
    .vertical-layout > * {
        margin: 0 0 3rem 0;
    }
    
    .vertical-item h3 {
        font-size: 1.5rem;
    }
    
    .vertical-item h4 {
        font-size: 1.1rem;
    }
    
    .vertical-item p {
        font-size: 1rem;
    }
    
    .vertical-item-image {
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .vertical-layout > * {
        margin: 0 0 2rem 0;
    }
    
    .vertical-item h3 {
        font-size: 1.3rem;
    }
    
    .vertical-item h4 {
        font-size: 1rem;
    }
}




/* ==========================================
   THREE COLUMN LAYOUT
   ========================================== */

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 3rem;
}

.three-col > * {
    margin: 0 1.5rem 3rem 1.5rem;
}

.col-item {
    text-align: center;
}

.col-item-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #0066CC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.col-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #222;
}

.col-item p {
    color: #666;
    line-height: 1.8;
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #333;
    color: white;
}

.btn-primary:hover {
    background: #555;
}

.btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background: #333;
    color: white;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
    background: #222;
    color: white;
    padding: 60px 0 20px;
    text-align: center;
}

.footer-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-content p {
    margin-bottom: 2rem;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #999;
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0066CC;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.scroll-to-top:hover {
    background: #0052a3;
    transform: translateY(-5px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media screen and (max-width: 1024px) {
    .hero-content > * {
        margin: 0 1.5rem;
    }
    
    .hero h1,
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero p,
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .company-logos > * {
        margin: 0.5rem;
    }
    
    .company-logos a {
        width: 85px;
        height: 85px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    nav ul li {
        margin-left: 0;
    }
    
    /* Hero Section Responsive */
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-content > * {
        margin: 1.25rem 0;
    }
    
    .hero-text {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-text p {
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .company-logos {
        grid-template-columns: repeat(3, 1fr);
        width: 100%;
    }
    
    .company-logos > * {
        margin: 0.5rem;
    }
    
    .company-logos a {
        width: 80px;
        height: 80px;
    }
    
    .keywords .keyword {
        margin: 0 0.75rem;
    }
    
    .keyword {
        font-size: 0.9rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid > * {
        margin: 1rem 0;
    }
    
    .portfolio h2 {
        font-size: 2rem;
    }
    
    /* Case Study Pages Responsive */
    .problem-content {
        grid-template-columns: 1fr;
    }
    
    .problem-content > * {
        margin: 1rem 0;
    }
    
    .hero-left h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .three-col,
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .three-col > *,
    .image-grid > * {
        margin: 1rem 0;
    }
    
    .modal-prev,
    .modal-next {
        font-size: 30px;
        padding: 5px 15px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .footer-content h3 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        margin: 0.5rem 0;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .company-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .company-logos > * {
        margin: 0.375rem;
    }
    
    .company-logos a {
        width: 70px;
        height: 70px;
    }
    
    .keywords {
        flex-wrap: wrap;
    }
    
    .keywords .keyword {
        margin: 0.5rem;
    }
    
    .keyword {
        font-size: 0.85rem;
    }
    
    .portfolio-content h3 {
        font-size: 1.3rem;
    }
    
    .logo {
        font-size: 1rem;
    }
}
