/* ===== CSS VARIABLES ===== */
:root {
    /* Color Palette - Vibrant and Modern */
    --color-primary: #4fc3f7;          /* Bright Blue */
    --color-primary-light: #e1f5fe;    /* Light Blue */
    --color-accent: #00bcd4;           /* Vibrant Cyan */
    --color-accent-light: #b2ebf2;     /* Light Cyan */
    --color-background: #f8f9fa;       /* Clean White */
    --color-text: #1a237e;             /* Deep Blue */
    --color-text-light: #3949ab;       /* Medium Blue */
    --color-white: #ffffff;
    --color-shadow: rgba(79, 195, 247, 0.15);
    --color-shadow-hover: rgba(0, 188, 212, 0.25);
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border Radius */
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px var(--color-shadow);
    --shadow-md: 0 4px 8px var(--color-shadow);
    --shadow-lg: 0 8px 16px var(--color-shadow);
    --shadow-hover: 0 8px 24px var(--color-shadow-hover);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
}

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.section__title {
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.header.scrolled {
    background: transparent;
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: var(--color-white);
    font-weight: 800;
    font-size: 1.4rem;
    font-family: var(--font-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
    padding: 8px 12px;
    border-radius: 12px;
}

.nav__logo:hover {
    transform: scale(1.05);
}

.nav__logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--color-accent));
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav__link {
    text-decoration: none;
    color: var(--color-white);
    font-weight: 600;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: var(--transition-fast);
    position: relative;
    padding: 10px 18px;
    border-radius: 20px;
}

.nav__link:hover {
    color: var(--color-accent);
    transform: translateY(-2px);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
    transition: var(--transition-fast);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav__link:hover::after {
    width: 80%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-white) 0%, var(--color-accent) 100%);
    transition: var(--transition-fast);
    border-radius: 2px;
    box-shadow: 0 0 4px rgba(0, 188, 212, 0.3);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(26, 35, 126, 0.8), rgba(0, 188, 212, 0.7)), 
                url('./images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    position: relative;
    z-index: 2;
    color: var(--color-white);
}

.hero__content {
    max-width: 600px;
}

.hero__title {
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__title-highlight {
    color: var(--color-accent);
    position: relative;
}

.hero__title-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero__image {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 500px;
}

.hero__tech-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    width: 100%;
    max-width: 100%;
    position: relative;
}

.tech-showcase-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    color: var(--color-white);
    min-height: 158px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tech-showcase-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.2) 0%, rgba(0, 188, 212, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.tech-showcase-item:hover::before {
    opacity: 1;
}

.tech-showcase-item:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--color-accent);
}

.tech-showcase-item > * {
    position: relative;
    z-index: 2;
}

.tech-showcase-item .tech-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.tech-showcase-item:hover .tech-icon {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 10px 25px rgba(79, 195, 247, 0.4);
}

.tech-showcase-item .tech-icon svg {
    width: 30px;
    height: 30px;
}

.tech-showcase-item h3 {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: var(--font-primary);
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.tech-showcase-item p {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-secondary);
    opacity: 0.95;
    line-height: 1.5;
    color: var(--color-white);
    text-align: center;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tech-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.tech-particles::before,
.tech-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.tech-particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.tech-particles::after {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.7; }
    50% { transform: translateY(-10px) scale(1.2); opacity: 1; }
}

/* Specific tech item themes */
.tech-showcase-item.ai-ml .tech-icon {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
}

.tech-showcase-item.automation .tech-icon {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
}

