/*
* STYLE.CSS - BASE STYLES
* =======================
* Core styles for the portfolio website
*/

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors - Harmony Studio: Navy, Teal, Gold */
    --primary-color: #2c5f8a;
    --primary-dark: #1a3a52;
    --primary-light: #e8f1f7;
    --secondary-color: #2d7a73;
    --accent-color: #fbbf24;
    
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-dark: #111827;
    --bg-darker: #0f172a;
    
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.08);
    
    /* Container */
    --container-width: 1200px;
    --container-padding: 1rem;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== SECTION STYLES ===== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

.section-title .highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ===== GRID SYSTEMS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 12px rgba(44, 95, 138, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 95, 138, 0.35);
    color: white;
}

.btn-secondary {
    background: var(--text-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-light);
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-light {
    background: white;
    color: var(--primary-color);
}

.btn-light:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== FOOTER STYLES ===== */
.site-footer {
    background: #65676d;
    color: #fff;
    padding: 40px 0 0 0;
    font-family: 'Poppins', Arial, sans-serif;
}

.footer-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: nowrap;
    width: 100%;
}

.footer-widget {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 0;
    min-width: 180px;
    margin: 0 10px;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
    border-bottom: 2px solid #e84c8a;
    display: inline-block;
    padding-bottom: 4px;
}

.footer-links,
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-links li,
.contact-info li {
    margin-bottom: 8px;
}

.footer-links a{
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}
.contact-info a {
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover,
.contact-info a:hover {
    color: #e84c8a;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 10px;
}

.social-link {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-link:hover {
    color: #e84c8a;
}

.copyright-bar {
    text-align: center;
    padding: 24px 5px 12px 5px;
    font-size: 0.95rem;
    color: #fff;
    background: transparent;
}

.credit {
    margin-left: 14px;
    font-size: 0.9rem;
    color: #e84c8a;
}

@media (max-width: 900px) {
    .footer-grid {
        flex-direction: column;
        gap: 24px;
    }
    .footer-widget {
        margin: 0 0 24px 0;
    }
}

/* ===== NAVIGATION STYLES ===== */
.navbar {
    background: var(--bg-dark);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.navbar-link {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-link:hover {
    color: var(--primary-color);
}

.navbar-toggle {
    color: #fff;
    border: 2px solid #fff;
    background: var(--bg-dark);
    padding: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.navbar-collapse {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.navbar-collapse .nav {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.navbar-collapse .nav-link {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-collapse .nav-link:hover {
    color: var(--primary-color);
}

/* ===== FREE WEBSITE BUTTON STYLES ===== */
.desktop-cta,
.mobile-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #003d99, #0099ff);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 32px;
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 140px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.desktop-cta:hover,
.mobile-cta-btn:hover {
    background: linear-gradient(135deg, #0099ff, #003d99);
    box-shadow: 0 8px 24px rgba(0, 61, 153, 0.18);
}

/* ===== DESKTOP NAVIGATION ===== */
.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    align-items: center;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 50px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1003;
    position: relative;
}

.hamburger-btn:focus {
    outline: none;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 1002;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container-mobile {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-logo-mobile {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.mobile-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-logo .logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
}

.mobile-logo .logo-tagline {
    font-size: 0.7rem;
    color: #666;
}

.mobile-close {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    margin-bottom: 15px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-nav-link i {
    width: 24px;
    color: #003d99;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: #f5f5f5;
    color: #003d99;
}

.mobile-cta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mobile-cta-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
}

/* ===== OVERLAY ===== */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Hide desktop elements */
    .desktop-nav,
    .desktop-cta {
        display: none !important;
    }
    
    /* Show hamburger button */
    .hamburger-btn {
        display: flex !important;
    }
}

@media (min-width: 769px) {
    /* Hide mobile elements */
    .hamburger-btn,
    .mobile-menu,
    .menu-overlay {
        display: none !important;
    }
}

/* Form validation styles */
.error-field {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
    animation: shake 0.3s ease;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    padding-left: 5px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== PHASE 6: ANIMATIONS & POLISH ===== */

/* Page Transitions */
@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pageExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Micro-interactions */
@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes buttonHoverGlow {
    from {
        box-shadow: 0 0 0 0 rgba(44, 95, 138, 0.7);
    }
    to {
        box-shadow: 0 0 0 10px rgba(44, 95, 138, 0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Loading states */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Scroll animations */
@keyframes scrollReveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Header scroll animations */
@keyframes headerShrink {
    0% {
        padding: 20px 0;
        box-shadow: none;
    }
    100% {
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

/* Button & Link Polish */
button, .btn, a.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:active, .btn:active, a.btn:active {
    animation: buttonPress 0.3s ease;
}

button:hover:not(:disabled), .btn:hover:not(:disabled), a.btn:hover:not(:disabled) {
    animation: buttonHoverGlow 0.6s ease-out;
}

/* Form Input Polish */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    animation: fadeInUp 0.2s ease;
}

/* Card hover animations */
.card, .project-card, .pricing-card, .testimonial-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover, .project-card:hover, .pricing-card:hover, .testimonial-card:hover {
    animation: bounceHover 0.3s ease-out;
}

@keyframes bounceHover {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(-8px);
    }
}

/* List item stagger animation */
.stagger-item {
    animation: fadeInUp 0.6s ease-out backwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }
.stagger-item:nth-child(n+7) { animation-delay: 0.35s; }

/* Icon animations */
.icon-bounce {
    animation: bounce 1.5s ease-in-out infinite;
}

.icon-rotate {
    animation: rotate 2s linear infinite;
}

.icon-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Transition utilities */
.transition-fade {
    transition: opacity 0.3s ease;
}

.transition-slide {
    transition: transform 0.3s ease;
}

.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Backdrop blur for modals */
.modal-backdrop {
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Toast notification animations */
.toast {
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast.remove {
    animation: slideOutDown 0.3s ease;
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Smooth color transitions */
input, textarea, select {
    border-color: var(--border-color);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.08);
}

/* Hover text shift */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
}