:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --dark: #1a202c;
    --gray: #718096;
    --light: #f7fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo img {
    height: 45px;
    width: auto;
}

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

.nav a {
    text-decoration: none;
    color: var(--dark);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark);
    cursor: pointer;
}

/* ===== Hero Slider ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    margin-top: 70px;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
}

.slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    padding: 20px;
    animation: fadeInUp 1s ease;
}

.slide-content h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.4);
}

.slider-btn.prev { left: 30px; }
.slider-btn.next { right: 30px; }

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== About ===== */
.about {
    background: var(--light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-item i {
    font-size: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.about-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--dark);
}

.about-item p {
    color: var(--gray);
    line-height: 1.8;
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card i {
    font-size: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ===== Portfolio ===== */
.portfolio {
    background: var(--light);
}

.portfolio-filter {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: transparent;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

a.portfolio-item,
a.portfolio-item:hover {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(102,126,234,0.9), rgba(118,75,162,0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    color: var(--white);
    font-size: 20px;
    font-weight: 600;
}

/* ===== Team ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-img {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    font-size: 20px;
    margin-bottom: 5px;
    color: var(--dark);
}

.team-card .pos {
    display: inline-block;
    padding: 4px 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 15px;
}

.team-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== Contact ===== */
.contact {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.contact .section-header h2 {
    -webkit-text-fill-color: var(--white);
}

.contact .section-header p {
    color: rgba(255,255,255,0.8);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background: #c6f6d5;
    color: #22543d;
}

.form-message.error {
    display: block;
    background: #fed7d7;
    color: #742a2a;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.contact-info {
    padding-top: 20px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.info-item p {
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.7);
}

.admin-link a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.admin-link a:hover {
    color: var(--primary);
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary);
}

.modal-caption {
    color: var(--white);
    margin-top: 15px;
    font-size: 18px;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== AI Tools ===== */
.ai-tools {
    background: var(--light);
}

.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ai-tool-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.ai-tool-card:hover {
    box-shadow: var(--shadow-lg);
}

.ai-tool-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.ai-tool-card-wide {
    grid-column: 1 / -1;
}

.ai-tool-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.ai-tool-header i {
    font-size: 28px;
}

.ai-tool-header h3 {
    font-size: 20px;
    font-weight: 600;
    flex: 1;
}

.ai-tool-share {
    margin-left: auto;
    padding: 6px 14px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.ai-tool-share:hover {
    background: rgba(255,255,255,0.35);
    color: var(--white);
}

.ai-tool-desc {
    padding: 15px 30px;
    color: var(--gray);
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.ai-tool-body {
    padding: 25px 30px;
}

.ai-tool-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 18px;
    margin: 0 30px 25px;
    background: linear-gradient(135deg, rgba(102,126,234,0.06), rgba(118,75,162,0.06));
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 13px;
    color: var(--gray);
    line-height: 1.7;
}

.ai-tool-notice i {
    color: var(--primary);
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.ai-tool-notice a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.ai-tool-notice a:hover {
    border-bottom-color: var(--primary);
}

.recorder-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.recorder-wrapper.small {
    margin-bottom: 15px;
}

.record-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.record-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.record-btn.recording {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(229, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, 0); }
}

.record-status {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.recording-indicator {
    display: none;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.recording-indicator.active {
    display: flex;
}

.recording-indicator span {
    width: 4px;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: sound-bar 0.8s ease-in-out infinite;
}

.recording-indicator span:nth-child(1) { height: 8px; animation-delay: 0s; }
.recording-indicator span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.recording-indicator span:nth-child(3) { height: 20px; animation-delay: 0.2s; }
.recording-indicator span:nth-child(4) { height: 12px; animation-delay: 0.3s; }
.recording-indicator span:nth-child(5) { height: 16px; animation-delay: 0.4s; }

@keyframes sound-bar {
    0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
    50% { transform: scaleY(1); opacity: 1; }
}

.result-box {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    overflow: hidden;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.result-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.result-box textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: none;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.7;
    resize: vertical;
    outline: none;
}

.result-box textarea::placeholder {
    color: #a0aec0;
}

.clear-btn,
.copy-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: var(--white);
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.clear-btn:hover {
    border-color: #e53e3e;
    color: #e53e3e;
    background: #fff5f5;
}

.copy-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    border-radius: 0;
}

.copy-btn:hover {
    opacity: 0.9;
}

.input-mode-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.mode-tab {
    padding: 8px 18px;
    border: 2px solid #e2e8f0;
    background: var(--white);
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.mode-tab.active,
.mode-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.mode-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-color: transparent;
}

.meeting-input-wrapper textarea,
#meetingVoiceResult {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    line-height: 1.7;
    resize: vertical;
    outline: none;
    margin-bottom: 15px;
    transition: var(--transition);
}

.meeting-input-wrapper textarea:focus,
#meetingVoiceResult:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.ai-process-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ai-process-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.ai-process-btn.processing {
    opacity: 0.7;
    pointer-events: none;
}

.ai-process-btn.processing i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.meeting-summary {
    padding: 20px;
    background: #f8fafc;
    min-height: 120px;
}

.meeting-summary h4 {
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.meeting-summary h4::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 2px;
}

.meeting-summary p,
.meeting-summary ul {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--dark);
}

.meeting-summary ul {
    padding-left: 20px;
}

.meeting-summary ul li {
    margin-bottom: 6px;
    position: relative;
}

.meeting-summary .no-content {
    color: var(--gray);
    font-style: italic;
    text-align: center;
    padding: 30px 0;
}

@media (max-width: 1024px) {
    .services-grid,
    .portfolio-grid,
    .ai-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: block;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .about-grid,
    .services-grid,
    .portfolio-grid,
    .team-grid,
    .ai-tools-grid {
        grid-template-columns: 1fr;
    }

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

    .section {
        padding: 60px 0;
    }

    .slider-btn {
        display: none;
    }
}
