@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&family=Montserrat:wght@700;900&display=swap');
@import url('https://fonts.cdnfonts.com/css/satoshi');

:root {
    --primary-color: #1a2980;
    --secondary-color: #26d0ce;
    --accent-color: #ff512f;
    --accent2-color: #dd2476;
    --text-color: #22223b;
    --text-secondary: #4a4e69;
    --background-color: #f8fafc;
    --card-background: rgba(255, 255, 255, 0.95);
    --gradient-primary: linear-gradient(135deg, #1a2980 0%, #26d0ce 100%);
    --gradient-accent: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
    --shadow-color: rgba(34, 34, 59, 0.08);
    --accent-glow: rgba(221, 36, 118, 0.12);
    --gradient-start: #f8fafc;
    --gradient-end: #e0c3fc;
    --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(224, 195, 252, 0.9));
    --glass-border: 1px solid rgba(221, 36, 118, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(221, 36, 118, 0.08);
}

body {
    font-family: 'Satoshi', 'Inter', 'Montserrat', Arial, sans-serif;
    background: linear-gradient(120deg, #f8fafc 0%, #e0c3fc 100%),
        radial-gradient(circle at 10% 10%, #ff512f22 0%, transparent 60%),
        radial-gradient(circle at 90% 90%, #26d0ce22 0%, transparent 60%);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    animation: bgMove 20s ease-in-out infinite alternate;
}

@keyframes bgMove {
    0% { background-position: 0% 0%, 10% 10%, 90% 90%; }
    100% { background-position: 100% 100%, 20% 80%, 80% 20%; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4a661' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.4;
}

nav {
    background: white;
    padding: 0.75rem 0 0.75rem 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 0;
    border-bottom: 1px solid #e5e5e5;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

nav a:hover {
    color: var(--secondary-color);
    background: #f5f6fa;
}

header {
    padding: 10rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-accent);
    color: white;
    text-shadow: 2px 2px 8px #22223b44;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 8px 32px var(--shadow-color);
}

header::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at 60% 40%, #ff512f33 0%, transparent 70%);
    opacity: 0.7;
    z-index: 0;
    animation: headerGlow 8s linear infinite alternate;
}

@keyframes headerGlow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Satoshi', 'Inter', 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 3.5rem;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    transition: background 0.5s;
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    background: var(--card-gradient);
    border: var(--glass-border);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: box-shadow 0.3s, transform 0.3s;
}

.section {
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin: 2rem 0;
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: transform 0.2s, box-shadow 0.2s, background 0.4s;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 8px #ff512f33;
    font-size: 1.1rem;
    cursor: pointer;
}

.button:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px) scale(1.04) rotate(-1deg);
    box-shadow: 0 6px 24px #26d0ce33;
}

footer {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

footer > * {
    transform: skewY(-1deg);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Cursor effect */
.cursor-glow {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, var(--accent-glow), transparent 70%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.company-logo {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--card-gradient);
    border-radius: 15px;
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.company-logo:hover {
    transform: translateY(-10px);
    box-shadow: var(--glass-shadow);
}

.company-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: brightness(0.9) contrast(1.1);
    transition: all 0.4s ease;
}

.company-logo:hover img {
    filter: brightness(1) contrast(1.2);
}

.company-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(196, 166, 97, 0.1),
        transparent
    );
    transition: 0.5s;
}

.company-logo:hover::before {
    left: 100%;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    font-weight: 400;
}

.logo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}

.logo-overlay span {
    color: var(--text-primary);
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem;
}

.company-logo:hover .logo-overlay {
    opacity: 1;
}

.project-showcase {
    margin-top: 2rem;
}

.project-card {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--card-gradient);
    border: var(--glass-border);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: box-shadow 0.3s, transform 0.3s;
}

.project-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 16px 48px #dd247633;
}

.project-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: rgba(196, 166, 97, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.project-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-content {
    flex-grow: 1;
}

.project-content h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin: 0 0 0.5rem;
}

.project-content p {
    color: var(--text-secondary);
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.status-badge {
    display: inline-block;
    background: rgba(196, 166, 97, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(196, 166, 97, 0.2);
}

.section:nth-child(2) {
    animation-delay: 0.2s;
}

/* Update company-logo styles */
.company-logo {
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
}

.company-logo img {
    max-width: 70%;
    max-height: 70%;
    filter: brightness(1) contrast(1);
}

/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 4px;
    padding: 0.5rem 0;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    background: none;
    border-radius: 0;
}

.dropdown-content a:hover {
    background: #f5f6fa;
    color: var(--secondary-color);
}

a {
    color: var(--accent2-color);
    transition: color 0.3s;
}
a:hover {
    color: var(--accent-color);
    text-decoration: underline wavy 2px;
}

.recommendation-form label {
    font-weight: 600;
    color: var(--primary-color);
}
.recommendation-form textarea {
    border: 1.5px solid var(--accent2-color);
    background: #fff8;
    transition: border 0.3s, box-shadow 0.3s;
}
.recommendation-form textarea:focus {
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 8px #ff512f33;
    outline: none;
}
.recommendation-form button {
    margin-top: 1rem;
}

.hero-section {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #a18cd1 0%, #fbc2eb 100%);
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 8px 32px #a18cd133;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #2d1e6b;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #a18cd1, #dd2476);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.5rem;
    color: #2d1e6b;
    margin-bottom: 2rem;
    font-weight: 500;
}
.hero-cta.button {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border-radius: 32px;
    background: linear-gradient(90deg, #a18cd1, #dd2476);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 16px #a18cd133;
    transition: background 0.3s, transform 0.2s;
}
.hero-cta.button:hover {
    background: linear-gradient(90deg, #dd2476, #a18cd1);
    transform: scale(1.05) translateY(-2px);
}

.main-content, .container, .blog-container, .project-card, .section {
    background: rgba(255,255,255,0.7);
    border-radius: 24px;
    box-shadow: 0 8px 32px #a18cd133;
    backdrop-filter: blur(8px);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    max-width: 100%;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

nav a::after {
    content: '';
    display: block;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #a18cd1, #fbc2eb);
    border-radius: 2px;
    transition: width 0.3s;
    margin-top: 2px;
}
nav a:hover::after, nav a:focus::after {
    width: 100%;
}

.footer {
    background: linear-gradient(90deg, #a18cd1 0%, #fbc2eb 100%);
    color: #fff;
    text-align: center;
    padding: 2rem 0 1rem 0;
    border-radius: 32px 32px 0 0;
    margin-top: 4rem;
    position: relative;
}
.footer .social-icons {
    margin-bottom: 1rem;
}
.footer .social-icons a {
    display: inline-block;
    margin: 0 0.7rem;
    color: #fff;
    font-size: 1.7rem;
    transition: color 0.3s, transform 0.3s;
}
.footer .social-icons a:hover {
    color: #2d1e6b;
    transform: scale(1.2) rotate(-8deg);
}
.back-to-top {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    background: #fff6;
    color: #2d1e6b;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px #a18cd133;
    transition: background 0.3s, color 0.3s;
}
.back-to-top:hover {
    background: #a18cd1;
    color: #fff;
}

@media (max-width: 900px) {
    .hero-title { font-size: 2.2rem; }
    .main-content, .container, .blog-container, .project-card, .section { padding: 1.2rem 0.7rem; }
    .footer { border-radius: 24px 24px 0 0; }
}
