* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --secondary: #34d399;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    font-family: var(--body-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif);
    font-size: var(--body-size, 16px);
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
}

h1 {
    font-family: var(--heading-font, inherit);
    font-size: var(--h1-size, 48px);
}

h2 {
    font-family: var(--heading-font, inherit);
    font-size: var(--h2-size, 36px);
}

h3 {
    font-family: var(--heading-font, inherit);
    font-size: var(--h3-size, 28px);
}

h4 {
    font-family: var(--heading-font, inherit);
    font-size: var(--h4-size, 24px);
}

h5 {
    font-family: var(--heading-font, inherit);
    font-size: var(--h5-size, 20px);
}

h6 {
    font-family: var(--heading-font, inherit);
    font-size: var(--h6-size, 18px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 20px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.btn-primary {
    background: var(--gradient);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 50px;
}

.hero {
    padding: 150px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 50px;
    left: 50px;
    animation-delay: 0s;
}

.card-2 {
    top: 200px;
    right: 80px;
    animation-delay: 0.5s;
}

.card-3 {
    bottom: 100px;
    left: 100px;
    animation-delay: 1s;
}

.card-icon {
    font-size: 36px;
}

.card-text {
    font-weight: 700;
    font-size: 18px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 20px;
    color: var(--gray);
}

.services {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--gray-light);
    transition: all 0.3s;
    position: relative;
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.service-card.featured {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
}

.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-card.featured p {
    color: rgba(255, 255, 255, 0.9);
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.service-card.featured .service-features li::before {
    color: var(--white);
}

.portfolio {
    padding: 100px 0;
    background: var(--gray-light);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--gray);
    margin-bottom: 15px;
}

.portfolio-tag {
    display: inline-block;
    background: var(--gray-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

.process {
    padding: 100px 0;
    background: var(--white);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 80px;
}

.step-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--gray);
    line-height: 1.7;
}

.stats {
    padding: 80px 0;
    background: var(--dark);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 18px;
    color: var(--gray);
}

.contact {
    padding: 100px 0;
    background: var(--gray-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--white);
    padding: 60px;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.contact-subtitle {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-icon {
    font-size: 32px;
}

.detail-label {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 5px;
}

.detail-value {
    font-size: 18px;
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-full {
    width: 100%;
}

.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--gray);
    margin-top: 15px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-column h4 {
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--dark-light);
    color: var(--gray);
}

@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
    }
}

/* Admin Panel Styles */
.admin-panel {
    position: fixed;
    top: 80px;
    right: -400px;
    width: 380px;
    height: calc(100vh - 100px);
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
    border-radius: 20px 0 0 20px;
}

.admin-panel.active {
    right: 0;
}

.admin-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s;
}

.admin-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.admin-header {
    padding: 30px;
    background: var(--gradient);
    color: var(--white);
}

.admin-header h2 {
    margin-bottom: 10px;
}

.admin-content {
    padding: 30px;
}

.admin-section {
    margin-bottom: 30px;
}

.admin-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark);
}

.admin-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.admin-input:focus {
    outline: none;
    border-color: var(--primary);
}

.admin-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.admin-login {
    text-align: center;
    padding: 50px 30px;
}

.admin-login input {
    margin-bottom: 15px;
}

.editable {
    position: relative;
    transition: all 0.3s;
    cursor: pointer;
    border-radius: 4px;
}

.editable:hover {
    background: rgba(16, 185, 129, 0.05);
    outline: 2px dashed rgba(16, 185, 129, 0.3);
    outline-offset: 4px;
}

.editable.editing {
    outline: 3px solid var(--primary);
    outline-offset: 5px;
    background: rgba(16, 185, 129, 0.1);
}

.editable::after {
    content: '✏️';
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: var(--white);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.editable:hover::after {
    opacity: 1;
}

.edit-mode-active .editable:hover {
    background: rgba(16, 185, 129, 0.1);
}

/* Rotating Animation for Cards */
.rotating-cards {
    perspective: 1000px;
}

.rotating-card {
    animation: rotate3d 10s ease-in-out infinite;
    transform-style: preserve-3d;
}

.card-1 {
    animation-delay: 0s;
}

.card-2 {
    animation-delay: 3.33s;
}

.card-3 {
    animation-delay: 6.66s;
}

@keyframes rotate3d {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    25% {
        transform: translateY(-20px) rotateY(10deg);
    }
    50% {
        transform: translateY(0) rotateY(0deg);
    }
    75% {
        transform: translateY(-15px) rotateY(-10deg);
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--dark);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: var(--primary);
}

.toast.error {
    background: #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Inline Edit Input */
.inline-edit-input {
    width: 100%;
    padding: 10px;
    border: 3px solid var(--primary);
    border-radius: 8px;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    background: var(--white);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.inline-edit-input:focus {
    outline: none;
}

.edit-mode-badge {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow);
    z-index: 1001;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}