.tech-showcase-item.chatbots .tech-icon {
    background: linear-gradient(135deg, #A8E6CF 0%, #7FCDCD 100%);
}

.tech-showcase-item.mobile-apps .tech-icon {
    background: linear-gradient(135deg, #FFD93D 0%, #FF6B6B 100%);
}

.tech-showcase-item.cloud .tech-icon {
    background: linear-gradient(135deg, #6C5CE7 0%, #A29BFE 100%);
}

.tech-showcase-item.data-analytics .tech-icon {
    background: linear-gradient(135deg, #00B894 0%, #00CEC9 100%);
}

.hero__floating-stats {
    display: flex;
    gap: var(--spacing-xl);
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.floating-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    color: var(--color-white);
    animation: float-stat 4s ease-in-out infinite;
}

.floating-stat:nth-child(2) {
    animation-delay: 1s;
}

.floating-stat:nth-child(3) {
    animation-delay: 2s;
}

@keyframes float-stat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.floating-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.floating-stat .stat-label {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: var(--spacing-xs);
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-family: var(--font-primary);
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 160px;
}

.btn--primary {
    background: linear-gradient(135deg, #00bcd4 0%, #4fc3f7 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
    border: none;
}

.btn--primary:hover {
    background: linear-gradient(135deg, #00acc1 0%, #29b6f6 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== TECH TOOLKIT SECTION ===== */
.tech-toolkit {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-background);
    position: relative;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.tech-category {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.tech-category__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    text-align: center;
    position: relative;
}

.tech-category__title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: 2px;
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    cursor: default;
}

.tech-item:hover {
    transform: translateY(-2px);
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent);
}

.tech-logo {
    width: 40px;
    height: 40px;
    margin-bottom: var(--spacing-xs);
    transition: var(--transition-normal);
}

.tech-item:hover .tech-logo {
    transform: scale(1.1);
}

.tech-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    line-height: 1.2;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(rgba(26, 35, 126, 0.8), rgba(0, 188, 212, 0.7)), 
                url('./images/services-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    position: relative;
    z-index: 2;
}

/* About section specific title and subtitle colors */
.about .section__title {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.about .section__subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.about__description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat {
    text-align: center;
    padding: var(--spacing-md);
    background-color: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat__number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-primary);
}

.stat__label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.about__image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ===== TECH ECOSYSTEM ===== */
.tech-ecosystem {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Central Hub */
.tech-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hub-core {
    width: 80px;
    height: 80px;
    animation: pulse 3s ease-in-out infinite;
}

.hub-core svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Tech Nodes */
.tech-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-node:hover {
    transform: scale(1.1);
    z-index: 20;
}

.node-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tech-node:hover .node-icon {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

.tech-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.node-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    white-space: nowrap;
}

/* Node Positions */
.tech-node.frontend {
    top: 20%;
    left: 20%;
    transform: translateY(0px);
    animation: float-node 4s ease-in-out infinite;
}

.tech-node.backend {
    top: 20%;
    right: 20%;
    transform: translateY(0px);
    animation: float-node 4s ease-in-out infinite 1s;
}

.tech-node.ai-ml {
    top: 60%;
    left: 15%;
    transform: translateY(0px);
    animation: float-node 4s ease-in-out infinite 2s;
}

.tech-node.cloud {
    top: 60%;
    right: 15%;
    transform: translateY(0px);
    animation: float-node 4s ease-in-out infinite 3s;
}

.tech-node.database {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%) translateY(0px);
    animation: float-node-center 4s ease-in-out infinite 0.5s;
}

.tech-node.automation {
    top: 10%;
    left: 50%;
    transform: translateX(-50%) translateY(0px);
    animation: float-node-center 4s ease-in-out infinite 1.5s;
}

/* Connection Lines */
.connection-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
    transform-origin: top center;
    opacity: 0.6;
    animation: pulse 3s ease-in-out infinite;
}

/* Floating Particles */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.7;
    animation: float-particle 6s ease-in-out infinite;
}

.particle-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.particle-2 {
    top: 40%;
    right: 25%;
    animation-delay: 1s;
}

.particle-3 {
    bottom: 30%;
    left: 40%;
    animation-delay: 2s;
}

.particle-4 {
    top: 60%;
    right: 40%;
    animation-delay: 3s;
}

.particle-5 {
    top: 30%;
    left: 60%;
    animation-delay: 4s;
}

/* Animations */
@keyframes float-node {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes float-node-center {
    0%, 100% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) scale(1.2);
        opacity: 1;
    }
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-white);
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.portfolio__item {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.portfolio__item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.portfolio__image {
    height: 200px;
    background-color: var(--color-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.portfolio__image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.portfolio__item:hover .portfolio__image-img {
    transform: scale(1.05);
}

.portfolio__content {
    padding: var(--spacing-lg);
}

.portfolio__title {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.portfolio__description {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(rgba(26, 35, 126, 0.85), rgba(0, 188, 212, 0.75)), 
                url('./images/testimonials-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

/* Testimonials section specific title and subtitle colors */
.testimonials .section__title {
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.testimonials .section__subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.testimonial-card {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card__content {
    margin-bottom: var(--spacing-md);
}

.testimonial-card__text {
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.6;
    position: relative;
    padding-left: var(--spacing-md);
}

.testimonial-card__text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: serif;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-card__avatar svg {
    width: 100%;
    height: 100%;
}

.testimonial-card__name {
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 2px;
}

.testimonial-card__position {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.footer__logo-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.footer__logo-text {
    font-weight: 800;
    font-size: 1.4rem;
    font-family: var(--font-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.footer__social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer__social-link:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.footer__social-link svg {
    width: 20px;
    height: 20px;
}

.footer__title {
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
}

.footer__links {
    list-style: none;
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: var(--spacing-xs) 0;
    transition: var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: rgba(255, 255, 255, 0.8);
}

.footer__contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--color-text) 0%, #1e3a8a 50%, var(--color-text) 100%);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        border-bottom: 2px solid var(--color-accent);
    }

    .nav__menu.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .hero__content {
        padding: var(--spacing-xl) 0;
    }

    .hero__title {
        margin-top: var(--spacing-lg);
    }

    .hero {
        padding-bottom: var(--spacing-xl);
    }

    .hero__tech-showcase {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        max-width: 100%;
    }

    .tech-showcase-item {
        padding: var(--spacing-md);
    }

    .tech-showcase-item .tech-icon {
        width: 50px;
        height: 50px;
    }

    .tech-showcase-item .tech-icon svg {
        width: 25px;
        height: 25px;
    }

    .tech-showcase-item h3 {
        font-size: 1rem;
        letter-spacing: 0.3px;
    }

    .tech-showcase-item p {
        font-size: 0.8rem;
        letter-spacing: 0.2px;
    }

    .hero__floating-stats {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-top: var(--spacing-lg);
    }

    .floating-stat {
        padding: var(--spacing-sm);
    }

    .floating-stat .stat-number {
        font-size: 1.25rem;
    }

    .floating-stat .stat-label {
        font-size: 0.7rem;
    }

    .hero__buttons {
        justify-content: center;
    }

    .about__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .tech-ecosystem {
        max-width: 400px;
        height: 300px;
    }

    .hub-core {
        width: 60px;
        height: 60px;
    }

    .node-icon {
        width: 40px;
        height: 40px;
    }

    .tech-icon-img {
        width: 24px;
        height: 24px;
    }

    .node-label {
        font-size: 0.7rem;
    }

    .about__stats {
        grid-template-columns: 1fr;
    }

    .tech-categories {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        margin-top: var(--spacing-lg);
    }

    .tech-category {
        padding: var(--spacing-md);
    }

    .tech-category__title {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-md);
    }

    .portfolio__grid,
    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .tech-item {
        padding: var(--spacing-sm);
    }

    .tech-logo {
        width: 32px;
        height: 32px;
    }

    .tech-name {
        font-size: 0.65rem;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .feature-card,
    .portfolio__item,
    .testimonial-card {
        padding: var(--spacing-md);
    }

    /* Tech Toolkit Mobile Optimizations */
    .tech-categories {
        gap: var(--spacing-md);
        margin-top: var(--spacing-md);
    }

    .tech-category {
        padding: var(--spacing-sm);
    }

    .tech-category__title {
        font-size: 1rem;
        margin-bottom: var(--spacing-sm);
    }

    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }

    .tech-item {
        padding: var(--spacing-xs);
    }

    .tech-logo {
        width: 28px;
        height: 28px;
        margin-bottom: var(--spacing-xs);
    }

    .tech-name {
        font-size: 0.6rem;
        line-height: 1.1;
    }

    .tech-ecosystem {
        max-width: 350px;
        height: 250px;
    }

    .hub-core {
        width: 50px;
        height: 50px;
    }

    .node-icon {
        width: 35px;
        height: 35px;
    }

    .tech-icon-img {
        width: 20px;
        height: 20px;
    }

    .node-label {
        font-size: 0.65rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.nav__link:focus,
.btn:focus,
.footer__link:focus,
.footer__social-link:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-text: #000000;
        --color-text-light: #333333;
        --color-primary: #e6f3ff;
        --color-accent: #0066cc;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .hero__buttons {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-lg) 0;
    }

    .container {
        max-width: none;
        padding: 0;
    }
} 